AP1.9a: Arbeitsmodi-Shell mit Scope, Objekt-Routen und Legacy-Redirects.
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Ersetzt die Vorhaben-Tab-Navigation durch Cockpit/Ausführen/Planen/Kontrolle/Team, Deep Links für APs/Projekte/Gates und Programm-Scope im Header. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
33831a8c2c
commit
e42edd86fa
54 files changed
+2489
-150
No files matched your search
@@ -7,6 +7,7 @@ import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
|
||||
import { ATTENTION_KIND_LABELS } from '../constants/operating.js'
|
||||
import { actionPath, scopedPath } from '../utils/routes.js'
|
||||
|
||||
const SEVERITY_LABELS = {
|
||||
critical: 'Kritisch',
|
||||
@@ -15,11 +16,11 @@ const SEVERITY_LABELS = {
|
||||
}
|
||||
|
||||
function attentionLink(item) {
|
||||
if (item.initiative_id && item.action_id) {
|
||||
return `/initiatives/${item.initiative_id}`
|
||||
if (item.action_id) {
|
||||
return actionPath(item.action_id)
|
||||
}
|
||||
if (item.initiative_id) {
|
||||
return `/initiatives/${item.initiative_id}`
|
||||
return scopedPath('/control/status', { initiativeId: item.initiative_id })
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import { ActionList } from '../components/ActionList.jsx'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { actionPath } from '../utils/routes.js'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
|
||||
export function BlockedActionsWidget() {
|
||||
@@ -46,13 +47,13 @@ export function BlockedActionsWidget() {
|
||||
<ActionList
|
||||
actions={actions}
|
||||
showInitiative
|
||||
getManageLink={(a) => `/initiatives/${a.initiative_id}`}
|
||||
getManageLink={(a) => actionPath(a.id)}
|
||||
empty={<EmptyState message="Keine blockierten Maßnahmen." />}
|
||||
/>
|
||||
)}
|
||||
{!loading && !error && actions.length > 0 && (
|
||||
<p className="muted mt-sm">
|
||||
<Link to="/my-actions" className="link-inline">
|
||||
<Link to="/work/mine" className="link-inline">
|
||||
In „Meine Maßnahmen“ bearbeiten
|
||||
</Link>
|
||||
</p>
|
||||
|
||||
@@ -6,6 +6,7 @@ import { PriorityBadge } from '../components/PriorityBadge.jsx'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { scopedPath } from '../utils/routes.js'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
|
||||
export function InitiativePortfolioWidget() {
|
||||
@@ -51,7 +52,7 @@ export function InitiativePortfolioWidget() {
|
||||
{initiatives.map((item) => (
|
||||
<Link
|
||||
key={item.id}
|
||||
to={`/initiatives/${item.id}`}
|
||||
to={scopedPath('/control/status', { initiativeId: item.id })}
|
||||
className="initiative-portfolio-card card"
|
||||
>
|
||||
<h3 className="initiative-portfolio-card-title">{item.title}</h3>
|
||||
|
||||
@@ -6,6 +6,7 @@ import { PriorityBadge } from '../components/PriorityBadge.jsx'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { scopedPath } from '../utils/routes.js'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
|
||||
export function InitiativesWidget() {
|
||||
@@ -48,7 +49,7 @@ export function InitiativesWidget() {
|
||||
<ul className="item-list">
|
||||
{initiatives.map((item) => (
|
||||
<li key={item.id} className="list-item card-list-item">
|
||||
<Link to={`/initiatives/${item.id}`} className="list-item-link">
|
||||
<Link to={scopedPath('/control/status', { initiativeId: item.id })} className="list-item-link">
|
||||
<strong>{item.title}</strong>
|
||||
</Link>
|
||||
<div className="list-item-meta">
|
||||
|
||||
@@ -5,6 +5,7 @@ import { ActionList } from '../components/ActionList.jsx'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { actionPath } from '../utils/routes.js'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
|
||||
export function MyOpenActionsWidget() {
|
||||
@@ -40,7 +41,7 @@ export function MyOpenActionsWidget() {
|
||||
}
|
||||
footer={
|
||||
actions.length > 0 ? (
|
||||
<Link to="/my-actions" className="link-inline">
|
||||
<Link to="/work/mine" className="link-inline">
|
||||
Alle meine Maßnahmen →
|
||||
</Link>
|
||||
) : null
|
||||
@@ -52,7 +53,7 @@ export function MyOpenActionsWidget() {
|
||||
<ActionList
|
||||
actions={actions}
|
||||
showInitiative
|
||||
getManageLink={(a) => `/initiatives/${a.initiative_id}`}
|
||||
getManageLink={(a) => actionPath(a.id)}
|
||||
empty={
|
||||
<EmptyState message="Keine offenen Maßnahmen. Du kannst eine neue Maßnahme in einem Vorhaben anlegen." />
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import { NEXT_ACTION_KIND_LABELS } from '../constants/operating.js'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
import { actionPath, scopedPath } from '../utils/routes.js'
|
||||
|
||||
function NextActionList({ items, initiativeId, showInitiativeLink = true }) {
|
||||
if (items.length === 0) {
|
||||
@@ -33,16 +33,16 @@ function NextActionList({ items, initiativeId, showInitiativeLink = true }) {
|
||||
)}
|
||||
</div>
|
||||
<div className="list-item-meta">
|
||||
{item.action_id && initiativeId && (
|
||||
<Link
|
||||
to={`/initiatives/${initiativeId}/actions/${item.action_id}`}
|
||||
className="btn btn-primary btn-sm"
|
||||
>
|
||||
{item.action_id && (
|
||||
<Link to={actionPath(item.action_id)} className="btn btn-primary btn-sm">
|
||||
Arbeitspaket
|
||||
</Link>
|
||||
)}
|
||||
{showInitiativeLink && item.initiative_id && !initiativeId && (
|
||||
<Link to={`/initiatives/${item.initiative_id}`} className="btn btn-primary btn-sm">
|
||||
<Link
|
||||
to={scopedPath('/control/status', { initiativeId: item.initiative_id })}
|
||||
className="btn btn-primary btn-sm"
|
||||
>
|
||||
Zum Vorhaben
|
||||
</Link>
|
||||
)}
|
||||
|
||||
@@ -6,7 +6,7 @@ import { PriorityBadge } from '../components/PriorityBadge.jsx'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
import { actionPath, scopedPath } from '../utils/routes.js'
|
||||
|
||||
function formatDue(iso) {
|
||||
if (!iso) return null
|
||||
@@ -55,7 +55,7 @@ export function WorkspaceTodayWidget() {
|
||||
}
|
||||
footer={
|
||||
actions.length > 0 ? (
|
||||
<Link to="/my-actions" className="link-inline">
|
||||
<Link to="/work/mine" className="link-inline">
|
||||
Alle meine Maßnahmen →
|
||||
</Link>
|
||||
) : null
|
||||
@@ -85,7 +85,7 @@ export function WorkspaceTodayWidget() {
|
||||
<div className="list-item-meta">
|
||||
<StatusBadge status={action.status} />
|
||||
<PriorityBadge priority={action.priority} />
|
||||
<Link to={`/initiatives/${action.initiative_id}`} className="btn btn-secondary btn-sm">
|
||||
<Link to={actionPath(action.id)} className="btn btn-secondary btn-sm">
|
||||
Öffnen
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user