Gebruikerslijst volgt de rolhierarchie, nieuwe uitnodigingslink maken, foutkaart zonder nep-aanvraagknop

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-08 15:59:10 +01:00
co-authored by Claude Sonnet 5.5
parent 026a12a3f1
commit e9feb37961
9 changed files with 118 additions and 17 deletions
@@ -32,6 +32,9 @@ describe('InviteCompletePage', () => {
// card must not talk about "system setup".
expect(screen.getByText('Link invalid or expired')).toBeInTheDocument();
expect(screen.queryByText(/setup required/i)).not.toBeInTheDocument();
// No button that pretends to request a new link (there is no mail): it only leads to sign-in.
expect(screen.queryByText(/request a new invitation link/i)).not.toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Go to sign in' })).toBeInTheDocument();
});
it('shows an error state for a used token', async () => {
@@ -119,9 +119,9 @@ export function InviteCompletePage() {
<Button
variant="outline"
className="w-full"
onClick={() => navigate({ to: '/' })}
onClick={() => navigate({ to: '/login' })}
>
{t('inviteComplete.requestNewInvitationLink')}
{t('inviteComplete.toLogin')}
</Button>
</CardContent>
</Card>