Skip to content

Release 0.14.0: UI/UX review fixes, Warm default theme - #182

Merged
NCCU-Schultz-Lab merged 13 commits into
mainfrom
claude/relaxed-allen-yl8454
Dec 5, 2026
Merged

NCCU-Schultz-Lab merged 13 commits into
mainfrom
claude/relaxed-allen-yl8454

Conversation

@NCCU-Schultz-Lab

Copy link
Copy Markdown
Collaborator

Fixes from a UI/UX review of 0.13.2, plus a new default theme. Merging releases 0.14.0.

Run feedback and chemistry signals

  • Frequency optimizes first by default. "Geometry optimization before calculation" starts ticked for Frequency; library and pasted structures are not minima at the chosen level, so frequencies and thermochemistry there were not meaningful. Skipped automatically (with a log line) when the structure already comes from a QuantUI optimization at the same method, basis, charge, multiplicity and solvent (within 1e-3 Å RMSD). Water RHF/STO-3G now gives 2170 / 4141 / 4392 cm⁻¹ at a stationary point.
  • "Completed with warnings" in amber on the banner, run status, log footer and status chip when a result carries a warning; "Converged: Yes" is no longer green next to a non-stationary result. Known solver warnings are summarised in plain language.
  • One status source for the header chip and the workspace footer; the chip is no longer a button.
  • Run log ends on a summary; the full log is one click away under "Show full log". Internal checkpoint/header lines hidden on screen again (kept in the saved log).

Results, Compare, plots

  • Empty states for Results and Compare; invalid-XYZ errors list every bad line and the atom table stays in sync.
  • Compare: ΔE in kJ/mol relative to the first result, readable labels (formula · method/basis · time), amber note when molecules, methods or basis sets differ; themed Plotly chart via figure_html.
  • Energy-level diagram fills the panel and frames the frontier orbitals; IR sticks use the theme colour; Raman re-renders on a theme switch; PES minimum star outlined.

Workspace and layout

  • Populations, vibrational and isosurface views drive the single pane viewer (with a "Back to structure" banner); opt-in "Keep the surface here" side view; Results tab drops its duplicate viewer; workspace-off keeps per-panel viewers.
  • Analysis opens only the main panel (water Frequency page 6,600 → 1,986 px); narrow windows keep the tabs near the top; pane empty state before a molecule; Lighting next to the viewer; small molecules zoomed to fit.

Accessibility and theme

  • Visible :focus-visible ring; keyboard menus (arrows, Home/End, Esc) with menu roles; modal setup dialog with focus trap; polite live region for run status; skip link.
  • Contrast fixes in Midnight, Dark Blue, Dark Maroon, Hot Pink and Light; disabled buttons look disabled. tests/test_theme_contrast.py now checks text, button-text and focus-ring contrast for every palette.
  • New default palette "Warm" (cream page, warm charcoal text, deep teal accent; AA throughout). Light is renamed Bright; a saved "Light" setting loads as Bright.

Instructors

  • Course preset: QUANTUI_COURSE_METHODS / QUANTUI_COURSE_BASIS_SETS, a JSON file via QUANTUI_COURSE_PRESET, or a course section in settings.json trims the Method and Basis lists (docs/course-preset.md).
  • Report Issue: QUANTUI_ISSUE_DIR makes each report also land in a folder the instructor reads; the dialog says who sees it (apptainer/README.md).

Copy and polish

Subscripted formulas, short paths with full-path tooltips, calmer System Settings, menu items named after panels, icons instead of emoji, theme variables in viewer modules, no side-stripe cards, logo readable on dark palettes.

Testing

  • pytest -m "not network and not weekly": 5836 passed, 11 skipped. pre-commit (black, ruff, hygiene) clean; mypy (CI invocation) clean, 134 files.
  • New: test_uxrev_run_feedback.py, test_uxrev_run_log.py, test_uxrev_results_compare.py, test_uxrev_report_issue.py, test_uxrev_polish.py, test_course_preset.py, test_warm_palette.py; existing tests updated only for approved behaviour changes (pre-opt default, chip no longer a button, subscripted labels, Plotly Compare chart, Warm default, Light → Bright).
  • Headless Voilà screenshots reviewed (Warm default, Frequency with pre-opt, Results, Analysis; keyboard menus; narrow layout). Real-browser, screen-reader, projector and NCShare checks are not done.

