Implementing User Input guide and using Semantic-UI Tables
Badgeyay project is divided into two parts i.e front-end with Ember JS and back-end with REST-API programmed in Python.
Badgeyay comes with many features for customising the process of generation of Badges. It gives freedom to user to choose Input Badge data which is to be printed on the individual badges, choosing the badge size, applying custom background to the badges and then optional features of font customization helps to generate cool badges. If a helper is not there for the directions to use these features then these features may be difficult to use for a user.
To resolve this issue and make Badgeyay more user friendly I have implemented a User Guide to help user to go through the User Manual before generating Badges in my Pull Request.
To implement user guide, I have used Semantic UI tables to give examples for CSV format and used other components for Manual format.
Let’s get started and understand it step by step.
Step 1:
Create User Guide component with Ember CLI.
$ ember g component user-component/user-guide
Step 2:
Now, We will use Semantic UI while editing Handlebars.
class="user-guide">
class="ui center aligned huge header">User-Input Guide
class="ui center aligned small header">
Please check what is the "Correct Format"?
class="ui segments">
class="ui segment">
class="ui raised segment">
class="ui header">
class="file excel icon">
class="content">
CSV Format
</div>
</div>
class="ui bulleted list">
class="item">The CSV must be uploaded with 5 columns of data.
class="item">Five comma (',') seperated values should be present in the CSV
class="item">See Example Below
<table class="ui celled structured table">
<thead>
<tr>
<th rowspan="2">First Name</th>
<th rowspan="2">Last Name</th>
<th rowspan="2">Position</th>
<th rowspan="2">Organisation/Project</th>
<th rowspan="2">Social Handle</th>
</tr>
</thead>
<tbody>
<tr>
<td>Deepjyoti</td>
<td>Mondal</td>
<td>Mentor</td>
<td>FOSSASIA</td>
<td>@djmgit</td>
</tr>
<tr>
<td>Yash</td>
<td>Ladha</td>
<td>Developer</td>
<td>Badgeyay</td>
<td>@yashladha</td>
</tr>
<tr>
<td>Manish</td>
<td>Devgan</td>
<td>Developer</td>
<td>Badgeyay</td>
<td>@gabru-md</td>
</tr>
<tr>
<td>Parth</td>
<td>Shandilya</td>
<td>Developer</td>
<td>Badgeyay</td>
<td>@ParthS007</td>
</tr>
</tbody>
</table>
</div>
</div>
class="ui segment">
class="ui raised segment">
class="ui header">
class="edit icon">
class="content">
Manual Data Format
</div>
</div>
class="ui bulleted list">
class="item">Format for Manual data is same as CSV's data
class="item">Five comma (',') seperated values on each line is the correct format
class="item">See Example below
class="ui segment">
Deepjyoti,Mondal,Mentor,FOSSASIA,@djmgit
Yash,Ladha,Developer,FOSSASIA,@yashladha
Manish,Devgan,Developer,FOSSASIA,@gabru-md
Parth,Shandilya,Developer,FOSSASIA,@ParthS007
</div>
</div>
</div>
</div>
Step 3:
Link it with Create Badges as a tooltip in the first accordian of create badges route.
<a class="ui icon orange button guide" href="{{href-to 'user-guide'}}" data-tooltip="User Input Guide" data-position="right center"><i class="info icon"></i></a>
I have implemented the user guide for the user to go through the User Manual before generating Badges.
Step 4::
Now run the server to see the implemented changes by following command.
$ ember serve
User Guide Component
Tooltip present in the create badges form.
Now, we are done implementing a User Guide to help user to go through the User Manual before generating Badges.
Resources:
You must be logged in to post a comment.