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

Fix tags #1384

Merged
merged 7 commits into from
Sep 13, 2024
Merged

Fix tags #1384

merged 7 commits into from
Sep 13, 2024

Conversation

vincit-matu
Copy link
Contributor

@vincit-matu vincit-matu commented Sep 5, 2024

🛠️ Changelog

  • Adds new StatusLabel component to common, which is a HDS StatusLabel extended with the "draft" type
  • Replaces Tags with StatusLabels where appropriate
  • Adds unique ids to Tags which appear on pages with more than one Tag
  • Replaces the deprecated deleteButtonAriaLabel with plain aria-label
  • Removes isArchived from the reservation unit list, as well as the corresponding gql-query (and gql-types)

🧪 Test plan

  • Check that status labels/tags work as expected, and that tags have unique ids if there are several tags on a page

🎫 Tickets

  • TILA-3498

@vincit-matu vincit-matu force-pushed the fix-tags branch 2 times, most recently from a8fd431 to 414c5e3 Compare September 5, 2024 21:22
@vincit-matu vincit-matu marked this pull request as ready for review September 5, 2024 21:51
Copy link
Contributor

@joonatank joonatank left a comment

Choose a reason for hiding this comment

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

👍

- our StatusLabel extends the HDS StatusLabel, to also handle the
  “draft” type - and uses tilavaraus colour-scheme
- removes isArchived as unnecessary
- add unique id’s to the search result status tags
- add unique id’s to the admin ui search filter tags
- make the tag id for the next available time unique (status-
  tag-#pk)
- refactor deprecated Tag attribute deleteButtonAriaLabel to just
  plain aria-label
@joonatank joonatank changed the base branch from main to refactor-reservation-unit-state-properties September 12, 2024 12:13
Base automatically changed from refactor-reservation-unit-state-properties to fix-cant-modify-seasonal-reservation September 13, 2024 08:58
@joonatank joonatank merged commit c954ad3 into fix-cant-modify-seasonal-reservation Sep 13, 2024
6 checks passed
@joonatank joonatank deleted the fix-tags branch September 13, 2024 09:02
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.

2 participants