Repository navigation
GEN-2157: establish API/static frontend package foundation - #205
Closed
asselstine wants to merge 2 commits into
Closed
asselstine wants to merge 2 commits into
asselstine wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Superseded by PR #206, which includes every commit in this foundation and completes GEN-2157. No separate merge is needed. The rollback anchor is an intermediate ancestor of #206 and remains preserved.
GEN-2157 currently keeps backend code and server-generated UI together in packages/app. This PR establishes the package boundary while retaining all existing production routes and behavior. It is the first reviewable migration stage, not completion of GEN-2157.
Commits are separated for review:
The route inventory, native-auth/protocol overlaps, same-origin proxy setup, rollout/rollback gates and remaining acceptance work are documented in docs/package-migration.md. Landed #200–#204 functionality remains in the moved code. A fresh ten-job signed-cookie browser baseline is committed without claiming a migration speedup.
Validation: npm ci; npm run check (378 tests passed, five existing skips; 11 package-boundary tests; generated-client/OpenAPI drift checks; TypeScript; static production build; API and tail-relay Wrangler dry runs); docs validation; marketing build; signed-cookie Playwright loading baseline covering seven screens. PostgreSQL tests ran locally against disposable databases. The first queue-test run used an unmigrated database and failed; the corrected migrated database passed in the full final run.
Remaining work before this issue can be completed: public session/native-auth contracts and CSRF, consent/device support, complete public response schemas, bounded job summaries/concurrency, lightweight run/revision-aware trace polling, feature screen migration and parity, large-workspace measurements, hosting/routing/security/cache tests, and legacy HTML/CSS retirement. Keep this PR draft while that broader task remains incomplete; it can be reviewed as a standalone foundation.