feat: add advanced dashboard and power dashboard#412
Open
tomas-goncalves wants to merge 9 commits intosc0v:masterfrom
Open
feat: add advanced dashboard and power dashboard#412tomas-goncalves wants to merge 9 commits intosc0v:masterfrom
tomas-goncalves wants to merge 9 commits intosc0v:masterfrom
Conversation
156b22c to
bc34f65
Compare
- Add participant_signed_waiver, participant_belongs_to_org, and not_already_checked_in validations to Checkout model - Add checkin instance method - Add checkout_batch class method (map/partition style matching ScissorLiftCheckout) - Update Tools::CheckoutsController to use checkout_batch and checkin - Update Applets::PPECollectionController to use checkin - Update Applets::PPEDistributionController to use find_by and fix double create+save
Implements two new operator interfaces for tool/lift/queue management: - `/dashboard` — URL-param-driven step wizard for checkin, checkout, lift operations, queue management, and participant lookup flows - `/power-dashboard` — session-based command UI with text input, autocomplete (keyboard navigation, pre-selects first result), confirmation flow, and cart management Includes a shared service layer (17 action handlers, flow state, session state, action registry, receipt builder, scan resolver) and merged DashboardHelper covering both surfaces. Org resource card shows Tools, Hardhats, and Radios counts separately.
…le_resource_input
c7c101e to
184fddd
Compare
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.
Summary
Implements two new operator interfaces for tool/lift/queue management, rewritten from the
advanced-dashboard/*branch series./dashboard— step-by-step wizard driven by URL params. Supports checkin, checkout, lift checkin/checkout/renew, queue add/remove, and participant lookup flows with undo, confirmation, and a result page for partial checkouts./power-dashboard— session-based command UI with a single text input. Operators type commands (checkin,checkout,add,electrical add <note>, etc.), get autocomplete suggestions with keyboard navigation, and confirm destructive actions before execution.Key additions
app/services/dashboard/actions/(tools, lifts, queues, cart, session)FlowState,SessionState,ActionRegistry,ActionExecutor,ReceiptBuilder,ScanResolver,ShowContextBuilderPowerDashboard::ActionParserandAutocompleteSuggestionsfor the command surfaceDashboardHelpermerging both UI helpersauto_submit,power_dashboard_autocomplete(keyboard nav, pre-selects first result),power_dashboard_focusapp/views/shared/resources/