Skip to content

feat(auth): use the mcoli-ui MCID sign-in button on the login page - #113

Merged
ademboukabes merged 1 commit into
developfrom
feat/mcid-sign-in-button
Dec 5, 2026
Merged

ademboukabes merged 1 commit into
developfrom
feat/mcid-sign-in-button

Conversation

@ademboukabes

Copy link
Copy Markdown
Collaborator

What and why

Replaces the login page's hand-made MCDI button with the mcoli-ui MCID sign-in button styles ("Continue with MCID", MCID mark), keeping the redesigned layout and the same MCDI login URL (/admin/auth/mcdi/login).

  • Adds mc-button and mc-mcid-button from mcoli-ui (npx mcoli-ui@latest add mc-mcid-button), exported from @/shared/ui (buttonVariants as mcButtonVariants, to stay apart from shadcn's).
  • The sign-in stays a real <a>: the docs' render={<a />} nativeButton={false} form makes Base UI add role="button", so screen readers would announce a button for a navigation.
  • Uses the filled appearance (theme foreground fill), which replaces the button's hex colours with theme tokens.

How it was checked

npm run lint, npm run typecheck, npm test, npm run build in frontend/.

Add mc-button and mc-mcid-button from mcoli-ui and render the MCDI login link with their styles
and the MCID mark, keeping the redesigned layout. The link stays a real <a>: rendering
McMcidButton as a link gives it role="button".
@ademboukabes
ademboukabes merged commit 861ff46 into develop Dec 5, 2026
1 check passed
@ademboukabes
ademboukabes deleted the feat/mcid-sign-in-button branch December 5, 2026 08:45
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