Authorship

  • Claude (Opus 5.5): code edits, review, and conceptual discussion
  • Jonathan Schultz: overall vision, planning, review, and orchestration

Generated by Claude Code

claude and others added 13 commits December 5, 2026 21:40
UI/UX review 2026-12-05, UX-21 to UX-25 and part of UX-26 (M-UXREV UXR.5).

- Focus: one :focus-visible rule in the theme (2 px ring in accent_info,
  offset 2 px) for buttons, selects including the Theme dropdown, inputs,
  tabs and accordion headers. The old ring was the 1 px browser default,
  the same look as an open menu title.
- New quantui/app_a11y.py: a page script, installed once like the menu
  bar's Esc handler, that adds what ipywidgets cannot express: menu roles
  (menubar/menu/menuitem, aria-expanded, aria-disabled), arrow-key, Home,
  End and Esc navigation in the menus, role=dialog with focus in, a Tab trap
  and focus return for the setup dialog, a status chip outside the Tab
  order, and a "Skip to molecule input" link shown on the first Tab press.
- A visually hidden role=status live region announces a run starting,
  finishing or failing; the status footer's refresh feeds it.
- Contrast: text_faint/text_subtle in Midnight, Dark Blue, Dark Maroon and
  Hot Pink now clear 4.5:1; Light accent_success #15803d (Run button text
  5.0:1, success text 4.8:1) and text_muted_light #6b6b6b (5.1:1).
- Disabled accent buttons use the panel surface, subtle text and a dashed
  border rather than opacity alone.
- tests/test_theme_contrast.py computes text, button-text and focus-ring
  contrast from the tokens of every palette; tests/test_a11y.py covers the
  script, skip link and live region.

Screen-reader output and real keyboard use still need a human check.

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
…ayout

UI/UX review 2026-12-05, UX-7 to UX-14 (M-UXREV UXR.4; DEC-035 item 6).

- New quantui/app_pane_views.py. With the workspace on, the Populations,
  Vibrational and Isosurface viewers are moved (not copied) into the pane
  when used: opening the panel, the Results-menu jump, "Show in viewer",
  choosing a mode or pressing Generate. A banner names what the pane shows
  and has "Back to structure". Collapsing the panel, a new result, or a
  Calculate-tab pick mode gives the pane back to the structure. The panel
  keeps a one-line note in the viewer's place (DEC-009). Moving a viewer
  re-creates it, so a claim re-applies the mode, charge overlay or surface
  appearance from the panel's controls.
- Opt-in side-by-side for orbitals: "Keep the surface here" leaves the
  isosurface in its panel next to the plain structure in the pane.
- The Results tab's own viewer is hidden (and not rendered) with the
  workspace on; turning the workspace off brings it back with the shown
  result. Workspace off keeps every panel's own viewer (the fallback).
- Analysis expands only the primary panel (UX-8): 1,990 px instead of
  6,600 px after a water Frequency run at 1400 px.
- Pane empty state before a molecule: one line and a Load molecule button;
  toolbar, measurement and atom list appear with a structure (UX-10). The
  viewer Output itself is never hidden.
- Narrow (< 1100 px): the pane body scrolls inside a viewer-sized box and the
  tab bar scrolls sideways with full labels (tabs at y 310 instead of 540 at
  800 px on first launch). The tabs now come before the pane in the DOM
  (keyboard order); CSS still draws the pane on the left (UX-9, UX-26).
- Lighting moves into the pane toolbar with the workspace on (UX-11).
- Setup dialog: "Open in dialog" sits in the Calculation Setup heading row,
  no negative margin; that heading is hidden inside the dialog; one-line
  footer note (UX-12, UX-13).
- viz_assets.fit_zoom: extra zoom after zoomTo() when the molecule is
  smaller than 3Dmol's 5 A minimum framing radius (at most 3x), for the
  structure, trajectory, pre-opt, reorganization and vibration viewers
  (UX-14).

