Skip to content

Fix audit history ordering and teach the Dispatch build end to end - #2

Draft
grantmaye wants to merge 4 commits into
mainfrom
codex/remove-decorative-eyebrows
Draft

grantmaye wants to merge 4 commits into
mainfrom
codex/remove-decorative-eyebrows

Conversation

@grantmaye

@grantmaye grantmaye commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

The Activity log sorted PostgreSQL audit IDs as text, so event 9 could precede 10 or 100 and the “latest 100” subset could be wrong. Sort by the qualified numeric column while keeping string IDs in GraphQL. Shared embedded/PostgreSQL regressions verify exact newest-100 membership and order, workspace isolation, and IDs above nine.

Preserve the existing Host-based loopback-origin fix from main, extract its policy, and test localhost/IPv4/IPv6 inputs plus live HTTP localhost/IPv4 requests. Different hostnames, ports, schemes, foreign/null/empty origins and spoofed forwarded hosts are rejected. CLI requests without Origin retain their existing behavior; cross-origin protections are not broadened.

This draft also retains the original decorative-caption cleanup and extends the existing technical manual into a build-from-zero course: toolchain/file map, React state/forms, CSS/layout/responsiveness/accessibility, GraphQL, transactions/locking, exact FR-1041 flow, debugging, and seven exercises with solutions. The FR-1041 lesson has an executable isolated-database test.

Validation

  • npm run check: 24 tests passed, TypeScript passed.
  • npm run format:check: passed.
  • npm run build: passed.
  • npm run test:postgres: 2 passed (audit contract and independent connection-pool contention).
  • npm run test:e2e: 8 passed across desktop/mobile; includes full route/override/cancel/create flow, origin checks and rendered history ordering.
  • Connected Mac Chrome: final build on isolated port/database verified route, override, cancellation and Activity; the original live walkthrough stayed running and untouched.

Review scope and limitations

Continues existing draft #2 with two commits rather than introducing an overlapping PR. The older checkout's uncommitted UI patch exactly matches the already-pushed cleanup and was preserved byte-for-byte. No production data, external shipping/payment calls, merge, or deployment.

Local Node was 24.15.0 with existing dependencies (Next 16.3.8); GitHub Verify supplies clean-lockfile/Node 22 coverage. IPv6 policy is unit-tested; the browser test server listens on IPv4. These checks are not a production or accessibility certification.

Build-from-zero guide

Exact-head CI

Verify run 37891150308 completed successfully for 9ee34044b3ae1031886cd995b4c1c47179ef8982 (attempt 1). All steps passed, including clean npm ci, formatting, types, unit/service tests, PostgreSQL tests, production build, desktop/mobile browser tests and artifact upload.

@grantmaye grantmaye changed the title Remove decorative routing workspace captions Fix audit history ordering and teach the Dispatch build end to end Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant