Skip to content

feat(action-center): show status, assignee and due date at the top of the action drawer - #1101

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/action-drawer-fields-top
Oct 17, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/action-drawer-fields-top

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

The action drawer's Status, Assignee and Due date fields move from the footer to the top, from product feedback.

Before Now
Where A footer below the tabs' content: Status and Due date side by side, Assignee under them One row right under the header (title and tags), ahead of the tabs
Order Status, Due date, Assignee Status, Assignee, Due date
Narrow screens — The three stack

Why: these are what someone opening an action checks and changes first. In the footer, changing an action's status or owner meant scrolling past its tasks, signals or history.

What changes

  • components/action-center/action-drawer.tsx: the footer block is gone, and the same three controls render in a row after SheetHeader (grid gap-3 border-b px-6 py-3 sm:grid-cols-3). Their values and handlers (updateActionStatus, assignAction, setActionDueDate) are unchanged.

  • Labels are tied to their controls (htmlFor / id): screen readers name each field, and clicking a label focuses its control. Before, they had no accessible name.

  • New action-drawer.test.tsx renders the drawer with mocked server actions and checks:

    • the labels read Status, Assignee, Due date, all ahead of the tabs;
    • each label names exactly one control (no second copy below the content);
    • the due date keeps its value.

    It fails on the old layout.

Heads-up for the open Action Center PRs (#1072…#1086): some change this drawer's header, next to where the new row goes. Whichever merges second needs a small manual merge there.

Related issue

None. Product feedback on the Action Center.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Open Action Center → Actions and click an action.
  2. The drawer shows Status, Assignee and Due date in one row under the title and tags, above the tabs, and none below the content.
  3. Change each one: the change saves, and the History tab logs the status change.
  4. Click the "Due date" label: the date field takes focus.
  5. On a narrow window (phone width), the three fields stack.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/): no errors; the 7 warnings are in files this PR does not touch
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Also run:

  • web: yarn test passes (852), and yarn build passes.
  • In the browser (demo data): the row is above the tabs, and changing the status saves and shows in History. I checked at 1024px and 1440px, at phone width (the fields stack), and in the light and dark themes.
  • Review: a code review flagged the unlinked labels and a test that checked a CSS class. Both are fixed: the test now checks the labels and their controls. The conflict with the open Action Center PRs is noted above.

🤖 Generated with Claude Code

…ction drawer

The three fields sat in a footer below the tabs' content, so changing an
action's status or owner meant scrolling past its tasks and signals. They
now sit in one row under the header, ahead of the tabs, in the order
Status, Assignee, Due date, stacking on narrow screens. Their labels are
tied to their controls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@gkhngyk ready for review: the action drawer's Status, Assignee and Due date now sit in one row under the header instead of the footer. Heads-up: open Action Center PRs that touch the drawer header will need a small manual merge there after this one.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, approving. Merges cleanly with #1078 and #1079, which touch the same drawer, and the tests pass on the combined tree.

@gkhngyk
gkhngyk merged commit 0f1a85b into ansvisor:main Oct 17, 2026
6 checks passed
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.

2 participants