Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add in check in cta component #147

Merged
merged 17 commits into from
Jul 10, 2023
Merged

add in check in cta component #147

merged 17 commits into from
Jul 10, 2023

Conversation

afogel
Copy link
Collaborator

@afogel afogel commented Jul 9, 2023

This PR adds in the check in cta component. This CTA is meant to be a reasuable that directs user to check in if they haven't, edit their response if they have submitted a startup meeting, and edit their response if they skipped their startup meeting.

One caveat here -- this PR does not handle the empty state wherein an there is no standup meeting defined for the date in question. To enable this functionality would require handling how the StandupMeeting::SkipsController and StandupMeeting::CompletionsController deal with unpersisted StandupMeetings, as currently rendering this component depends on StandupMeeting::ActionButtonComponent, which expects that the standup meeting passed to it is persisted.

Screen shots:

Screen Shot 2023-07-09 at 7 04 58 PM Screen Shot 2023-07-09 at 7 04 40 PM Screen Shot 2023-07-09 at 7 05 38 PM

@afogel afogel mentioned this pull request Jul 10, 2023
Base automatically changed from 113_part_one to main July 10, 2023 16:39
Copy link
Collaborator

@toyhammered toyhammered left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit but otherwise this is awesome!

@@ -7,6 +7,10 @@ def index
@standup_meetings = @standup_meeting_group.standup_meetings
.includes(:user)
.where(meeting_date: @meeting_date)
@current_user_standup_meeting = @standup_meetings.find do |meeting|
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit, can you use detect. Unsure if this is defined in our rubocop rules but find/where etc I associate with ActiveRecord while detect and select are arrays.

@afogel afogel merged commit 53cf616 into main Jul 10, 2023
1 check passed
@afogel afogel deleted the 113_add_checkin_component branch July 10, 2023 20:09
@afogel afogel linked an issue Jul 10, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Standup Epic] View Standups organized by group and date
2 participants