Repository navigation
task-026: Shrink monitor property dual-map in bun-sqlite-store - #26
Merged
Merged
Conversation
5 tasks
Collaborator
Author
/ponytail-reviewMapping block 181 → 67 LOC (−63%). Metadata derived from column types instead of hand-written dual-map. Lean already. Ship.
|
Move monitor camelCase↔snake_case mapping to column-metadata.ts as a single source of truth derived from monitorColumnTypes. Shrink the bun-sqlite-store mapping block (~181 → ~67 LOC, 63% reduction) with a shared resolveMonitorField helper. Add monitor CRUD round-trip backend test for socket API field contract.
Igloczek
force-pushed
the
task/026-redbean-simplify-monitor-mapping
branch
from
June 30, 2026 12:01
43bb5a0 to
262a2bc
Compare
Igloczek
added a commit
that referenced
this pull request
Jun 30, 2026
Merge duplicated getResBaseURL() and getDevApiBaseURL() logic into a single cached helper in src/util/dev-base-url.ts. Update consumers to import the canonical function and reduce dev-api-base.ts to re-exports. Task 019 — audit finding #26.
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
…r-mapping task-026: Shrink monitor property dual-map in bun-sqlite-store
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
Merge duplicated getResBaseURL() and getDevApiBaseURL() logic into a single cached helper in src/util/dev-base-url.ts. Update consumers to import the canonical function and reduce dev-api-base.ts to re-exports. Task 019 — audit finding #26.
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.
Implements tasks/026-redbean-simplify-monitor-mapping.md from the ponytail audit backlog.
Goal
Reduce camelCase↔snake_case translation complexity in
bun-sqlite-store.tswithout breaking the API.Scope
MONITOR_*maps andnormalizeMonitorRow/normalizeRowForStore(target ≥30% LOC reduction in mapping code).Acceptance criteria
bun-sqlite-store.tsmeasurably smaller (document before/after line count in PR).bun run test:backendpasses.bun run test-e2epasses monitor edit flow.Depends on
Task 025.
Verification
Audit reference
Finding #1 — RedBean monitor dual-map (phase 3).