Tests updated where the approved behaviour changed (one panel expanded, the
Results viewer only without the workspace, DOM order); new
tests/test_app_pane_views.py. Checked in Voila with headless Chromium
(software WebGL); real-GPU rendering and the vibration animation in the pane
need a human look.

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
M-UXREV UXR.7 (DEC-035 item 5; UI/UX review 2026-12-05, Q4).

- New quantui/course_preset.py. Sources, first wins per list:
  QUANTUI_COURSE_METHODS / QUANTUI_COURSE_BASIS_SETS (comma lists, for
  container definitions such as NCShare's), a JSON file named by
  QUANTUI_COURSE_PRESET ({"name", "methods", "basis_sets"}), then a
  "course" section in the settings file. The settings section is read from
  the file rather than added to UserSettings: it has no control in the app,
  and UserSettings.save already keeps sections it does not know.
- Names match without regard to case and keep QuantUI's spelling and order.
  Unknown names are ignored with a log warning; a list with nothing valid,
  or an engine that supports none of the preset's methods, shows the full
  list, so a dropdown is never empty.
- The Calculate tab's dropdowns (at build and after an engine change) use
  the trimmed lists; the default method/basis falls back to the first
  allowed one. Calculation Setup shows a one-line note while a preset is
  active. The open-shell RHF -> UHF switch (molecule load, charge/mult
  suggestion) only happens when UHF is offered.
- Docs: docs/course-preset.md (in the mkdocs nav), a pointer in
  apptainer/README.md, the environment table in copilot-instructions.
- tests/test_course_preset.py: loading from each source, precedence,
  invalid entries, never-empty, settings round-trip, and the app's
  dropdowns with and without a preset.

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
…atus

M-UXREV UXR.1 (UI/UX review 2026-12-05, UX-1/2/3/4/6; DEC-035 items 1 and 7).

- UX-1: "Geometry optimization before calculation" starts ticked for
  Frequency; every calc type remembers its own tick (the box is shared).
  At run time the optimization is skipped, with a log line, when the
  geometry is the final geometry of a saved QuantUI optimization (converged
  Geometry Opt or Transition State, or a Frequency run that optimized first)
  at the same method, basis, charge, multiplicity and solvent
  (app_runflow.find_same_level_optimization, 1e-3 A RMSD). Applies to the
  generic pre-opt path and UV-Vis too. "Use mode -> new Frequency calc"
  always ticks the box, since the displaced geometry must be re-optimized.
- UX-2: log_utils.collect_run_warnings gathers plain-language warnings
  (not converged, not a stationary point, imaginary modes, failed pre-opt,
  known solver warnings). A serious one turns the completion banner amber
  ("Completed with warnings" plus the first warning), the Results button
  amber, the run status and the log footer ("completed with warnings").
  "Converged: Yes" on a non-stationary Frequency card (live and History) is
  shown in the neutral colour instead of green.
- UX-3: known solver lines (Krylov residuals, HOMO == LUMO, retried SCF,
  linear dependence) map to one sentence each in the digest; unknown lines
  stay verbatim as notes; digest lines wrap at the banner width.
- UX-4: the header chip is HTML (no Tab stop, not clickable) rendered from
  app_workspace.job_state, the footer's source, which now also knows
  "Done — with warnings" and compute work. Brief UI work no longer flashes
  "UI Active". Tests updated for the approved chip change.
- UX-6: the run status label wraps (CSS class + flexible column).

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
M-UXREV UXR.2 (UI/UX review 2026-12-05, UX-5; DEC-035 item 3).

- LiveLog gains a summary view: while a run streams, nothing changes; when
  it ends (done, failed or cancelled) _do_run calls show_summary(), which
  shows a short result summary (status, key numbers, plain-language
  warnings, time) in front of the log and folds the full log behind a
  "Show full log" button. The full log is repainted whole from Python's
  copy at that moment, so it is complete and in order when opened. A new
  run header or Clear returns to the live view. The log no longer ends on
  the ASCII banner.
- Internal lines hidden from the on-screen log again: M-UIPOLISH L5 hid
  only "[checkpoint] saved"; the later "opened — <path>" / "discarded"
  lines and PySCF's machine/version header and [CONFIG]/[INPUT] echo came
  back. A resumed run keeps its announcement, without the checkpoint path.
  The saved pyscf.log keeps every line.
- Placeholder not glued to the first output: the placeholder is marked
  (data-qempty) in the container and in placeholder "set" messages, and
  the browser bridge clears it before the first append even if the
  clearing "set" never arrived.

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
…pare

M-UXREV UXR.3 (UI/UX review 2026-12-05, UX-15/16/17/18/19/20; DEC-035
item 4).

- UX-15: the Results tab opens with "No result yet ..." and buttons to
  Calculate and History; it hides when a result card is shown (observes
  result_output.outputs, refreshed on tab entry and run start, where it
  says a calculation is running).
- UX-16: molecule.xyz_line_problems lists every bad line ("Line 5: 'Xx' is
  not an element symbol", wrong value counts, non-numbers, count-line
  mismatch, capitalisation hints). The XYZ message is an HTML row of its
  own (wraps, error colour, capped at 8 lines + "N more"). The atom table
  is greyed with a note while it does not match the text, and a successful
  Load fills it with the loaded molecule (up to 60 atoms; above that the
  note points to "Fill table from text").
- UX-17: Compare says what to do before any result is saved; the Compare
  button appears once two results are ticked (CheckList.on_change, observers
  wrapped in the app's _safe_cb), with a hint until then.
- UX-18: any pair can be compared; an amber box warns when molecules
  (formula) or method/basis differ. Table gains "ΔE (kJ/mol)" relative to
  the first ticked result. Labels are "H2O · RHF/3-21G · 20:54" (seconds,
  the date or a counter only for repeats), not folder IDs; the table drops
  the Formula and Method/Basis columns the label already carries. The chart is a Plotly ΔE +
  gap figure in theme colours through plotly_embed.figure_html (DEC-010),
  redrawn on theme change; the matplotlib PNG is no longer used in-app
  (plot_comparison stays for library use).
- UX-19: energy diagram fills the panel up to 900 px (width=None, autosize)
  and by default frames ±15 eV around the gap (frontier_window_ev; a
  subtitle counts levels outside it, or outside a hand-set Y range); "Show
  core orbitals" fits everything.
  Irreps in hover/labels are subscripted (test updated).
- UX-20: plot_ir_spectrum(color=...) and the app passes the palette's info
  accent (>= 4.9:1 on every palette); axis padding is max(100 cm-1, 4 % of
  the span); axis options read "High/Low → low/high wavenumber".

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
M-UXREV UXR.8 (DEC-035 item 8).

- issue_tracker.report_issue saves the report locally as before and, when
  QUANTUI_ISSUE_DIR names a folder (set by a course deployment, e.g. on
  NCShare), also writes it there as <UTC time>-<login>-<id>.json
  (description, login, host, session id, session snapshot). A failure to
  write there is returned, not raised: the local copy exists, and the
  dialog asks the student to give the instructor the issue number.
- The dialog says who sees the report: "your instructor" with a folder
  set; on an NCShare-style session without one (detected with the existing
  app_launcher.is_hpc_jupyterlab_session) that it is not sent to anyone;
  locally that it stays on this computer. The confirmation now stays
  visible after Submit (the dialog used to close, hiding it); Cancel
  becomes Close.
- Documented: apptainer/README.md "Collecting Report Issue submissions"
  (drop-box folder recipe), docs/CLI.md and copilot-instructions env-var
  tables.

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
UI/UX review 2026-12-05, UX-26 to UX-33 and UX-35 (M-UXREV UXR.6). The
keyboard-order part of UX-26 (status chip out of the Tab order, skip link,
tabs before the pane in the DOM) landed with UXR.4/UXR.5.

- UX-30: app_formatters.formula_html (<sub> counts) and formula_unicode
  (H2O as H with a Unicode subscript 2, for dropdowns). Used by every result
  card, the Calculate summary, the workspace pane caption and footer, the
  setup-dialog title, the Analysis heading and the History labels (History
  search still matches on the plain formula). Vibrational-mode options use
  subscripted irreps like the mode table.
- UX-28: utils.short_path / path_html. "Saved - find it in History" with a
  working-folder or ~-relative path and the full path as a tooltip; the
  History path line and the Files tab root/current folder likewise. Copy
  path still copies the full path.
- UX-27: System Settings shows a neutral "Not installed (optional)" chip
  for PyFock, GPU offload and online search, with install hints under
  "Details for instructors"; GPU present but off says "Not in use"; label
  cells no longer wrap.
- UX-29: the Results menu lists panels by their own titles and says
  "Available after: Single Point, Geometry Opt" instead of "Needs a NMR
  Shielding result".
- UX-31: Font Awesome icons or text instead of emoji for status in the UI
  modules (GPU badge, loading/rendering/generating messages, Export
  Animation, info box, viewer error, History [SLURM ...] and [calibration]
  markers, Files folders as "name/"). Error texts in molecule.py and
  pubchem.py are left for the XYZ-error work.
- UX-32: inline text/background colours in app_visualization,
  orbital_visualization and visualization_py3dmol use theme variables (with
  the old value as fallback for standalone exports). Plot trace colours and
  app.py's run-error boxes are not changed here.
- UX-33: descriptor cards, result cards, the info box and the System
  Settings cards use a 1 px full border, no 4 px side stripe.
- UX-35: theme.logo_css puts a soft light disc behind the header logo on
  dark palettes.
- Help: keyboard use in "Using the menus".

Tests updated for the subscripted formulas, menu wording and markers; new
tests/test_uxrev_polish.py (notation, paths, settings chip, no emoji in UI
string literals, no hard-coded inline colours in the viewer modules, no
side stripes, logo backdrop).

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
Two narrowings mypy asked for after the UXR.4 changes: the setup panel is
checked for None before its children are read, and the isosurface banner
label is read once into a local.

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
…se preset)

Joins the layout/accessibility/copy/course-preset work with the run
feedback, log, Results/Compare and Report Issue work. Conflicts: the
Compare placeholder (keeps part A's control sync with part B's
emoji-free text) and the Unreleased CHANGELOG sections (combined per
heading).

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
New Warm palette (cream page #fffaf0, warm charcoal text, deep teal
accent) becomes the default, replacing Dark. It was picked from four
warm candidates that all meet WCAG AA for text, button text and the
focus ring; the palette contrast test now covers it.

The former Light palette is renamed Bright. Old ids still resolve
(theme.resolve_palette_id / PALETTE_ALIASES), and a saved "Light" in
settings.json loads as Bright. 3D and plot scenes on light palettes use
the lighter of page and panel, so Warm viewers sit on the cream page.

Fixes found while making the mock-ups: the Raman spectrum is now
re-rendered on a theme switch (it kept the run-time palette, hiding its
axis titles on light themes), and the gold minimum star on PES plots
gets an outline so it stays visible on light backgrounds.

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
Version 0.14.0; CHANGELOG [0.14.0] - 2026-12-05 (UI/UX review fixes:
Frequency pre-optimization by default, completed-with-warnings signals,
summary-first run log, Compare dE with mismatch warnings, one pane
viewer, accessibility and contrast, course preset, Report Issue to the
instructor, Warm default theme) and compare links.

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
On Windows Path.home() reads USERPROFILE, not HOME, so setting HOME in
the tests did not move the home folder and pytest's tmp_path (under
AppData) shortened to "~/AppData/...". The tests now patch Path.home
directly and chdir to the filesystem anchor; the leftover HOME-in-env
check becomes a check that the patch does not leak.

Contributions:
- Claude (Opus 5.5): code edits, review, and conceptual discussion
- Jonathan Schultz: overall vision, planning, review, and orchestration

Co-authored-by: Jonathan Schultz <nccu-schultz-lab@users.noreply.github.com>
@NCCU-Schultz-Lab
NCCU-Schultz-Lab merged commit 35bfb5d into main Dec 5, 2026
7 checks passed
@NCCU-Schultz-Lab
NCCU-Schultz-Lab deleted the claude/relaxed-allen-yl8454 branch December 5, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants