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

Labeled Items List #1091

Merged
merged 9 commits into from
Sep 16, 2024
Merged

Labeled Items List #1091

merged 9 commits into from
Sep 16, 2024

Conversation

caseyhans
Copy link
Collaborator

@caseyhans caseyhans commented Sep 1, 2024

image

@caseyhans caseyhans changed the base branch from main to assessment-tags-apply September 1, 2024 00:37
@caseyhans caseyhans marked this pull request as ready for review September 6, 2024 17:45
@caseyhans caseyhans requested a review from rabstejnek September 6, 2024 17:45
@caseyhans caseyhans changed the title Label detail page Labeled Items List Sep 6, 2024
Copy link
Collaborator

@rabstejnek rabstejnek 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! Just left one comment regarding some cleanup to be done.

@caseyhans caseyhans assigned caseyhans and unassigned shapiromatron Sep 16, 2024
@caseyhans caseyhans merged commit 2f72770 into assessment-tags-apply Sep 16, 2024
2 checks passed
@caseyhans caseyhans deleted the label-detail-page branch September 16, 2024 15:27
caseyhans added a commit that referenced this pull request Sep 27, 2024
* Assessment tag schema & crud

* Updates

* Linting

* Linting on html

* Dirty updates to tag application on detail views

* Update actions js

* Fixed tag creation bugginess

* Linting

* Add tagging to summary tables

* Added htmx tag indicators

* Stub in htmx tag indicators for react visuals

* improve tag_indicators

* add text_color field, update migration

* format

* update tests

* update tag/label creation page

* Added tags to visual filterset

* Added tag indicators to other react visuals

* add labels to lists for visuals

* linting

* js lint

* change 'tag' to 'label' across UI

* fix visual list clip path bug

* update dynamic_fields

* add list labels for datapivots & summary tables

* add label nesting on create page

* fix tests

* merge templates, add htmx scroll animations

* change default tag color to epa primary

* readd visual captions to list without overflowing

* Added tag filter to summary table filterset

* Update permissions

* Add view permissions for published/unpublished tags

* Remove assessment and text_color fields from Tag

* Added validation for published status, added subtree to tag filtering

* Revert "Remove assessment and text_color fields from Tag"

This reverts commit 28a9bd3.

* Fixes

* Fix tag subtree filtering & unpublished interaction

* convert tag to label

* name constraint unique together on assessment

* update test output

* linting

* fix tests from merge

* merge migrations

* reduce migrations

* Labeled Items List (#1091)

* label detail page

* lint

* change to filtered list view

* update visual list filter widgets, add permissions

* add prefetching, change template tag name, consolidate label html

* html formatting

* remove get_label_choices

* add models to admin & revision

* formatting

* update form prefix to match new htmx form prefixes

* add label to existing view tests

* add test_view_htmx for labels

* fix check_200 test

* update migration order

* use helper instead of duplicating code

* move code to shared location

* code reformatting

* move caption to next line

* add an icon for consistency with other actions

* use lowercase so it'll pass validator

* allow uppercase hex too

* simplify code

* move queryset logic to manager

* minor schema updates

* simplify and standardize html views; reduce # queries

* make plural

* make admin read-only

* make visible for team members

* template formatting

* only delete and create those needed

* move permission check to each action

* catch case where content object does not have get_assessment method

* update test and view permission

* refactor label htmx urls

* rewrite pattern for loading labels to items

* lint

* make htmx mutation observer reusable

* tighten up a few templates

* updates

* add spinner, fix linking

---------

Co-authored-by: casey1173 <caseyhansen1999@gmail.com>
Co-authored-by: Andy Shapiro <shapiro.andy@epa.gov>
Co-authored-by: Casey Hansen <42587248+caseyhans@users.noreply.github.com>
Co-authored-by: Matthew Munns <mmunns16@gmail.com>
Co-authored-by: Andy Shapiro <shapiromatron@gmail.com>
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.

3 participants