Skip to content

Refonte UI compte / habilitations#137

Draft
skelz0r wants to merge 4 commits into
developfrom
features/ui-compte-habilitations
Draft

Refonte UI compte / habilitations#137
skelz0r wants to merge 4 commits into
developfrom
features/ui-compte-habilitations

Conversation

@skelz0r
Copy link
Copy Markdown
Member

@skelz0r skelz0r commented May 20, 2026

No description provided.

skelz0r added 4 commits May 20, 2026 13:46
Replace the 4-column table (habilitation, token, actions, detail)
with a responsive grid of DSFR cards showing title, status badge,
DataPass reference and user role label.

- Switch eager loading from :active_token to
  :user_authorization_request_roles (fixes N+1 for role display)
- Filter roles in Ruby on the preloaded collection instead of
  hitting the DB per row
- Load @tokens (all tokens) in show action instead of @main_token
  + @other_tokens (preparation for show redesign)
- Rewrite index feature spec to match the new card-based UI
Remove mono-token-centric UI and redundant sections:
- Remove summary sidebar (sticky navigation)
- Remove scopes/access rights section (available on DataPass)
- Remove "main token" reveal/prolong/prolongation workflow
- Remove attestations download section
- Add prominent DataPass link button (fr-btn--lg)
- Replace token sections with a single table listing all tokens
  with actions: reveal, transfer and stats links
- Simplify contacts as an inline list with a DataPass edit link
- Keep delegations section unchanged

Adapt show spec and shared magic link spec to match new UI.
The viewable_by_users scope now filters out refused requests.
These are not actionable by users and add noise to the list.
Users can still see refused requests on DataPass directly.
Create a "Mairie de Nantes" authorization request (external_id 107)
where contact_technique@yopmail.com is the demandeur and
user@yopmail.com is only contact_technique. This allows testing
the UI from a non-demandeur perspective.

Also extract user creation into a dedicated create_users method
to keep perform under the method length limit.
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.

1 participant