mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-09-07 15:25:47 +00:00
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:
@@ -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') && (
|
||||
|
||||
Reference in New Issue
Block a user