Skip to content

chore(viewer): remove dead code, hoist imports, trim Dataset Quality cards - #560

Open
omkargaikwad23 wants to merge 3 commits into
refactor/shared-results-dirfrom
chore/hoist-imports
Open

chore(viewer): remove dead code, hoist imports, trim Dataset Quality cards#560
omkargaikwad23 wants to merge 3 commits into
refactor/shared-results-dirfrom
chore/hoist-imports

Conversation

@omkargaikwad23

@omkargaikwad23 omkargaikwad23 commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Cleanup plus one small UI removal. Four commits:

me.run does not exist in mesop 1.3.3, so the __main__ block only ever raised;
gunicorn serves the module itself as main:me. The trends import stays local
because trends imports from main.

The two Dataset Quality cards were the whole body of _fleet_summary, and
_stat_card had no other caller, so both helpers go with them. The per-row CUJs
column and the detail report are unchanged.

Verification

I deployed this branch's image to GKE and verified the changes in the production
Mesop UI. This branch sits at the top of the stack, so that run exercises every
change in #553, #554, #555, #556 and #559 as well.

@omkargaikwad23 omkargaikwad23 changed the title chore(viewer): hoist function-local imports and drop the dead __main__ block chore(viewer): remove dead code, hoist imports, fix heading case Aug 9, 2026
@omkargaikwad23
omkargaikwad23 marked this pull request as ready for review August 10, 2026 04:54
@omkargaikwad23 omkargaikwad23 changed the title chore(viewer): remove dead code, hoist imports, fix heading case chore(viewer): remove dead code, hoist imports, trim Dataset Quality cards Aug 10, 2026
Nothing imports it. It is a stale copy of main.py's State: 16 fields
against 30, still carrying eval_summaries, and selected_main_tab defaults
to "List" rather than "Status".

Leaving it is a trap. @me.stateclass registers by class identity, so two
decorated State classes are two different state objects to Mesop. The
first module to import this one instead of main would get its own state
with its own defaults, silently, with no error to trace.
…_ block

The four local `import re` shadowed the module-level one added earlier; ast,
threading and time each had a single use. The trends import stays local because
trends imports from main. me.run does not exist in mesop 1.3.3, so the __main__
block only ever raised; gunicorn serves the module itself as `main:me`.
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