Skip to content

[REFACTOR][VISUALIZER] Refactor global variables to use ServerState class - #180

Merged
Jokeren merged 11 commits into
mainfrom
refactor_visualizer_public_url_and_local_port
Sep 29, 2025
Merged

Jokeren merged 11 commits into
mainfrom
refactor_visualizer_public_url_and_local_port

Conversation

@mark14wu

Copy link
Copy Markdown
Collaborator

Replace global variables last_public_url and last_local_port with a ServerState class to improve code organization and avoid global state management issues.

- Add MANIFEST.in and package data configuration for static/template files
- Improve README with separate CPU/GPU installation instructions
- Add color-by-value mode with Viridis and Mono color schemes
- Add interactive cube dragging in 3D visualizations
- Add OrbitControls for better camera manipulation
- Fix coordinate mapping issues in load/store visualizations
- Add support for raw (unmasked) load/store operations
- Update CDN imports to use esm.sh for better module resolution
- Add auto-launch server on import for easier debugging
- Expose operation data to window for debugging
- Improve UI controls with better z-index and pointer event handling
…lass

Replace global variables last_public_url and last_local_port with
a ServerState class to improve code organization and avoid global
state management issues.
@mark14wu

Copy link
Copy Markdown
Collaborator Author

This PR depends on #179. I’ll rebase this PR once #179 is merged; please defer review until then.

@mark14wu

mark14wu commented Sep 29, 2025 •

Copy link
Copy Markdown
Collaborator Author

@Jokeren Rebased.

@mark14wu
mark14wu marked this pull request as ready for review September 29, 2025 01:40
@Jokeren
Jokeren merged commit 5fa7527 into main Sep 29, 2025
1 check passed
@Jokeren
Jokeren deleted the refactor_visualizer_public_url_and_local_port branch September 29, 2025 12:36
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