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

ROLES: Sortierung der Rollentypen im Auswahlmenü #552

Closed
4 tasks done
carlobeltrame opened this issue May 16, 2024 · 0 comments · Fixed by #560
Closed
4 tasks done

ROLES: Sortierung der Rollentypen im Auswahlmenü #552

carlobeltrame opened this issue May 16, 2024 · 0 comments · Fixed by #560

Comments

@carlobeltrame
Copy link
Member

carlobeltrame commented May 16, 2024

Als Person beim SAC welche oft Rollen vergeben muss
möchte ich die Rollentypen nach einem fixen Muster sortiert haben,
um möglichst schnell und konsistent die korrekte Rolle auswählen zu können.

Neu sollen die Rollen im app/views/roles/_type_select.html.haml beim SAC alphabetisch sortiert sein, abgesehen von sämtlichen "Andere" Rollen welche immer am Ende der Liste stehen sollen.

Mockup

Kooha-2024-05-16-14-16-41

Tech-Spec

  • Umsetzung im SAC Wagon
  • Sortierung soll nach übersetztem Rollentext sein, nicht nach technischem Rollen-Klassennamen
  • Auswahl wird von Role::List#role_types berechnet
  • Sortierung ist bisher unklar, aber unwichtig. Falls dieselbe Methode noch an anderen Orten verwendet wird dürfte es egal sein wenn die Sortierung dort auch aktiv wird.
  • Es gibt Rollen die "Andere" heissen in diversen Gruppen, siehe auch GROUPS: Gruppen und Rollen anpassen #551

ToDo

  • Im SAC Wagon die Methode Role::List#role_types prependen, und super.sort mit passender Logik aufrufen
  • Specs schreiben
  • Mit angemessener Rolle "durchklicken"
  • CHANGELOG-Eintrag unter "unreleased" unten hinzufügen
Largo added a commit that referenced this issue May 21, 2024
Largo added a commit to hitobito/hitobito that referenced this issue May 22, 2024
Largo added a commit that referenced this issue May 22, 2024
@Largo Largo removed their assignment May 22, 2024
Largo added a commit to hitobito/hitobito that referenced this issue May 22, 2024
@Largo Largo linked a pull request May 29, 2024 that will close this issue
Largo added a commit to hitobito/hitobito that referenced this issue May 29, 2024
@Largo Largo removed their assignment Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants