Skip to content

Refactor the web app to fix bugs and improve maintainability #93

Open
tautomer wants to merge 4 commits intoMSDLLCpapers:mainfrom
tautomer:refactor_app
Open

Refactor the web app to fix bugs and improve maintainability #93
tautomer wants to merge 4 commits intoMSDLLCpapers:mainfrom
tautomer:refactor_app

Conversation

@tautomer
Copy link
Collaborator

@tautomer tautomer commented Oct 7, 2025

This is an initial effort trying to overhaul the web server.

Key changes:

  1. Fixed a bug where updating the numerical input parameter space causes errors.

    The root cause is that all values obtained from html forms are strings. Treating them as numbers and passing them to Param_Continuous will raise an error, but existing try-except block will silently suppress the error and return a None.

  2. Added a new css file assets/css/style.css with all classes defined as obsd-* to avoid possible naming collision with Bootstrap.

  3. Move (almost all) occurrences of inline styles to Bootstrap (preferred) and our customized css file for better maintainability and consistency of the UI. The resulting UI is nearly identical visually to the current main version, with minor changes in styling, like some font colors.

    Most visible difference

    Before After
    image image

Most of the in-line style has been moved to Bootstrap predefined classes
or a customized CSS file in `assets/css/styles.css`.
All occurrences of inline style `style=""`, except for
`dash_table.DataTable`, have been migrated to CSS classes (Bootstrap 5
built-in preferred, otherwise defined in `assets/css/styles.css`).
@tautomer tautomer self-assigned this Oct 7, 2025
@tautomer tautomer linked an issue Oct 7, 2025 that may be closed by this pull request
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.

Bugs and errors in the web app

1 participant

Comments