Skip to content

Toggleable multilingual inputs, remove dark-mode UI, and fix duplicate preview during batch export#25

Open
afffe18 wants to merge 1 commit intomainfrom
codex/2026-05-04_19-08-26-add-language-input-boxes-for-plot-items
Open

Toggleable multilingual inputs, remove dark-mode UI, and fix duplicate preview during batch export#25
afffe18 wants to merge 1 commit intomainfrom
codex/2026-05-04_19-08-26-add-language-input-boxes-for-plot-items

Conversation

@afffe18
Copy link
Copy Markdown
Collaborator

@afffe18 afffe18 commented May 4, 2026

Motivation

  • Make plot text fields (title, legend title, axis labels) reliably editable for all configured plot languages from a single control that can expand/collapse.
  • Eliminate the app-level dark-mode controls and related runtime branches to simplify styling and enforce a single light UI.
  • Prevent the first/backend preview from appearing twice when generating many plots (batch mode).

Description

  • Update src/App.tsx to turn the current-language inputs into toggles by switching onFocus to onClick handlers and simplifying the visible field labels to a single top label (affects frame title, dataframe legendTitle, and axis label inputs).
  • Remove dataframe/frame dark-mode controls and the Settings dark-mode toggle, remove the themeMode state path, and force a light color scheme in a useEffect that removes any dark class and sets color-scheme: light.
  • Add isBatchMode state to src/components/PlotPage.tsx, set it while createPlots runs, and suppress the single-preview image when batch gallery mode is active to avoid duplicate display.
  • Keep the colored-areas UI located below annotations in the frame editor (no change required to move it).

Testing

  • Ran the full frontend build with npm run build (which runs tsc -b && vite build) and the build completed successfully.

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