inspector/clients/web/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall d49798c91c fix(web): key enlarge carets by Map, and count maxLength in code points
Two more from review, both about field data the schema controls.

The caret record was a bare object keyed by field name, and field names
come from a server's schema. A field legitimately named `constructor` or
`toString` read back an inherited function rather than undefined, so the
documented end-of-value fallback never fired and that value reached
setSelectionRange. Use a Map, which has no such keys.

JSON Schema counts maxLength in Unicode code points; String.length counts
UTF-16 code units. A field holding one emoji measured 2, so a maxLength:2
field with room for another character was treated as full and refused its
newline. Count code points. The maxLength handed to the DOM input still
carries the HTML attribute's own UTF-16 counting; that predates this and
is left alone.

Signed-off-by: cliffhall <cliff@futurescale.com>
2026-08-26 10:23:43 -04:00
..
components fix(web): key enlarge carets by Map, and count maxLength in code points 2026-08-26 10:23:43 -04:00
hooks fix: resolve the servers list outside the override's state updater (#2095) 2026-08-25 20:33:14 -04:00
lib fix(web): move the app origin off 6276, bound the publish route 2026-08-24 08:45:40 -04:00
test Merge branch 'v2/main' into v2/fix/2110-oauth-path-scoped-discovery 2026-08-26 00:42:44 -04:00
theme fix(a11y): make the form error color meet WCAG AA in both schemes 2026-08-23 12:56:13 -04:00
types chore: close a batch of quality-gate & tidy gaps (#1785 #1787 #1789 #1790 #1767) (#1792) 2026-07-26 10:43:11 -04:00
utils docs(web): describe the accepted subset, not "parses as a source expression" 2026-08-24 01:20:18 -04:00
App.css feat(web): use the Ace editor for the request-metadata JSON 2026-08-23 16:55:23 -04:00
App.test.tsx fix: keep the pagination toggle on the last write across a server switch (#2095) 2026-08-25 20:20:57 -04:00
App.tsx docs: correct the toggle rollback comment for the per-server override (#2095) 2026-08-25 20:26:53 -04:00
index.ts feat: port CLI, TUI, and launcher from v1.5 into v2 (#1452) 2026-06-14 20:27:49 -04:00
main.tsx fix(a11y): make the form error color meet WCAG AA in both schemes 2026-08-23 12:56:13 -04:00