Repository navigation
Closed
Labels
Description
Prerequisites
- I have written a descriptive issue title.
- I have searched existing issues and open pull requests to avoid duplicating an existing feature request.
🚀 Feature Proposal
Add a session-only alphabetical ordering toggle to the read-only JSON tree. Keep insertion order as the default. This is a presentation control, not a JSON rewrite.
Motivation
Large JSON objects are easier to inspect when their properties have a predictable order.
Example
Open a JSON value containing {"z": 1, "a": {"y": 2, "b": 3}} and enable alphabetical ordering to find properties quickly.
Acceptance criteria
- The toggle orders object properties recursively in read-only trees; disabling it restores the original order.
- Array element order, values, and the underlying JSON remain unchanged; do not call onChange for this action.
- Both embedded and full-height trees support the control, including empty objects and arrays.
- Use keyboard-accessible controls and test nested objects, numeric-looking keys and mode changes.
Where to start
packages/web-ui/src/components/ui/JsonTreeView.tsxrenders both tree layouts.- The existing JSON editor dependency exposes
keySort; verify its behavior instead of adding a sorting dependency. - Extend
packages/web-ui/tests/components/ui/JsonTreeView.test.tsx.
Boundary: read-only presentation only; do not reorder editable documents or introduce persistence.
Contributor notes
- Follow AGENTS.md and the repository rules. Run GitNexus upstream impact analysis before editing existing symbols and report the blast radius.
- Add new UI strings to every locale under
packages/web-ui/src/i18n/locales/; use design tokens, keyboard access and visible focus. - Keep pure frontend helpers under
packages/web-ui/src/utils/and tests in the matchingpackages/web-ui/tests/paths. Run focused tests, typecheck and relevant repository checks. - Shared backend behavior belongs in
src-tauri/src/application/or plain modules. Keep Tauri code undertransport/desktop/, expose shared web behavior when applicable and preservecargo check --no-default-featuresfromsrc-tauri/for backend changes. - Questions? Ask here or on Discord.
Activity