Skip to content

Put each part of a role's RAMO description in its own card (RO-02) - #77

Merged
ugedal1 merged 1 commit into
mainfrom
feat/role-page-cards
Nov 19, 2026
Merged

ugedal1 merged 1 commit into
mainfrom
feat/role-page-cards

Conversation

@ugedal1

@ugedal1 ugedal1 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

The role page (/organisering/roller/[id]) showed the RAMO description as bare headings and paragraphs. It now looks like the team type and tool pages.

  • The role name and team types stay on top.
  • Rolle, Ansvar, Myndighet and Oppgaver each get a ds-card, 2×2 on wide screens and stacked on phones. The grid never puts more than two cards in a row, so you don't get a row of three with one card left below.
  • The card headings use the blue capitals of the RAMO labels in the role list, a little larger (--ds-font-size-3). They are still h2 elements with the plain words, so screen readers and the tests read "Rolle", not "ROLLE".
  • A role with no RAMO text written still shows "Rollen er ikke beskrevet ennå."

Requirement: RO-02.

Testing

  • roller-id.test.ts checks that each RAMO part is in its own card.
  • pnpm test and pnpm check:web pass.
  • Tried in the browser with the seed data, on desktop and at phone width.

🤖 Generated with Claude Code

The role page now looks like the team type and tool pages: the name and
team types on top, and Rolle, Ansvar, Myndighet and Oppgaver each in a
card below, two side by side where there is room. The card headings use
the blue capitals of the RAMO labels in the role list, a little larger.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ugedal1
ugedal1 merged commit 5bc4e8a into main Nov 19, 2026
6 checks passed
@ugedal1
ugedal1 deleted the feat/role-page-cards branch November 19, 2026 09:41
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