How imgooglyeyes/22project works
ShopeeFarm is a JavaFX farm-to-market store with customer-facing browsing and purchase requests plus staff back-office workflows. A customer browses the shelf and submits a request; staff review, confirm, or void it, with FarmSystem enforcing stock and transaction rules. Managers also maintain products, inventory, and staff accounts. The README documents plain-text persistence and role-specific screens. Some page implementations were not excerpted, so their documented capabilities are included without inferring unshown call paths.
Main entry points: FarmSystem.java Business rules · SceneManager.java Role-aware navigation · MarketplacePage.java Marketplace · TransactionContainer.java Transaction records
Components 28
App Navigation
- Application startup
fxtest2/src/application/Main.java - Role-aware navigation
fxtest2/src/shell/SceneManager.java - Home dashboards
fxtest2/src/pages/HomePage.java - Staff dashboard
fxtest2/src/pages/StaffHomePage.java - Authentication and signup
fxtest2/src/pages/AuthPage.java
Storefront and Sales
- Marketplace
fxtest2/src/pages/MarketplacePage.java - Purchase request
fxtest2/src/popup/RequestToBuyWindow.java - Transaction handling
fxtest2/src/pages/TransactionsPage.java - My requests
fxtest2/src/pages/MyRequestsPage.java - Cash and history
fxtest2/src/pages/CashPage.java
Staff Operations
- Inventory management
fxtest2/src/pages/InventoryPage.java - Product management
fxtest2/src/pages/ProductsPage.java - Staff administration
fxtest2/src/pages/StaffPage.java - Add shelf stock
fxtest2/src/popup/AddProductWindow.java - Return shelf stock
fxtest2/src/popup/MoveProductWindow.java
Business Domain
- Business rules
fxtest2/src/application/FarmSystem.java - Product model
fxtest2/src/application/Product.java - Sale transaction model
fxtest2/src/application/SaleTransaction.java - Account model
fxtest2/src/application/User.java
Data Persistence
- Product and stock containers
fxtest2/src/application/ProductContainer.java - Transaction records
fxtest2/src/application/TransactionContainer.java - User records
fxtest2/src/application/UserContainer.java - Product file handler
fxtest2/src/application/ProductsFileHandler.java - Transaction file handler
fxtest2/src/application/TransactionFilesHandler.java - User file handler
fxtest2/src/application/UsersFileHandler.java - Product images
fxtest2/src/application/ProductImages.java
Other components
- Guest / Customer
- Clerk / Manager
Connections 41
- Guest / Customer → Marketplace: browses
README.md - Guest / Customer → Authentication and signup: signs in
README.md - Guest / Customer → Purchase request: requests product
README.md - Clerk / Manager → Transaction handling: handles sales
README.md - Clerk / Manager → Inventory management: views stock
README.md - Clerk / Manager → Staff dashboard: views dashboard
README.md - Application startup → Role-aware navigation: opens home
fxtest2/src/application/Main.java - Application startup → Product file handler: loads products
fxtest2/src/application/Main.java - Application startup → Transaction file handler: loads transactions
fxtest2/src/application/Main.java - Application startup → User file handler: loads users
fxtest2/src/application/Main.java - Role-aware navigation → Home dashboards: opens home
fxtest2/src/shell/SceneManager.java - Role-aware navigation → Staff dashboard: opens staff home
fxtest2/src/shell/SceneManager.java - Role-aware navigation → Authentication and signup: opens authentication
fxtest2/src/shell/SceneManager.java - Role-aware navigation → Marketplace: opens marketplace
fxtest2/src/shell/SceneManager.java - Role-aware navigation → Transaction handling: opens transactions
fxtest2/src/shell/SceneManager.java - Role-aware navigation → Business rules: creates rules service
fxtest2/src/shell/SceneManager.java - Marketplace → Purchase request: opens request
fxtest2/src/pages/MarketplacePage.java - Marketplace → Business rules: reads shelf
fxtest2/src/pages/MarketplacePage.java - Marketplace → Product model: renders products
fxtest2/src/pages/MarketplacePage.java - Purchase request → Business rules: submits request
- Business rules → Product and stock containers: changes stock
README.md - Business rules → Transaction records: records sales
fxtest2/src/application/FarmSystem.java - Business rules → Product file handler: saves products
fxtest2/src/application/FarmSystem.java - Business rules → Product images: removes images
fxtest2/src/application/FarmSystem.java - Business rules → Transaction file handler: persists transactions
fxtest2/src/application/FarmSystem.java - Transaction handling → Business rules: confirms or voids
README.md - My requests → Transaction records: shows own requests
README.md - Cash and history → Transaction records: derives cash history
README.md - Inventory management → Business rules: manages stock
README.md - Product management → Business rules: maintains products
fxtest2/src/pages/ProductsPage.java - Product management → Product images: selects images
- Staff administration → User records: reviews signups
README.md - Staff administration → User file handler: saves accounts
fxtest2/src/pages/StaffPage.java - Add shelf stock → Business rules: adds shelf stock
fxtest2/src/popup/AddProductWindow.java - Return shelf stock → Business rules: moves stock back
README.md - Product file handler → Product and stock containers: loads and saves
fxtest2/src/application/ProductsFileHandler.java - Product and stock containers → Product model: stores copies
fxtest2/src/application/ProductContainer.java - Transaction file handler → Transaction records: loads and saves
fxtest2/src/application/TransactionFilesHandler.java - Transaction records → Sale transaction model: stores records
fxtest2/src/application/TransactionContainer.java - User file handler → User records: loads and saves
fxtest2/src/application/UsersFileHandler.java - User records → Account model: stores accounts
fxtest2/src/application/UserContainer.java