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

UI improvements in subscribers/group/roles filtering #2615

Merged

Conversation

amaierhofer
Copy link
Contributor

  • bigger group names
  • visually separate groups
  • do not render layer without subgroups

@amaierhofer amaierhofer force-pushed the bug/2611-visual-improvements-to-subscriber-roles-filter branch from 7a92671 to 1232ab5 Compare May 15, 2024 11:27
@@ -5,9 +5,9 @@

- if @role_types
- @role_types.each do |layer, groups|
%h4.filter-toggle=layer
%h3.filter-toggle.mt-4=layer if groups.any?
Copy link
Member

Choose a reason for hiding this comment

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

In welchem Fall ist dieses if nützlich? Man muss doch immer zuerst mit dem Typeahead eine Gruppe auswählen, und erst dann wird dieser Abschnitt überhaupt angezeigt (via if @role_types zwei Zeilen weiter oben?)
Präsenz von @role_types impliziert meiner Ansicht nach groups.any?, sehe ich das falsch? Du schreibst "do not render layer without subgroups", aber es kann ja auch ein Layer mit Rollen aber ohne Subgruppen geben..?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ja, es wird immer zuerst eine Gruppe ausgewählt und dann entsprechend die @role_types befüllt.

Falls jetzt der Layer groupen mit Rollen enthält (weil dieses als global betrachtet werden wie zb beim Sac) dann erscheinen aktuell nur die Layer als überschriften aber ohne auswählbare Rollen, siehe screenshot

image

Habe die Anpassung auch noch im role partial beim people_filter nachgezogen

amaierhofer and others added 2 commits May 24, 2024 12:20
- bigger group names (roles)
- visually separate groups (roles)
- do not render layer without subgroups (roles)
- proper spacing for tags
@carlobeltrame carlobeltrame force-pushed the bug/2611-visual-improvements-to-subscriber-roles-filter branch from 04c6769 to e39479c Compare May 24, 2024 10:24
@carlobeltrame carlobeltrame merged commit 143fec1 into master May 24, 2024
11 of 13 checks passed
@carlobeltrame carlobeltrame deleted the bug/2611-visual-improvements-to-subscriber-roles-filter branch May 24, 2024 11:35
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.

ABOS: Tief verschachtelte globale Gruppen werden nicht zur Auswahl angeboten
2 participants