RIGITOR / ENVIRONMENTS / ABOUT / PANEL DOC

Dashboard 2 Panel Structure

Reference for every panel, viewer, control surface, directory page, document surface, and persisted state key used by the Dashboard 2 workspace.

1. Workspace purpose

Dashboard 2 is a static browser workspace that presents a live control room layout. It is organized into three primary columns: a left navigation and preview rail, a center dual-view and viewer-grid stage, and a right operations dock. The workspace is driven by plain HTML, CSS, and browser JavaScript with localStorage persistence. No server is required.

The Rigitor copy lives in Rigitor/Rigitor(panels).html. That file is a clone of index.html and uses a base path to the Rigitor root, which contains its own copy of the shared scripts, styles, media, and PDF vendor files so the folder is self-contained. Rigitor/Rigitor Dashboard.html is the dedicated full Rigitor dashboard: it keeps the left rail, featured preview, top duo/program row, divider, 12-viewer grid, compact Video Control panel, and right operations dock, with short-viewport rules that compact panels instead of hiding the command composer.

2. Root application shell

AreaAnchorPurposeState
Top harness .title-panel, .main-nav Displays the workspace title and global links. The source dashboard links to Directory, Settings, Video Control, Rigitor, and About; the Rigitor clone additionally links to All Pages. None
Left rail .left-panel Holds brand identity, QR panel, directory navigation, panel list, featured preview, and notes. dashboard2.nav.v3, dashboard2.businessName.v1, dashboard2.logo.v1, dashboard2.notepad.v1, dashboard2.topNote.v1
Center stage .center-panel, .center-split Holds the draggable split, duo/program view, 12-viewer grid, and compact Video Control panel. dashboard2.split.v3.desktop, dashboard2.split.v3.mobile, dashboard2.viewMode.v1
Right dock .right-panel Holds command chat, program monitor, notes, telemetry, and preview controls. dashboard2.topNote.v1, dashboard2.previewPerson.v1

3. Left panel stack

Brand and QR

The brand area contains the editable logo and business name. The QR panel encodes the current business name locally using qr.js. Short values are recommended because the encoder targets QR versions 1 through 4 in byte mode.

Directory navigation

The Directory section lists User, Add new, All people, John Doe, and Jane Doe. User ID, My account, and Viewer and camera doc are top nav links. Clicking User stays on the dashboard and shows the live camera in the left preview; the other links open real page sets rather than placeholders. Collapse state is persisted so the rail can be compacted without losing layout preference.

Panel list

The Panels section lists the active panel names. New panels can be created and removed from this section. Default names are Page 1 (John Doe) through Page 12 (John Doe). Grid labels follow these names, so renaming a panel updates the visible grid label and source accessibility label.

Featured preview

The featured preview tracks dashboard2.previewPerson.v1. It supports John Doe, Jane Doe, User, and custom directory entries. Clicking the dashboard User link sets that key to user, calls window.RigitorCamera.enable(), and leaves the dashboard open with the live camera in the left viewer. Camera access is granted once from Settings or My account through window.RigitorCamera.enable(), stored in dashboard2.camera.v1, and synced to /api/camera. When the camera session is enabled, the featured preview and User page reconnect to camera:user automatically without another prompt. Before permission is granted, pages keep their saved image and do not call getUserMedia.

Notes

The left notepad and right top note are independent persisted text surfaces. They are intended for operator notes and do not require a backend.

4. Center stage

Duo and solo views

The top half of the center stage uses a draggable split. Duo view shows a left PREVIEW cell and a right PROGRAM cell. Solo view expands the program cell. The preview normally holds the selected directory image, or the live camera when the camera session is enabled; the program holds the selected grid clip. Selecting a grid viewer updates both the top-right program and the right-dock program viewer while leaving the left preview in place.

While a call is connected, call.js forces duo view, sets dashboard2.previewPerson.v1 to user, and overrides program viewer 19 with the called client. User is the Admin account; John Doe and Jane Doe are Client accounts. Call state lives in dashboard2.call.v1, signaling events in dashboard2.callSignals.v1, and the Rigitor backend mirrors both through /api/call and /api/call/signal. /api/call/clear resets the session for the next scenario.

12-viewer grid

The grid is a 4 by 3 collection of real media viewers with data-viewer IDs 5 through 16. Each cell contains:

Default clips are sample-video-01.mp4 through sample-video-12.mp4. Every viewer can switch to any clip independently. Media initialization removes stale volume sliders before creating new ones, so repeated re-initialization does not duplicate controls.

Compact Video Control panel

The panel below the duo views provides OBS-style transforms for all media stages. It includes target selection, a 9-direction pan pad, zoom slider, rotation slider, horizontal and vertical flip toggles, reset, and a status line. Short viewports compact the note, program stage, right dock, and composer while keeping the command panel visible; below 620px height, only telemetry and control status are hidden. The full standalone page exposes every control.

State is stored in dashboard2.videoControl.v1 with fields target, zoom, panX, panY, rotate, flipX, and flipY. The shared video-control.js module tags every .media-stage with a target and applies CSS transform variables to its media children.

5. Right operations dock

Command chat

