justicenation / slashclock

/clock concept as a new Slack app
GNU General Public License v3.0
0 stars 0 forks source link

Clock out #3

Closed martyychang closed 7 years ago

martyychang commented 7 years ago

As a user, I want to clock out by typing /clock out when I'm done working, so I can move on with my life resting assured that my time is logged.

Solution design

A TimeEntry__c object will be created to store time entries. Each time entry will have at minimum four fields.

It's important to note that trying to clock out without having first clocked in (see #1) should cause an error to be generated along the lines of "You forgot to clock in!"

Conditions of satisfaction

Not clocked in scenario...

Clocked in scenario...

martyychang commented 7 years ago

Implementing was quick, but... Typing /clock out twice resulted in two success messages, whereas I was expecting the second command to result in an error.