fix(exam,result,question): kebab-icon action menus, status change as a picker

Two follow-ups on the dropdown-actions pass:
- All four action menus (exams, results, questions, candidates panel) now
  trigger off a plain three-dot icon button instead of a text 'Actions'
  button with a chevron.
- Exam status change no longer lists all six statuses flat in the dropdown
  (bad UX, looked like six always-visible options). 'Status' is now one
  menu item that opens a small picker modal (current status + a Select +
  Update) rather than the full edit form.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
mihretue
2026-08-18 11:46:16 +00:00
parent 80db201676
commit ae3af7777e
5 changed files with 95 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
import { Button, Menu } from '@mantine/core';
import { ActionIcon, Menu } from '@mantine/core';
import {
IconChevronDown,
IconDotsVertical,
IconEdit,
IconGavel,
IconSend,
@@ -29,14 +29,14 @@ export function questionActionsColumn(
return (
<Menu shadow="md" width={180} position="bottom-end">
<Menu.Target>
<Button
size="compact-xs"
variant="light"
rightSection={<IconChevronDown size={12} />}
<ActionIcon
variant="subtle"
color="gray"
size="sm"
loading={handlers.isSubmittingReview}
>
{t('question.columns.actions', 'Actions')}
</Button>
<IconDotsVertical size={16} />
</ActionIcon>
</Menu.Target>
<Menu.Dropdown>
{(q.status === 'DRAFT' || q.status === 'REJECTED') && (