The chat panel opens with a video loop from the remade welcome-to-rigitor.mp4 using the title text Welcome to Rigitor. The welcome card and video are removed as soon as the user types in the composer or sends a command or attachment, so the conversation is never obstructed. A short ready message and, when unsupported, a browser capability notice remain. The composer accepts file attachments and the command patterns video:<src>, test video, and test video test. Microphone input uses the browser speech recognition API when available.

Program monitor

The program monitor mirrors the selected grid clip. It is kept separate from the left preview so an operator can watch a directory subject while monitoring a different output source.

Telemetry

Telemetry values for FPS, latency, and load are simulated locally on an interval. They are display-only and do not persist.

Preview controls

The right dock includes up/down step buttons and a joystick. Both cycle through the preview order: John Doe, Jane Doe, User, then any custom directory keys in sorted order. The keyboard arrow keys work while the joystick is focused. controlStatus reports the current preview selection; the live camera overrides the visible featured source whenever its session is enabled.

6. Directory page system

Page typeLocationPurpose
Directory root directory.html Lists the active accounts dynamically and adds an Add new card linking to home.html#add. The left dashboard nav keeps only User, Add new, All people, John Doe, and Jane Doe.
Home and custom entries home.html, person.html, person-page.html Home shows cards for User, John Doe, Jane Doe, and Add new. New entries are stored by slug in dashboard2.directory.v1 and render through the query-string person directory and page templates.
Person directory john-doe/directory.html, jane-doe/directory.html, user/identification.html Editable ID sheet plus a grid of live muted autoplay video thumbnails. User has one identification page prefilled from dashboard2.account.v1; John and Jane each list 12 clips. Name, role, location, status, and image are stored in dashboard2.directory.v1.
Single viewer page page-01.html through page-12.html for John and Jane; user/page-01.html Split document and media viewer. Each page remembers its own media source in dashboard2.directoryMedia.v1.
Account and viewer docs my-account.html, viewer-camera-doc.html My account pre-identifies the user and mirrors the values into the User Identification page. The viewer and camera doc lists viewer source types, camera instructions, and the default 12 view clips.

Single viewer pages are seeded with their matching clip: page-01.html uses sample-video-01.mp4 through page-12.html using sample-video-12.mp4. Those clips loop automatically. The User page defaults to camera:user once the camera session is enabled and otherwise shows the saved profile image. Every single-page viewer includes a full source dropdown, volume slider, and Video Control navigation link.

7. Document and PDF surfaces

Single viewer pages can switch between the sample document, a blank editable page, uploaded HTML, uploaded text, and uploaded PDF files. HTML and text documents can be edited in place and saved to dashboard2.documents.v1. The current document selection per page is stored in dashboard2.documentState.v1.

PDF files are rendered locally with the bundled vendor/pdf.min.js, vendor/pdf.worker.min.js, and vendor/pdf-lib.min.js. Clicking the rendered page places a text annotation, and saving writes the annotated PDF back into browser storage.

8. Persistence map

KeyStores
dashboard2.nav.v3Navigation and panel list state.
dashboard2.businessName.v1Business name used by the QR code.
dashboard2.logo.v1Uploaded logo image data.
dashboard2.notepad.v1Left notepad text.
dashboard2.topNote.v1Right dock note text.
dashboard2.split.v3.desktopDesktop split ratio.
dashboard2.split.v3.mobileMobile split ratio.
dashboard2.viewMode.v1Duo or solo center view.
dashboard2.navCollapse.v1Directory and panel collapse state.
dashboard2.directory.v1Directory profiles and uploaded profile images.
dashboard2.account.v1Pre-identified user account details. Mirrored into dashboard2.directory.v1.user on save.
dashboard2.previewPerson.v1Selected preview person.
dashboard2.directoryMedia.v1Per-page viewer source selection.
dashboard2.documents.v1Uploaded document data.
dashboard2.documentState.v1Current document per directory page.
dashboard2.videoControl.v1Shared pan, zoom, rotate, flip, and target state.
dashboard2.camera.v1Camera session: enabled, granted, selected device, last active time, and update time. Synced with /api/camera.

9. Rigitor environment notes

The Rigitor folder is a dedicated workspace snapshot. It contains:

The clone and copied pages are path-aware and self-contained. Styles, scripts, videos, images, and PDF libraries load from the Rigitor root through each page's <base> tag.

10. Maintenance checklist

  1. Update this document whenever a panel, control, page type, or storage key changes.
  2. Keep the cloned Rigitor(panels).html aligned with index.html after dashboard layout changes, including its <base href="./">, data-page-root="pages/", and All Pages link.
  3. Re-copy pages into Rigitor/pages/ when page files are added, renamed, or removed, preserving each page's Rigitor-root <base>, data-page-root, person-directory data-page-prefix, and path-aware asset/document links.
  4. Refresh the shared assets copied into the Rigitor root when dashboard styles, scripts, media, images, or PDF vendor files change.
  5. Keep Rigitor Dashboard.html aligned with the cloned panels page after grid changes, preserve its full-panel rigitor-dashboard-page layout, and keep the command composer visible on short viewports.
  6. Keep the remade welcome video at welcome-to-rigitor.mp4 with the title text Welcome to Rigitor, and keep the card dismissing on first typing or command submission.
  7. Rebuild Rigitor Final Draft 1.zip after any Rigitor folder change.
  8. Confirm every folder still contains about-this-folder.html.
  9. Run the static asset audit and browser smoke tests after folder changes.