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
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz Source: /opt/alga-psa on psa.joliet.tech
8.4 KiB
8.4 KiB
Scratchpad — Board-level live ticket timer toggle
- Plan slug:
ticket-board-live-timer-toggle - Created:
2026-03-29
What This Is
Keep a lightweight, continuously-updated log of discoveries and decisions made while implementing this plan.
Prefer short bullets. Append new entries as you learn things, and also update earlier notes when a decision changes or an open question is resolved.
Decisions
- (2026-03-29) Scope is a board-level boolean for live ticket timer enablement, not a user preference or per-ticket toggle. Rationale: simpler MSP admin mental model and lower-risk v1.
- (2026-03-29) Disabling the board setting hides only the live timer and tracked intervals. Manual time entry remains available.
- (2026-03-29) Board change behavior should apply immediately after a successful save in the current ticket details view.
Discoveries / Constraints
- (2026-03-29)
TicketDetails.tsxowns timer lifecycle, lock replacement, and auto-start gating throughuseTicketTimeTracking. - (2026-03-29) Tracked intervals are rendered in
TicketProperties.tsx, not directly inTicketDetails.tsx. - (2026-03-29) Boards settings save flows currently pass board fields through
createBoardandupdateBoardinBoardsSettings.tsx. - (2026-03-29) Shared board typing currently lives in
packages/types/src/interfaces/board.interface.ts.
Commands / Runbooks
- (2026-03-29) Inspect ticket timer lifecycle:
rg -n "useTicketTimeTracking|renderIntervalManagement|autoStart" packages/tickets packages/ui - (2026-03-29) Inspect board settings save path:
sed -n '500,560p' server/src/components/settings/general/BoardsSettings.tsx - (2026-03-29) Validate plan JSON files:
node -e "JSON.parse(require('fs').readFileSync('docs/plans/2026-03-29-ticket-board-live-timer-toggle/features.json','utf8')); JSON.parse(require('fs').readFileSync('docs/plans/2026-03-29-ticket-board-live-timer-toggle/tests.json','utf8')); console.log('json ok')"
Links / References
Open Questions
- Whether a future v2 should evolve the boolean into richer per-board timer modes.
Implementation Log
- (2026-03-29) Completed
F001via migration20260329120000_add_enable_live_ticket_timer_to_boards.cjsto addboards.enable_live_ticket_timer, backfill existing rows totrue, and enforce non-null + default semantics. - (2026-03-29) Completed
F002by extending shared board typings inpackages/types/src/interfaces/board.interface.tsandserver/src/interfaces/board.interface.ts. - (2026-03-29) Completed
F003by addingEnable live ticket timertoggle UI + helper copy in Board Configuration for both create and edit flows inBoardsSettings.tsx. - (2026-03-29) Completed
F004by persistingenable_live_ticket_timerthrough board create/update payloads inBoardsSettings.tsxandboardActions.ts. - (2026-03-29) Completed
F005with enabled fallback semantics (null/undefined=>true) in board read surfaces via normalization inboardActions.ts. - (2026-03-29) Completed
F006by ensuring ticket board metadata includes the new field for both initial and refreshed board state inoptimizedTicketActions.tsand board refresh inTicketDetails.tsx. - (2026-03-29) Completed
F007/F008by deriving board timer policy inboardLiveTicketTimer.ts, gating auto-start and timer presentation inTicketDetails.tsx. - (2026-03-29) Completed
F009/F010by hiding tracked intervals and live timer controls when disabled while preservingAdd Time EntryinTicketProperties.tsx. - (2026-03-29) Completed
F011by refreshing board metadata after board changes and enforcing immediate in-view timer shutdown/reset when destination board disables live timing inTicketDetails.tsx.
Test Coverage Added
- (2026-03-29) Completed
T001with DB-backed integration coverage inboardLiveTicketTimerSetting.integration.test.tsfor default-enabled create semantics and explicit disable/readback behavior. - (2026-03-29) Completed
T002inBoardsSettings.copyStatuses.test.tsxto assert create/edit toggle rendering and save payload inclusion. - (2026-03-29) Completed
T003/T005contract coverage inTicketDetails.liveTimerPolicy.contract.test.tsfor auto-start gating and immediate stop/reset policy wiring. - (2026-03-29) Completed
T004/T006UI coverage inTicketProperties.liveTimerPolicy.test.tsxfor disabled/ enabled rendering behavior.
Verification Commands
- (2026-03-29)
cd packages/tickets && npx vitest run --config vitest.config.ts src/components/ticket/__tests__/TicketDetails.liveTimerPolicy.contract.test.ts src/components/ticket/__tests__/TicketProperties.liveTimerPolicy.test.tsx - (2026-03-29)
cd server && npx vitest run src/components/settings/general/BoardsSettings.copyStatuses.test.tsx src/test/integration/boardLiveTicketTimerSetting.integration.test.ts