feat(web-frontend): Add print management frontend#161
Closed
jeastham1993 wants to merge 33 commits into
Closed
Conversation
…/ViewModels/RegisterPrinterResponse.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… into feat/print-servic:wq
Implement print station UI for the sticker printing microservice: - Add PrintStation page with printer list and status polling - Add PrintDialog for selecting stickers and submitting print jobs - Add RegisterPrinterDialog for admin printer registration with API key display - Add print button to StickerDetail page with navigation state - Fix Sidebar link to Print Station - Add print.js service with proper auth and error handling Security & stability improvements from code review: - Add AbortController for all async fetch operations - Add mounted ref checks to prevent state updates after unmount - Add double-submit protection with ref guards - Add userId validation before API calls - Add URL parameter encoding (encodeURIComponent) - Add token validation in getHeaders() to prevent "Bearer undefined" - Fix stale closure in escape handler with useCallback Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
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.
DO NOT MERGE BEFORE BACKEND PR MERGED PR and this PR tested against the actual service.
Summary
Implement print station UI for the sticker printing microservice:
/print-station) - Lists printers with online/offline status, 30-second pollingFeatures
Technical Details
New Files:
src/services/print.js- API functions for print servicesrc/components/print/PrintStation.jsx- Main page componentsrc/components/print/PrinterCard.jsx- Printer card with statussrc/components/print/PrintDialog.jsx- Print job submission modalsrc/components/print/RegisterPrinterDialog.jsx- Admin registration modalModified Files:
src/config.js- Added DEFAULT_EVENT constantsrc/main.jsx- Added /print-station routesrc/components/Sidebar.jsx- Fixed Print Station linksrc/components/StickerDetail.jsx- Added print button with navigationSecurity & Stability Improvements (from code review)
Applied fixes for all P1 and P2 findings from multi-agent code review:
P1 - Critical:
getHeaders()to prevent "Bearer undefined"P2 - Important:
Test plan