AP1.12b/d: Gates per Modal und Actions in der Plan-Outline.
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Blocked by required conditions
Test Suite / playwright-smoke (push) Blocked by required conditions
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Has been cancelled

RoadmapPlanSection ist read-only mit Modal-Anlage; Stammdaten auf der Gate-Detailseite. Unter Arbeit zeigt die Outline offene Actions wie der Projektbaum unter Struktur.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-10 15:41:42 +02:00
1 parent bcf6f83813
commit b1686f3a98
7 files changed
+275 -181

No files matched your search

+12
View File
@@ -23,6 +23,9 @@ export function resolvePlanOutlineActiveKey(pathname) {
if (path.startsWith('/projects/')) {
return 'structure'
}
if (path.startsWith('/actions/')) {
return 'work'
}
const match = PLAN_OUTLINE_NODES.find(
(node) => path === node.to || path.startsWith(`${node.to}/`),
)
@@ -37,3 +40,12 @@ export function resolvePlanOutlineProjectId(pathname) {
const match = (pathname || '').match(/^\/projects\/([^/?]+)/)
return match?.[1] ?? null
}
/**
* @param {string} pathname
* @returns {string | null}
*/
export function resolvePlanOutlineActionId(pathname) {
const match = (pathname || '').match(/^\/actions\/([^/?]+)/)
return match?.[1] ?? null
}
+12 -1
View File
@@ -1,5 +1,10 @@
import { describe, expect, it } from 'vitest'
import { PLAN_OUTLINE_NODES, resolvePlanOutlineActiveKey } from './planOutlineNodes.js'
import {
PLAN_OUTLINE_NODES,
resolvePlanOutlineActiveKey,
resolvePlanOutlineActionId,
resolvePlanOutlineProjectId,
} from './planOutlineNodes.js'
describe('planOutlineNodes', () => {
it('lists plan sections in product order', () => {
@@ -20,5 +25,11 @@ describe('planOutlineNodes', () => {
expect(resolvePlanOutlineActiveKey('/plan/work')).toBe('work')
expect(resolvePlanOutlineActiveKey('/plan/portfolio')).toBe(null)
expect(resolvePlanOutlineActiveKey('/projects/abc-123')).toBe('structure')
expect(resolvePlanOutlineActiveKey('/actions/act-1')).toBe('work')
})
it('resolves project and action ids from pathname', () => {
expect(resolvePlanOutlineProjectId('/projects/abc-123')).toBe('abc-123')
expect(resolvePlanOutlineActionId('/actions/act-1')).toBe('act-1')
})
})