Added a function that creates and returns a view. This "Checked-in" view contains 2 buttons: "Check-out" and "Pomodoro", which will check-out the user and allow them to start a pomodoro respectively. More integration will be required for the database but the discord-side is more or less done.
I also used a custom_id inside the buttons which should prevent future interactions from dropping.
Issues
Closes #308
Type of change
Select one or more of the following:
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Other (describe below)
How Has This Been Tested?
Modified the /checkin_register command to send the new view that is returned from the checkedInView function, and verified the correct view was sent with the 2 new buttons.
Checklist:
[x] All local commits have been pushed to remote
[x] All changes on the base branch have been merged into this branch, either by rebase or merge
[x] My code is PEP-8 compliant (excluding maximum line length, keep that to 100ish characters)
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
Description
Added a function that creates and returns a view. This "Checked-in" view contains 2 buttons: "Check-out" and "Pomodoro", which will check-out the user and allow them to start a pomodoro respectively. More integration will be required for the database but the discord-side is more or less done.
I also used a custom_id inside the buttons which should prevent future interactions from dropping.
Issues
Closes #308
Type of change
Select one or more of the following:
How Has This Been Tested?
Modified the
/checkin_register
command to send the new view that is returned from thecheckedInView
function, and verified the correct view was sent with the 2 new buttons.Checklist: