Development - mobile visualization#14
Merged
Merged
Conversation
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.
This pull request introduces significant improvements to the cashier interface, focusing on responsive design, code modularization, and user experience enhancements. The main changes include a refactor of the cashier page layout to support both mobile and desktop views, updates to the order form and payment sections for better usability, and adjustments to environment configuration for deployment flexibility.
Responsive and Modular Layout Refactor:
CassaPageinapp/cashier/CassaClient.tsxto use newDesktopCassaLayoutandMobileCassaLayoutcomponents, passing shared props via a singlelayoutPropsobject. This enables a responsive UI that adapts to device type and removes duplicated code for layout management. Dialogs likeEditItemDialogandOrderDetailDialogare now shown only on desktop, while mobile-specific components are conditionally rendered. [1] [2] [3]Order Form and Payment Section Enhancements:
OrderForm.tsxnow dynamically renders the table input field only when table input is enabled and not disabled, and the layout adjusts between one or two columns accordingly. [1] [2]PaymentSection.tsxnow supports an optional calculator button (for mobile), improves the order of payment method and cash details, and cleans up input validation logic. [1] [2] [3] [4] [5] [6]Environment Configuration:
.env.examplechange the default backend and auth URLs to match the new service names and ports, reflecting deployment or docker-compose changes.These changes collectively improve maintainability, scalability, and user experience across devices.
Layout and Responsiveness:
CassaPageto use newDesktopCassaLayoutandMobileCassaLayoutcomponents with sharedlayoutProps, enabling true responsive design and reducing duplicated layout code. Dialogs are now conditionally rendered based on device type. [1] [2] [3]Order Form Improvements:
OrderFormto only show the table input when enabled and not disabled, and to switch between single and double column layouts dynamically. [1] [2]Payment Section Enhancements:
PaymentSection, reordered payment method and cash details, and improved input validation. [1] [2] [3] [4] [5] [6]Configuration:
.env.exampleto reflect new service URLs and ports for backend and auth, improving deployment compatibility.