Release govoplan-tasks v0.1.23: unify interface contracts and documentation
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@govoplan/tasks-webui",
|
||||
"version": "0.1.22",
|
||||
"version": "0.1.23",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
@@ -14,7 +14,7 @@
|
||||
"./styles/tasks.css": "./src/styles/tasks.css"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@govoplan/core-webui": "^0.1.44",
|
||||
"@govoplan/core-webui": "^0.1.45",
|
||||
"lucide-react": "^1.23.0",
|
||||
"react": ">=19.2.7 <20",
|
||||
"react-dom": ">=19.2.7 <20",
|
||||
|
||||
@@ -124,6 +124,23 @@ export default function TasksPage({ settings, auth }: { settings: ApiSettings; a
|
||||
|
||||
return (
|
||||
<WorkspaceFrame as="main" height="viewport" surface="plain" className="tasks-page" label="Task inbox" data-help-context-id="tasks.page.inbox">
|
||||
<WorkspaceActionBar
|
||||
scope="workspace"
|
||||
variant="collection"
|
||||
refreshable
|
||||
reloadAction={{ onReload: () => void load(), loading: loading || busy, label: "i18n:govoplan-tasks.refresh" }}
|
||||
contextActions={<span className="tasks-title"><ListChecks size={18} /><strong>i18n:govoplan-tasks.work</strong></span>}
|
||||
createAction={canWrite ? (
|
||||
<Button
|
||||
variant="primary"
|
||||
onClick={() => setCreateOpen(true)}
|
||||
disabled={busy}
|
||||
helpContextId="tasks.action.create"
|
||||
>
|
||||
<Plus size={16} aria-hidden="true" /> i18n:govoplan-tasks.create_task
|
||||
</Button>
|
||||
) : undefined}
|
||||
/>
|
||||
<WorkspaceLayout
|
||||
variant="split"
|
||||
primarySize="default"
|
||||
@@ -138,24 +155,6 @@ export default function TasksPage({ settings, auth }: { settings: ApiSettings; a
|
||||
helpContextId="tasks.page.inbox"
|
||||
helpModuleId="tasks"
|
||||
primary={<>
|
||||
<WorkspaceActionBar
|
||||
scope="collection-pane"
|
||||
variant="collection"
|
||||
refreshable
|
||||
reloadAction={{ onReload: () => void load(), loading: loading || busy, label: "i18n:govoplan-tasks.refresh" }}
|
||||
className="tasks-sidebar-bar"
|
||||
contextActions={<span className="tasks-title"><ListChecks size={18} /><strong>i18n:govoplan-tasks.work</strong></span>}
|
||||
createAction={canWrite ? (
|
||||
<Button
|
||||
variant="primary"
|
||||
onClick={() => setCreateOpen(true)}
|
||||
disabled={busy}
|
||||
helpContextId="tasks.action.create"
|
||||
>
|
||||
<Plus size={16} aria-hidden="true" /> i18n:govoplan-tasks.create_task
|
||||
</Button>
|
||||
) : undefined}
|
||||
/>
|
||||
<FilterBar as="form" surface="control" wrap="never" className="tasks-search" onSubmit={submitSearch} role="search">
|
||||
<Search size={15} aria-hidden="true" />
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user