Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -540,3 +540,5 @@ DOOP_MCP_REQUIRE_FENCE=0
#MULTICA_API_TOKEN=
#MULTICA_WORKSPACE_ID=
#MULTICA_WEB_URL=
# Also served to the app (GET /api/me), so a Multica issue key in the Comments tab links to
# <url>/issues/<KEY>. Unset = the key shows as plain text.
21 changes: 21 additions & 0 deletions docs/ux/CHE-9396.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
issue: CHE-9396
design: design/lifecycle-ui/approved/A4-comment-resolution.html @ 572cc77
# U4 mounts the A4 resolution flow in the Comments tab (src/components/CommentsPanel.tsx).
# The A4 "Suggested: Addressed" hint waits for CHE-9351 (A3 page versions) and is NOT rendered.
pages:
- id: a4-comment-resolution
design: design/lifecycle-ui/approved/A4-comment-resolution.html @ 572cc77
url: canvas editor, Comments tab (CommentsPanel); 1440 desktop panel and 390 phone sheet
keep:
- thread-row: 'author, time, comment text, frame name, "Resolved by" line, reply field'
- filter-tabs: 'Open and Resolved pills with counts'
- thread-click: 'row click flies to the pin and opens it'
change:
- resolve-picker: 'the Resolve button becomes a menu "Resolve as": Addressed, Won''t fix, Moved to Multica'
- resolve-dialog: 'one-line dialog "Resolve as {reason}"; Resolve stays off until the line is filled'
- reason-chip: 'resolved thread shows the reason chip and its ref or note'
- waits-on-multica: 'a thread whose newest reply key starts q: shows "Open · waits on Multica", the issue link and no Resolve'
- review-summary: '"Since last review" block with counts and a Mark reviewed button'
- panel-state: 'loading, empty, offline and inline error with Try again (PanelState copy of A4)'
remove:
- bare-resolve-button: 'the one-click Resolve with no reason (the server still accepts a body-less resolve)'
3 changes: 3 additions & 0 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import { previewDocument } from './componentPreview.ts'
import { codeSchema, propSchema } from './componentTools.ts'
import { activeComponents } from '../shared/components.ts'
import { PRO_UPLOAD_BYTES } from '../shared/billing.ts'
import { multicaWebBase } from '../shared/multica.ts'
import { listPageRuns, multicaCommentsSource, multicaRunsSource } from './multicaRuns.ts'
import { setReconSources, storedReconAssets } from './reconGuard.ts'
import { isUuid } from '../shared/pageIssue.ts'
Expand Down Expand Up @@ -993,6 +994,8 @@ app.get('/api/me', async (req, res) => {
plan: workspaces.planFor(id),
/* whether this server sells plans at all: no Upgrade anywhere without it */
billing: billing.billingEnabled(),
/* where Multica issues live, so the comments panel can link a "Moved to Multica" key */
multicaWebUrl: multicaWebBase(env.MULTICA_WEB_URL) ?? undefined,
/* the SPA cannot infer this: impersonation swaps the session cookie
outright, so everything else on this response describes the person
being viewed, not the admin doing the viewing */
Expand Down
7 changes: 7 additions & 0 deletions shared/multica.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** The Multica workspace's web URL (the server's `MULTICA_WEB_URL`, e.g.
* `https://multica.example/cheese-work`) as the SPA may link to it: http(s)
* only, no trailing slash. Null when unset or not a web URL. */
export function multicaWebBase(raw: unknown): string | null {
if (typeof raw !== 'string' || !/^https?:\/\//.test(raw)) return null
return raw.replace(/\/+$/, '')
}
Loading
Loading