AP0.7: Tenant Hardening, Actor Directory und Data Layer Minimum
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 12s
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 12s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
36487d2869
commit
db06af0489
32 files changed
+1424
-43
No files matched your search
@@ -1,9 +1,22 @@
|
||||
/**
|
||||
* AP0.6: Kein GET /api/actors im Backend.
|
||||
* Actor-Zuweisung nutzt TenantContext (aktueller Human Actor).
|
||||
* Siehe Abschlussbericht AP0.6 §9.
|
||||
*/
|
||||
import { apiFetch } from './client.js'
|
||||
|
||||
/**
|
||||
* @param {{ actor_type?: string, include_inactive?: boolean, q?: string }} [params]
|
||||
*/
|
||||
export function listActors(params = {}) {
|
||||
const search = new URLSearchParams()
|
||||
if (params.actor_type) search.set('actor_type', params.actor_type)
|
||||
if (params.include_inactive) search.set('include_inactive', 'true')
|
||||
if (params.q) search.set('q', params.q)
|
||||
const qs = search.toString()
|
||||
return apiFetch(`/api/actors${qs ? `?${qs}` : ''}`)
|
||||
}
|
||||
|
||||
export function getActor(id) {
|
||||
return apiFetch(`/api/actors/${id}`)
|
||||
}
|
||||
|
||||
/** Fallback wenn Actor Directory nicht erreichbar (AP0.6-Kompatibilität). */
|
||||
export function actorsFromContext(context) {
|
||||
if (!context?.actor?.id) return []
|
||||
return [
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import { apiFetch } from './client.js'
|
||||
|
||||
export function getWorkspaceSummary() {
|
||||
return apiFetch('/api/workspace/summary')
|
||||
}
|
||||
|
||||
export function listWorkspaceOpenActions() {
|
||||
return apiFetch('/api/workspace/actions/open')
|
||||
}
|
||||
|
||||
export function listWorkspaceBlockedActions() {
|
||||
return apiFetch('/api/workspace/actions/blocked')
|
||||
}
|
||||
|
||||
export function listWorkspaceActiveInitiatives(limit = 5) {
|
||||
return apiFetch(`/api/workspace/initiatives/active?limit=${limit}`)
|
||||
}
|
||||
|
||||
export function getActorWorkload() {
|
||||
return apiFetch('/api/workspace/actors/workload')
|
||||
}
|
||||
Reference in new issue
Block a user