Skip to content

feat(jarl-atoms): 927 — enumRouteAtom binds a path segment from a fixed set of values - #111

Merged
randomdevpete merged 4 commits into
masterfrom
task-927-oneof-route-atom-primitive
Sep 6, 2026
Merged

randomdevpete merged 4 commits into
masterfrom
task-927-oneof-route-atom-primitive

Conversation

@randomdevpete

Copy link
Copy Markdown
Owner

Adds enumRouteAtom, a route primitive that binds one path segment to a value drawn from a fixed set, typed as the union of that set rather than as string. Adopts it on the docs site's /docs and /api routes.

The ticket's second "Done when" — simplifying ticket 678's demo — is not doable on this base, because SwitchRoutingApp.tsx lives only on origin/task-678-very-simple-logic-switch-routing-demo, a separate stack off master. Whichever lands second collapses that demo's paramRouteAtom + transformRouteAtom + isSwitchRoutingPage into one enumRouteAtom call — a five-line deletion.

@randomdevpete
randomdevpete force-pushed the task-789-converge-core-atom-naming branch from 0694402 to 9f04160 Compare September 6, 2026 09:55
@randomdevpete
randomdevpete force-pushed the task-927-oneof-route-atom-primitive branch from 6981542 to 68fdef8 Compare September 6, 2026 09:55
@randomdevpete
randomdevpete force-pushed the task-789-converge-core-atom-naming branch from 9f04160 to ccfe99c Compare September 6, 2026 10:52
@randomdevpete
randomdevpete force-pushed the task-927-oneof-route-atom-primitive branch 2 times, most recently from bbcbe2c to d2fcbc9 Compare September 6, 2026 10:54
@randomdevpete randomdevpete reopened this Sep 6, 2026
Base automatically changed from task-789-converge-core-atom-naming to integ/675+685 September 6, 2026 11:50
@randomdevpete
randomdevpete changed the base branch from integ/675+685 to task-789-converge-core-atom-naming September 6, 2026 12:01
@randomdevpete
randomdevpete force-pushed the task-789-converge-core-atom-naming branch from 8ba1ea3 to d28bd45 Compare September 6, 2026 12:03
@randomdevpete
randomdevpete force-pushed the task-927-oneof-route-atom-primitive branch from d2fcbc9 to 0b0d6be Compare September 6, 2026 12:03
@randomdevpete
randomdevpete marked this pull request as draft September 6, 2026 12:06
@randomdevpete
randomdevpete force-pushed the task-789-converge-core-atom-naming branch from d28bd45 to 6a9a6c7 Compare September 6, 2026 12:21
@randomdevpete
randomdevpete force-pushed the task-927-oneof-route-atom-primitive branch from 0b0d6be to a9bdb97 Compare September 6, 2026 12:21
@randomdevpete
randomdevpete force-pushed the task-789-converge-core-atom-naming branch from 6a9a6c7 to 653f06f Compare September 6, 2026 12:40
@randomdevpete
randomdevpete force-pushed the task-927-oneof-route-atom-primitive branch from a9bdb97 to 74621aa Compare September 6, 2026 12:40
@randomdevpete
randomdevpete force-pushed the task-789-converge-core-atom-naming branch from 653f06f to fd4df2b Compare September 6, 2026 12:48
@randomdevpete
randomdevpete force-pushed the task-927-oneof-route-atom-primitive branch from 35d634e to e379781 Compare September 6, 2026 12:49
Base automatically changed from task-789-converge-core-atom-naming to master September 6, 2026 12:52
@randomdevpete
randomdevpete marked this pull request as ready for review September 6, 2026 12:53
randomdevpete and others added 3 commits September 6, 2026 12:54
…eMatch

The assertion is about the bound value's union type, not about requireMatch, so
the test narrows on the discriminant itself and stops depending on it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TYNkcK3xGhfZRqkjXqjBu5
@randomdevpete
randomdevpete force-pushed the task-927-oneof-route-atom-primitive branch from e379781 to c2d10bd Compare September 6, 2026 12:54
@randomdevpete
randomdevpete merged commit c17b0f6 into master Sep 6, 2026
6 checks passed
@randomdevpete
randomdevpete deleted the task-927-oneof-route-atom-primitive branch September 6, 2026 18:43
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant