Skip to content

Ryan landing page touch ups#11

Merged
ryanrasti merged 2 commits intomainfrom
ryan_landing_page_touch_ups
Jul 8, 2025
Merged

Ryan landing page touch ups#11
ryanrasti merged 2 commits intomainfrom
ryan_landing_page_touch_ups

Conversation

@ryanrasti
Copy link
Copy Markdown
Owner

No description provided.

@ryanrasti ryanrasti merged commit e5d4061 into main Jul 8, 2025
3 checks passed
ryanrasti added a commit that referenced this pull request May 5, 2026
Typegres core
- Subscription.cancel(reason?) rejects the wait promise; bus.stop()
  cancels every active sub on shutdown so consumers parked on
  `await sub.wait` wake with AbortError instead of hanging
- db.live catches AbortError and exits cleanly through finally
  (closes ISSUES.md #2)
- safeStringify(undefined) returns "null" so void-returning closures
  round-trip without breaking JSON.parse on the wire
- Bus poll loop guards `t.unref?.()` — was Node-only, browser
  setTimeout returns a number and threw

Demo
- All 8 schemas register TypegresLiveEvents.makeTransformer()
- runtime auto-startsLive
- OperatorRoot.insertDraftOrder / advanceRandom / Api.resetLive
  for one-click mutations + cancellation
- rpc.ts splits into `rpc` (direct) and `rpcQueued` (for the
  widget); page-internal helpers use rpc to avoid contaminating
  the playground's pickup queue
- Orders.advance: qualifies `CASE orders.status` to dodge the live
  transformer's CTE-shadowing bug (filed as ISSUES.md #11 with
  proposed `.case()` builder fix)

Play UI
- Live toggle (generator emits .live(api.db) instead of .execute)
- Run/Stop button, "● live" indicator, Insert order / Advance
  random buttons
- Output renders as a table; new rows flash green, changed cells
  flash yellow (Tailwind keyframes)
- orderBy column + direction control

Tests
- 8 demo tests including stop:cancellation
- 9 exoeval rpc tests covering one-shot + streaming + null round-trip
- 39 live tests still green

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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