未加星标

Building Your Startup: Meetings With Multiple Participants

字体大小 | |
[开发(php) 所属分类 开发(php) | 发布者 店小二05 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

Building Your Startup: Meetings With Multiple Participants
What You'll Be Creating

This tutorial is part of the Building Your Startup Withphp series on EnvatoTuts+. In this series, I'm guiding you through launching a startup from concept to reality using my Meeting Planner app as a real-life example. Every step along the way, I'll release the Meeting Planner code as open-source examples you can learn from. I'll also address startup-related business issues as they arise.

Introduction to Group Meetings

Scheduling meetings with multiple participants was always part of my plan―but not part of the earliest Minimum Viable Product (MVP). The alpha release of Meeting Planner launched with only 1:1 scheduling. The goal of supporting group scheduling sat on the task list like Mount Everest to a climber aiming for the seven summits (and I'm not even an outdoor climber).

Multiple participant meetings are the most challenging to schedule and therefore valuable for the Meeting Planner product to offer. I was excited when the beta task list reached the point that I could begin work on this.

I've been planning, architecting and coding with group meetings in mind from nearly the beginning. I hoped that updating the site for this feature would not require significant UX changes or coding updates. It turned out to require a middle path, 7-10 days of very focused work and testing but no major re-architecting.

In fact, testing proved to be the most difficult aspect of building this feature. It also helped reveal shortcomings in earlier code. It's just that it's not easy... sending to multiple email addresses, checking that every one of them receives all the proper notifications but not the wrong notifications―and sees all the correct menu options throughout the site.

In today's tutorial, I'm going to cover enabling multiple participants, upgrading the UX for groups, appointing organizers, removing participants, and sorting date, time and place options by their popularity with participants.

In the next tutorial, I'll describe the rest of the work:reviewing all the areas of the site affected by multiple participant meetings,handling and smartly displaying lists of recipients of various status, properly managing notifications and notification filtering for groups, and finally upgrading the recently launched request meeting changes feature .

Try Scheduling a Group Meeting

Please do schedule a group meeting today ! Share your thoughts and feedback in the comments below.

I do participate in the discussions, but you can also reach me @reifman on Twitter. I'm always open to newfeature ideas for Meeting Planner as well as suggestions for future series episodes.

As a reminder, all the code for Meeting Planner is provided open source and written in the Yii2 Framework for PHP. If you'd like to learn more about Yii2, check out my parallel series Programming With Yii2 . I've heard great things about Laravel, but Yii2 always meets my needs quickly and easily.

Looking Back

When I first designed the Meeting Planner scheduling interface , it showed the current availability of the other participant in its own column. And it was a bit confusing as there were disabled controls.


Building Your Startup: Meetings With Multiple Participants

At the time, I worried about how would I make space for displaying the availability of groups.

Fortunately, when I rebuilt the UX for a better responsive experience , I replaced the participant availability column with a small text summary:


Building Your Startup: Meetings With Multiple Participants

The text summary of availability would coincidentally work well for group meetings.

By redesigning for mobile first, I solved the most significant UX barrier to multiple participant meetings!

Coding for Group Meetings

Let's get started going through all the code and testing that multiple participant meetings required.

Enabling Multiple Participants
Building Your Startup: Meetings With Multiple Participants

The funniest aspect of group meetings is that activating them was straightforward. I just needed to turn off disabling of the plus icon button on the Who panel for meetings in the planning stage:

<div class="col-lg-2 col-md-2 col-xs-2">
<div style="float:right;">
<?= Html::a(Yii::t('frontend', ''), ['/participant/create', 'meeting_id' => $model->id], ['class' => 'btn btn-primary '.($model->status>=$model::STATUS_CONFIRMED?'disabled':'').' glyphicon glyphicon-plus']) ?>
</div>
</div>

Then, I began by creating a MEETING_LIMIT in the Participant model:

class Participant extends \yii\db\ActiveRecord
{
...
const MEETING_LIMIT = 15;

It's used in ParticipantController::actionCreate() on submit:

public function actionCreate($meeting_id)
{
if (!Participant::withinLimit($meeting_id)) {
Yii::$app->getSession()->setFlash('error', Yii::t('frontend','Sorry, you have reached the maximum number of participants per meeting. Contact support if you need additional help or want to offer feedback.'));
return $this->redirect(['/meeting/view', 'id' => $meeting_id]);
} Advancing the UX and Related Features

For a long time, I've wanted to allow meeting organizers to remove participants, places, and date times without cluttering the user interface. Similarly, I realized that there might be several commands to perform on participants.

After finding so much utility in the compact Bootstrap dropdown button in the Advanced Commands tutorial , I decided to use it for displaying meeting attendees:


Building Your Startup: Meetings With Multiple Participants

Organizers are denoted witha star. Attendees that have declined the meeting are displayed in orange. Attendees that organizers remove are displayed in red.

Here's the code in my new partial /frontend/views/participant/_buttons.php:

<div class="btn-group btn-participant">
<button type="button" class="btn btn-default btn-sm dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-star red-star aria-hidden="true"></span>
<?= MiscHelp

本文开发(php)相关术语:php代码审计工具 php开发工程师 移动开发者大会 移动互联网开发 web开发工程师 软件开发流程 软件开发工程师

主题: PHPLaravelBootstrapTITwitter
分页:12
转载请注明
本文标题:Building Your Startup: Meetings With Multiple Participants
本站链接:http://www.codesec.net/view/534191.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 开发(php) | 评论(0) | 阅读(58)