Design logged-in seating layout preview webpage with CSV import and interactive editing - #90
Open
cycomachead wants to merge 2 commits into
Open
Design logged-in seating layout preview webpage with CSV import and interactive editing#90cycomachead wants to merge 2 commits into
cycomachead wants to merge 2 commits into
Conversation
…ive editing - Add logged-in layout preview at `/layouts/preview/` accepting CSV upload or pasted text - Render layout grids and movable seat groups using Berkeley Blue/gray/rose/gold palette - Include a grouped highlight dropdown, legend, per-seat toggle editor, and layout CSV export https://www.superconductor.com/tickets/bWcKjzNFNNCd/implementations/8tDmncWWfc6c#message_rFzMgMTc8DTf Co-authored-by: Claude Code <noreply@anthropic.com>
…preview Add support for TSV file uploads and direct pasting of tab-separated ranges from Google Sheets in the seating layout preview. Implement header-based delimiter sniffing to handle mixed formats, decode files using UTF-8 with BOM support, and fix input handling and validation bugs in the dev login flow. https://www.superconductor.com/tickets/bWcKjzNFNNCd/implementations/8tDmncWWfc6c#message_wTkh8bQCwrcG Co-authored-by: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add logged-in seating layout preview with CSV import and interactive editing
Adds a standalone page (
/layouts/preview/) where a logged-in user can upload or paste a room CSV, see the seating layout rendered without saving anything to the database, highlight seats by layout or attribute, and toggle seats individually to build and export a new layout. Also scaffolds a dev login for non-staging/production environments and fixes an icon-rendering bug in the header.Changes
/layouts/preview/, login required): accepts CSV upload or pasted text, parsed through the sameparse_csv/prepare_seatpath as the room import flow. Nothing is persisted.server/services/core/layout_preview.py) — introduces a closed vocabulary of canonical seat attributes (physical properties likelefty,broken,aisle,dsp, etc.); every other column is treated as a named layout, labelled using the file's own header spelling.Llabel shown only for lefty-only seats (righty is the unlabelled default; broken/both-handed seats get no letter) to reduce visual noise.mdl-tabs,mdl-textfield,mdl-button, seat chart containers) to match app conventions; only seat colors depart from the app palette.MOCK_CANVASnow defaults totrueinDevelopmentConfig(env-overridable), explicitlyfalseinStagingConfig(closing a hole where it previously inherited from env). Dev login page now lists seeded users with Canvas ID and enrollments for one-click login.expand_moreMaterial Icons ligature with a CSS-drawn caret, since it rendered as literal text when the icon font was slow/blocked/unavailable.test_layout_preview.py) and dev login gating/roster (test_dev_login.py).Screenshots
A wiki page draft describing the feature is also available: Seating-Layout-Preview.md (not pushed — the wiki repo isn't reachable from this environment; needs to be added manually alongside the screenshots above).
Superconductor Ticket Implementation | App Preview | Guided Review