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 classroom timepicker #612

Merged
merged 5 commits into from
Nov 21, 2023
Merged

Conversation

jfdoming
Copy link
Contributor

@jfdoming jfdoming commented Nov 15, 2023

Notion ticket link

Add start / end time in classrooms

Implementation description

Update the date picker in the classroom modal to be a DateTimePicker. This PR also includes a bunch of minor UI fixes related to this change; have a look at the commits for a full list.

image image

Steps to test

  1. Open the add classroom modal.
  2. Validate the time looks good and validation still occurs.
  3. Save a classroom and verify editing still works.

What should reviewers focus on?

Checklist

  • My PR name is descriptive and in imperative tense
  • My commit messages are descriptive and in imperative tense. My commits are atomic and trivial commits are squashed or fixup'd into non-trivial commits
  • I have run the appropriate linter(s)
  • I have requested a review from the PL, as well as other devs who have background knowledge on this PR or who will be building on top of this PR

Copy link

github-actions bot commented Nov 15, 2023

Visit the preview URL for this PR (updated for commit 670a3b5):

https://jump-math-staging--pr612-juliands-add-classro-td0l3hio.web.app

(expires Tue, 28 Nov 2023 00:53:39 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c42d8d0d853b05885664a2dd73f8245f4333ae51

@carissa-tang carissa-tang changed the base branch from staging to julian/add-time-picker November 20, 2023 05:08
@@ -34,6 +34,9 @@ const chakraStyles = (
outline: "none",
},
border: "none",
_disabled: {
opacity: 1,
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Due to an implementation detail the opacity-based styling for disabled elements was getting applied twice, meaning that this component looked different than other disabled components. Technically this fix belongs in the previous pr but that's already merged so I thought this was fine.

Copy link
Collaborator

@carissa-tang carissa-tang left a comment

Choose a reason for hiding this comment

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

looks good (i changed base branch for easier review - you can revert)

Base automatically changed from julian/add-time-picker to staging November 20, 2023 05:30
Placeholders are sentences, so they should read like one instead of like
a title. For example, you probably wouldn't use "Please choose a date"
as a title.
@jfdoming jfdoming force-pushed the juliands/add-classroom-timepicker branch from b720768 to 670a3b5 Compare November 21, 2023 00:51
@jfdoming
Copy link
Contributor Author

(force push just to rebase on previous PR)

@jfdoming jfdoming merged commit 8c52a3b into staging Nov 21, 2023
7 checks passed
@jfdoming jfdoming deleted the juliands/add-classroom-timepicker branch November 21, 2023 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants