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

Work list facets #1872

Merged
merged 27 commits into from
Nov 21, 2023
Merged

Work list facets #1872

merged 27 commits into from
Nov 21, 2023

Conversation

actlikewill
Copy link
Contributor

@actlikewill actlikewill commented Nov 15, 2023

Facets for the new work list view:

  • Principal
  • Tasks
  • Primary
  • Commencement
  • Amendment
  • Consolidation
  • Repeal
  • Type (actually subtype)
  • taxonomy
  • Document

https://www.loom.com/share/780e9445853045d39ae45880518ce696?sid=74a77e9f-d7dd-416f-a1c1-c6c0c6d805a0

@actlikewill actlikewill changed the base branch from master to work-list-v2 November 15, 2023 14:27
indigo_app/forms.py Outdated Show resolved Hide resolved
indigo_app/forms.py Outdated Show resolved Hide resolved
indigo_app/forms.py Outdated Show resolved Hide resolved
@actlikewill
Copy link
Contributor Author

@longhotsummer I have added the taxonomy and made the changes we discussed: https://www.loom.com/share/6a77b5aca43f4b8085476bc98f3e83e0?sid=8ee9a0b7-9f65-4ba3-8b21-f9ae4a424048

@actlikewill actlikewill marked this pull request as ready for review November 18, 2023 08:30
@longhotsummer
Copy link
Contributor

Looking great. Minor changes, please:

  • Move the Expression status facet into the documents facet group, and put it below the "documents" facet. Those are about documents, not works.
  • Change "Documents" to "Points in time" in the facets, and in the nav tab when expanding a work
  • Move the Type facet to the top of the work facet list (just above Principal but below the taxonomy tree)

@longhotsummer
Copy link
Contributor

Oh and "Expression status" should be "Point in time status"

@@ -387,6 +387,21 @@ class WorkFilterForm(forms.Form):

advanced_filters = ['assent', 'publication', 'repeal', 'amendment', 'commencement', 'taxonomies', 'completeness']

# Principal
principal = forms.MultipleChoiceField(required=False, choices=[('principal', 'Principal'), ('not_principal', 'Not Principal'), ('stub', 'Stub'), ('not_stub', 'Not Stub')])
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think the labels here have any reflection on reality, since the actual labels are driven by the facets calculation code.

@@ -354,8 +354,8 @@ def data_as_url(self):

class WorkFilterForm(forms.Form):
q = forms.CharField()
stub = forms.ChoiceField(choices=[('', 'Exclude stubs'), ('only', 'Only stubs'), ('temporary', 'Temporary stubs'), ('permanent', 'Permanent stubs'), ('all', 'Everything')])
status = forms.ChoiceField(choices=[('published', 'published'), ('draft', 'draft')])
stub = forms.MultipleChoiceField(choices=[('stub', 'Stub'), ('not_stub', 'Not stub'), ])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note that we split out stubs into their own facet

@actlikewill actlikewill merged commit e98dc37 into work-list-v2 Nov 21, 2023
6 checks passed
@actlikewill actlikewill deleted the work-list-facets branch November 21, 2023 10:50
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