Skip to content

Refactor UI#118

Merged
tdpham2 merged 7 commits intodevfrom
dev-fix-ui
Apr 29, 2026
Merged

Refactor UI#118
tdpham2 merged 7 commits intodevfrom
dev-fix-ui

Conversation

@tdpham2
Copy link
Copy Markdown
Collaborator

@tdpham2 tdpham2 commented Apr 27, 2026

  • Update report_tools to use output JSON from run_ase, instead of having to make a large input JSON dict.
  • Fix UI not displaying molecular structure.

tdpham2 added 4 commits April 27, 2026 10:21
Split the monolithic 2,109-line app.py into 12 focused modules
organized by responsibility. Use _pages/ (underscore prefix) to
prevent Streamlit's auto-discovery from creating phantom sidebar
entries. No behavior changes -- pure code reorganization.
@tdpham2 tdpham2 self-assigned this Apr 27, 2026
@tdpham2 tdpham2 changed the title Fix UI bugs Refactor UI Apr 27, 2026
tdpham2 added 3 commits April 27, 2026 14:01
Return descriptive error strings instead of raising exceptions so the
agent can retry with corrected parameters. Replace hardcoded 18-element
maps with ase.data.chemical_symbols to support all elements.
- Use draft-copy pattern in configuration page to prevent widget mutations
- Remove @st.cache_resource to avoid caching failed agent initializations
- Copy message list to prevent duplication on Streamlit reruns
- Use deterministic widget keys instead of uuid4 to preserve user selections
- Capture agent reference eagerly in lambda for thread safety
- Add API key security warning for shared deployments
- Update combustion example query to specify mace_mp calculator
- Add ALCF tab (base URL, timeout) and access token input to Configuration page
- Integrate SessionStore for auto-saving conversations to ~/.chemgraph/sessions.db
- Add session sidebar with list, load, delete, and new chat controls
- Add session_utils.py for message format conversion between UI and SessionStore
@tdpham2 tdpham2 merged commit 25f3f46 into dev Apr 29, 2026
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.

1 participant