Skip to content

Refine config editor UX, multilanguage support, and render all layers#6

Open
afffe18 wants to merge 1 commit intocodex/refactor-plotconfig-files-and-update-ui-layoutfrom
codex/remove-unused-keywords-from-config
Open

Refine config editor UX, multilanguage support, and render all layers#6
afffe18 wants to merge 1 commit intocodex/refactor-plotconfig-files-and-update-ui-layoutfrom
codex/remove-unused-keywords-from-config

Conversation

@afffe18
Copy link
Copy Markdown
Collaborator

@afffe18 afffe18 commented Apr 13, 2026

Motivation

  • Clean up emitted defaults and make plot language handling first-class so configs no longer contain unused empty-string keys and language choices round-trip correctly.
  • Improve the editor UX so the JSON popout is editable, frames and dataframes are visually separated, axes are easier to scan, adding items is less noisy, and layers are editable simultaneously.
  • Expose missing advanced options from the JSON (guidelines, annotations, colored areas, highlighted hulls) and remove the summary statistics UI that was not wanted.

Description

  • Added plotLanguages to the dataframe type and default config and removed several unused empty-string defaults from createDefaultPlotConfig to avoid emitting unused keys (changes in src/config/defaultPlotConfig.ts).
  • Updated normalization to accept plot_languages / plotLanguages from imported configs and populate plotLanguages safely (changes in src/config/configMappers.ts).
  • Reworked the config UI in src/App.tsx to provide an editable JSON popup with an Apply JSON action, separate dataframe and frame inputs, compact + add buttons, per-axis boxed cards for clearer boundaries, multilanguage controls (comma input + chips + per-language title/legend/axis label inputs), all layers shown/edited at once, and advanced JSON textarea fields for filter, guidelines, annotations, coloredAreas, and highlightedHulls.
  • Updated plotting in src/components/PlotPage.tsx to render traces for all layers (grouped by layer and material) and removed the top plot-statistics cards; also adjusted legend title logic.

Testing

  • Ran a full build with TypeScript and Vite using npm run build, which completed successfully (TypeScript compile + Vite build succeeded).

Codex Task

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