-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#11571] Selective Deadline Extensions - Frontend tables and modals #11603
Conversation
2a5ba43
to
798c4a5
Compare
Would be good to also include a snapshot of the UI in the PR. |
@FergusMok Any updates on this PR? |
039b854
to
3ff804a
Compare
@moziliar Yup, sorry for the delay. I updated the PR with a short video on the UI |
@FergusMok Seems like |
@samuelfangjw Yup thanks for pointing that out. It was unintentional |
The UI seems to honour the tech design! Some comments I have about the UI:
Can also look into how E2E can be done. |
798c4a5
to
deaac10
Compare
c0ebb3a
to
06027b0
Compare
@FergusMok, can help to rebase only the relevant changes onto selective deadline ext branch? Shouldn't include irrelevant commits from master. |
@moziliar Hi Zongran
Are you talking about the options for "Extend By"?
This makes sense, but it'll be impossible to get T1 if we are trying to extend multiple individuals with pre-existing extensions
Yup, the confirmation page is the 2nd modal |
e44a458
to
060ddc9
Compare
src/main/java/teammates/ui/request/DeadlineExtensionRequest.java
Outdated
Show resolved
Hide resolved
495b71a
to
87c7892
Compare
@samuelfangjw Yup thanks for the catch, I just rebased |
87c7892
to
69419c1
Compare
Yep. It looks unnecessarily long?
I see. In that case, just leave it to the confirmation page.
Got it! Changes look good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me.
I'm largely good with this PR. Will take a final scan later today before approving! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks everyone for taking the time to review this |
… modals (TEAMMATES#11603) * [TEAMMATES#11571] Add selective-deadline-extension to CI workflow (TEAMMATES#11573) * [TEAMMATES#11571] Selective Deadline Extensions - C_UD selective deadlines (TEAMMATES#11649) * save progress * Add modal * Add mockups * Add extension deadline table * Add checkbox ability * Add table highlighting ability * Add radio button functionality * Refactor modal logic * Refactor time logic, add button validation * Add time functionality for dropdown * Add date modal * Add callback from extension modal * Add confirm modal * Add labelling to customize options * Remove unintended changes * Fix linting errors * Add snapshot tests and refactor * Update failing snapshot tests * Remove linting errors * Add component tests * Fix component tests * Add instructors and endpoints * Update snapshot tests * Add loading-retry to tables * Update tests * Fix linting errors * Fix PR comments * Remove highlighting for instructors table * Fix failing test * Fix timeZoneService inst undefined error * Fix table sorting; Remove institute field; Add role field * Fix linting errors * Fix role comparison * Change default sorting to end date * Change small test to normal size * Shift text and change extend button * Change delete button validation * Change initial sorting * Fix rebase regressions * Fix PR comments * Add parallel loading of ccourses and feedback session * Change outline color of course and session details * Fix linting errors and update tests * Shift extend and delete buttons to bottom right * Format all files * Fix side effects in pipe * Reset tables after eaching loading * Fix phrasing and dates of modals * Add loading status upon submission * Add validation to date modal; Fix date modal tests; Make click applicable to row; * Destructure students and instructors in function * Refactor model mapping * Add crosses to error messages * Add row hover * Fix failing test * Remove stray file from rebase * Fix 12 hours issue * Add DateTime enumm for date modal * Restructure guard clauses; Use object destructuring * Shift isLoading into finalize * Refactor update and delete * Add comment to formatting date * Fix radio enum rebase errors * Revert wrong indentation * Fix addAndFormatTime naming * Fix formatting errors * Remove e2e tests * Add PR review changes * Add time-related tests * Add break line to getExtensionTimestamp * Change or statement for hasSelected functions Co-authored-by: halfwhole <[email protected]> Co-authored-by: Jay Ting <[email protected]> Co-authored-by: Samuel Fang <[email protected]>
Part of #11571 for Milestone 1
This PR includes
firefox_O7WonoxYsO.mp4
Current behavior of extension:
The frontend has additional validation for:
1. Moving the sessionEndTime to before any extensions (in the sessions edit page), we'll warn of the invalidation of some extensions. - Will be handled in a separate PR #11704
2. Deleting Extensions / Updating pre-existing extensions to before the current date (in the extension page), users are allowed but are warned of immediate closure of the session for affected individuals. - This is handled in the simple modal in
individual-extension-date-modal.component
3. Deleting Extensions / Updating pre-existing extensions to before the current sessionEndTime - Users are not allowed to do this. The customize Extend-By options, and Extend-To date-picker will not allow this.
To be handled in a separate PR: