-
Notifications
You must be signed in to change notification settings - Fork 21
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
Feat: replace active quantifier #503
Merged
Merged
Changes from 18 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
9332450
fix(api): remove check to verify that *all* quantifiers were assigned…
mattyg fa1d935
chore(api): remove unnecessary logging
mattyg 14709b0
fix(api): replace setting PRAISE_QUANTIIFIERS_ASSIGN_ALL with PRAISE_…
mattyg 594ae3f
chore: changelog
mattyg 74c2814
chore: changelog re-wording
mattyg af61fab
chore(frontend): delete unused component
mattyg 604aa63
chore(frontend): remove unncessary function call wrappers
mattyg 8a7f06e
refactor(frontend): delete MarkDuplicateButton, MarkDismissedButton -…
mattyg a02d54b
feat(api): period controller to replace a quantifier
mattyg a60dc4f
feat(frontend): UX to replace an active quantifier with another that …
mattyg f95da2a
chore: remove no longer needed cli command 'replace-quantifier'
mattyg 9551bc9
fix(frontend): typo on tailwind class name
mattyg 090110e
style(frontend): make SelectUserRadioGroup expand height up to max size
mattyg 269be5d
refactor(frontend): remove headlessui Popover from UserPopover, as it…
mattyg 0e26fb7
style(frontend): support dark mode in SelectUserRadioGroup
mattyg 7597797
fix(api): ensure that quantification scores are completely reset when…
mattyg eba1fa2
refactor(api): use getPeriodDateRangeQuery to reduce duplicate logic
mattyg b963d21
fix(frontend): display Notice when no unassigned quantifiers are avai…
mattyg 8d86635
chore: changelog
mattyg 9ab0fac
fix: after replacing quantifier, update both period and affected prai…
mattyg 25426e4
feat(frontend): support replacing quantifier with another active quan…
mattyg 915ef74
style(frontend): specify dark / light mode text color in UserPopover
mattyg 7f55486
fix(api): log the user who called replaceQuantifier
mattyg d229cdc
Styling adjustments
kristoferlund e3c7fe4
Merge branch 'main' into fix/allow_even_quantifier_assignment_when_to…
kristoferlund f5fe398
test(api): fix settings and periodsettings tests - use seeded setting…
mattyg 076ba41
Merge branch 'fix/allow_even_quantifier_assignment_when_too_many_quan…
mattyg a6b57f6
fix(api): prevent replacing quantifier with another that is already a…
mattyg 63e45e4
fix(frontend): clear selected user after submit in ReplaceQuantifierD…
mattyg 75c975b
feat(frontend): exclude the original quantifier from the list of poss…
mattyg dd7601f
fix(frontend): update replace quantifier success message to indicate …
mattyg 830d0cb
test(api): tests for replaceQuantifiers controller
mattyg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
import { Router } from '@awaitjs/express'; | ||
import * as periodController from '@period/controllers'; | ||
import * as core from '@period/controllers/core'; | ||
import * as assignment from '@period/controllers/assignment'; | ||
|
||
// Period-routes | ||
const periodRouter = Router(); | ||
|
||
periodRouter.getAsync('/all', periodController.all); | ||
periodRouter.getAsync('/:periodId', periodController.single); | ||
periodRouter.getAsync( | ||
'/:periodId/receiverPraise', | ||
periodController.receiverPraise | ||
); | ||
periodRouter.getAsync( | ||
'/:periodId/quantifierPraise', | ||
periodController.quantifierPraise | ||
); | ||
periodRouter.getAsync('/all', core.all); | ||
periodRouter.getAsync('/:periodId', core.single); | ||
periodRouter.getAsync('/:periodId/receiverPraise', core.receiverPraise); | ||
periodRouter.getAsync('/:periodId/quantifierPraise', core.quantifierPraise); | ||
|
||
// ADMIN Period-routes | ||
const adminPeriodRouter = Router(); | ||
adminPeriodRouter.postAsync('/create', periodController.create); | ||
adminPeriodRouter.patchAsync('/:periodId/update', periodController.update); | ||
adminPeriodRouter.patchAsync('/:periodId/close', periodController.close); | ||
adminPeriodRouter.postAsync('/create', core.create); | ||
adminPeriodRouter.patchAsync('/:periodId/update', core.update); | ||
adminPeriodRouter.patchAsync('/:periodId/close', core.close); | ||
adminPeriodRouter.getAsync( | ||
'/:periodId/verifyQuantifierPoolSize', | ||
periodController.verifyQuantifierPoolSize | ||
assignment.verifyQuantifierPoolSize | ||
); | ||
adminPeriodRouter.patchAsync( | ||
'/:periodId/assignQuantifiers', | ||
periodController.assignQuantifiers | ||
assignment.assignQuantifiers | ||
); | ||
adminPeriodRouter.patchAsync( | ||
'/:periodId/replaceQuantifier', | ||
assignment.replaceQuantifier | ||
); | ||
adminPeriodRouter.getAsync('/:periodId/export', periodController.exportPraise); | ||
adminPeriodRouter.getAsync('/:periodId/export', core.exportPraise); | ||
|
||
export { periodRouter, adminPeriodRouter }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nice!