Skip to content

feat(platform): create tasks faster and open a task dialog as a page - #4557

Merged
yannickmonney merged 10 commits into
mainfrom
feat/task-create-and-open
Oct 8, 2026
Merged

yannickmonney merged 10 commits into
mainfrom
feat/task-create-and-open

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Why

Creating several tasks took many clicks, every field started empty, and nothing let you get from the board's task dialog to the task's own page (the chat-like view). The dialog also read differently from that page.

What changes

Create a task:

  • A new task starts at Medium priority with today as its start date; subtasks also start at Medium. The defaults are client-side only, so REST, agents, imports and repeat copies are unchanged.
  • Create another (a switch, remembered per browser) keeps the dialog open after a create. It clears the title, description and files, keeps everything else, and puts the caret back in Title. The chat hand-over and templates don't show it.
  • Keyboard: Enter in the title moves to the description, and ⌘/Ctrl+Enter creates from either field. A footer hint shows the shortcut and hides on touch screens.
  • Inline checks: a start date after the due date is named under the dates and holds Create, as does a file still uploading.
  • The create dialog reads like the open task: the status glyph tile and a borderless title in its header.
  • Every create is announced with an Open action, one helper (toastTaskCreated) that the chat hand-over shares.

Server rule TASK-R23: a start date that is today or past when someone writes it, on create or on a move, is stored as already announced. Without this, the today default would ring a "starts today" bell for every new task.

Task dialog:

  • The header shows the page's identity: status glyph tile, title, and one line of project · key · status. One TaskMetaLine component serves both the dialog and the page.
  • The dialog is wider (max-w-5xl).
  • Beside Close sit Copy link (shared with the page) and Open as page: a real router link, so Back returns to the board with the dialog open and a modifier click opens a new tab.

@tale/ui:

  • ResponsiveDialogContent gains headerActions: a cluster before Close on both the dialog and the phone drawer, which now has a Close of its own. Close reads the translated label, and its look is the house 32px icon button, shared with Dialog.
  • New PropertyList/PropertyRow/PropertyDivider, extracted from the task dialog, and PropertyChip.
  • ui-docs: a headerActions demo and a Property list page.

Verification

  • Component and browser tests:
    • New: task-modal.create-another, task-header-actions, responsive-dialog (unit + browser), property-list/property-chip (unit + browser), create-defaults.
    • Updated: task-modal.* (with a shared tests/utils/router-link-stub.tsx), task-detail-page, create-task-from-chat.
  • TASK-R23 unit tests on the create and update paths, plus the domain-spec guard.
  • tsc (platform, ui, ui-docs), oxlint, i18n parity, platform guards, lint:manual + check-guide, lint:links and the ui-docs tests are green locally.
  • Checked in a real browser:
    • The dialog header, wider layout and action cluster at 1440 px and on the 390 px drawer.
    • Open as page lands on the task page, and Back returns to the board with the dialog open.
    • Defaults (Medium, start today), Create another, and Ctrl+Enter: fields cleared, caret back in Title, dialog still open.
  • E2E: projects-depth.spec.ts now finds the priority trigger as Priority: Medium.

Not verified

  • The hourly sweep's bells in a running Inbox (TASK-B42).
  • German and French layout of the new footer, beyond the parity tests.

ResponsiveDialogContent takes headerActions, icon actions drawn in one cluster before Close on the centred dialog and on the phone's drawer, which now has a Close of its own. Close reads the shared translated label instead of a hard-coded English one and takes the house 32px icon button look that Dialog's Close shares. The run details dialogs keep their titles clear of the corner.
The task dialog's private property field moves into @tale/ui as PropertyList, PropertyRow and PropertyDivider, keeping its label column, stacked variants and long-label wrapping, and the dialog's panel uses them. PropertyChip is a pill trigger for a property under a form: glyph and value, or the property's name after a plus while it is unset. A Property list page with two demos documents both.
The task dialog shows the page's identity in its header, a status glyph tile, the title and one line of project, key and status, from one meta line component the page shares, and is wider for its reading column. Beside Close it offers Copy link, the same as the page's, and Open as page, a real link to the task's page, so Back returns to the board with the dialog open and a modifier click opens a tab.
A start date that is today or past when someone writes it, on create or on a move, is stored as already announced, so the hourly sweep sends no starts-today bell for a date the writer was just looking at; a start still ahead rings on its day. TASK-R23 states the rule.
A new task starts at Medium priority and today, and its dialog reads like the open task: the status as a glyph tile and the title in the header. Create another keeps the dialog for the next task, clearing the words and files and keeping the rest, with the caret back in Title. Enter in the title moves to the description, Cmd or Ctrl and Enter creates from either, a start after the due date is named under the dates and holds Create, as does a file still uploading. Every create is announced with an Open action, one helper the chat hand-over shares; subtasks start at Medium too.
The tasks page in EN, DE and FR explains the Medium and today defaults, the keyboard paths, Create another and the inline schedule check, and the dialog's Open as page and Copy link; the design doc gives the dialog header and the create dialog. Manual boxes TASK-F66 to F69, TASK-B41, B42, TASK-A16 and A17 with their automation rows, and TASK-F2 names the new defaults.
The managed-instruction suite reads the task UPDATE's bound values by position; the stamp for a start that has already arrived now follows startChanged.
The dialog header-actions demo names its Open as page anchor, as the story does, and the task dialog's Open as page button and the created-toast duration are no longer exported: nothing outside their files uses them.
A started task whose start moves ahead is unstamped and rings on its new day; a start moved to a moment that has already come is written as announced, so the sweep rings nobody.
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