You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A footer with actions has been added to the drawer. In read-only mode it displays "Close" and "Edit Tags". In edit mode, it displays "Cancel" and "Save"
When the user selects the "edit tags" button, the drawer enters "edit mode":
a. X's appear next to deletable tags
b. Any collapsed taxonomies expand
c. "Add a tag" fields (#188) appear at the bottom of the sections for each taxonomy
d. Buttons in the footer change to "cancel" and "save"
There is no "x" in the top right of the drawer
"Manage tags" has been moved down
Taxonomies with tags added to them are open by default, and ordered according to the number of tags they contain
Taxonomies with no tags are listed alphabetically below the taxonomies with tags
Styling has changed for the count of tags per taxonomy
The tag count shows as "0" for taxonomies without tags, and is greyed out.
Changes are not saved immediately when users Add/Delete tags - they are kept in the local state of the tag drawer during edit mode and only saved when the user clicks save.
When the user clicks Save:
a. Any newly added/deleted tags are persisted. (Use React Query - this should also instantly update any tagging widgets on the Outline/Unit pages)
b. The drawer changes to Read-Only mode but stays open.
c. A toast appears in the bottom left of the page saying "N tags added", "N tags removed", or "X tags added, Y tags removed". We can skip the UNDO feature shown in Figma for now (will come post-MVP)
If the user clicks on the grey area outside of the tagging drawer AND there are unsaved changes (at least one added/removed tag):
a. The drawer does not close
b. The footer of the drawer animates to draw the user's attention to the actions (see Figma). Perhaps like Blink 2 at this link
Make sure the drawer scrolls (see note below)
Developer Notes
This is a big task! Consider splitting it up into 2-3 smaller PRs if at all possible.
"As a course author, I want to easily add tags to content in my course"
Design: See the various "Refined Tag Drawer" flows in "Content Tagging MVP"
Depends on #187 and #188 .
Acceptance Criteria
a. X's appear next to deletable tags
b. Any collapsed taxonomies expand
c. "Add a tag" fields (#188) appear at the bottom of the sections for each taxonomy
d. Buttons in the footer change to "cancel" and "save"
a. Any newly added/deleted tags are persisted. (Use React Query - this should also instantly update any tagging widgets on the Outline/Unit pages)
b. The drawer changes to Read-Only mode but stays open.
c. A toast appears in the bottom left of the page saying "N tags added", "N tags removed", or "X tags added, Y tags removed". We can skip the UNDO feature shown in Figma for now (will come post-MVP)
a. The drawer does not close
b. The footer of the drawer animates to draw the user's attention to the actions (see Figma). Perhaps like Blink 2 at this link
Developer Notes