Hermes 284313f908
Some checks are pending
Bidi Control Character Guard / bidi-control-guard (push) Waiting to run
Circular Dependency Check / Check for new circular dependencies (push) Waiting to run
Citus Migration Smoke / Combined migrations on single-node Citus (push) Waiting to run
E2E Fresh Install Tests / fresh-install-e2e (push) Waiting to run
ext-v2 guardrails / Run ext-v2 guard and ESLint (push) Waiting to run
Integration Tests / Check for relevant changes (push) Waiting to run
Integration Tests / ${{ (github.event_name == 'schedule' || github.event.inputs.suite == 'full') && 'Full integration suite' || 'Tier-1 integration subset' }} (push) Blocked by required conditions
Mobile checks / Mobile lint + typecheck (push) Waiting to run
Mobile checks / Mobile unit tests (push) Waiting to run
Mobile checks / Mobile dependency audit (report) (push) Waiting to run
Mobile checks / Mobile reproducibility checks (push) Waiting to run
Secrets guard (env backups) / Ensure no tracked env backup files (push) Waiting to run
Temporal Readiness / fast-readiness (push) Waiting to run
Temporal Readiness / docker-parity (push) Waiting to run
TypeScript Type Check / Nx affected typecheck (push) Waiting to run
Unit Tests / Skipped-test budget (push) Waiting to run
Unit Tests / Nx affected unit tests (push) Waiting to run
Unit Tests / Server unit coverage (informational) (push) Waiting to run
Validate Tenant Management Schema / Check for relevant changes (push) Waiting to run
Validate Tenant Management Schema / Validate Tenant Management Schema (push) Blocked by required conditions
EE Workflows Build Guard / ee-workflows-build-guard (push) Waiting to run
Initial import of AlgaPSA codebase from PSA server
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz

Source: /opt/alga-psa on psa.joliet.tech
2026-06-22 16:12:17 -05:00

22 lines
2.2 KiB
Markdown

# Scratchpad
- 2026-04-20: User approved replacing the legacy ticket workflow assignment inputs with a canonical `assignment` object.
- 2026-04-20: Chosen canonical shape:
- `assignment.primary: { type, id } | null`
- `assignment.additional_user_ids: string[]`
- 2026-04-20: `tickets.update_fields.patch.assignment` should be atomic replacement, not piecemeal patching.
- 2026-04-20: `tickets.assign` should support union semantics for team assignment plus explicit additional users.
- 2026-04-20: System is new, so legacy workflow assignment fields can be removed with a hard break.
- 2026-04-20: Existing workflow editor issue likely involves nullable `anyOf` schema resolution dropping `x-workflow-picker-*` metadata during field extraction.
- 2026-04-20: Existing app support for additional ticket assignees is backed by `ticket_resources.additional_user_id`.
- 2026-04-20: Existing team assignment behavior already expands members into `ticket_resources`; workflow implementation should centralize and reuse that semantic.
- 2026-04-20: Implemented canonical workflow ticket assignment model in `shared/workflow/runtime/actions/businessOperations/tickets.ts` using `assignment.primary` + `assignment.additional_user_ids`.
- 2026-04-20: Implemented workflow-editor support for array-backed user pickers via `WorkflowActionInputFixedMultiPicker` and `InputMappingEditor`.
- 2026-04-20: Implemented nullable-schema metadata preservation in `ee/server/src/components/workflow-designer/actionInputEditorState.ts` and `WorkflowDesigner.tsx`.
- 2026-04-20: Validation runbook:
- `cd server && npx tsc -p tsconfig.json --noEmit --pretty false --incremental false`
- `cd server && npx vitest run src/test/unit/workflowTicketAssignmentModelRuntime.test.ts --coverage.enabled false`
- `cd server && npx vitest run --dir ../ee/server src/components/workflow-designer/__tests__/actionInputEditorState.test.ts --coverage.enabled false`
- `cd server && npx vitest run --dir ../ee/server src/components/workflow-designer/__tests__/InputMappingEditorPickerFields.test.tsx --coverage.enabled false`
- `cd server && npx vitest run src/test/unit/teams-v2-plan.test.ts -t "canonical ticket assignment model" --coverage.enabled false`