How sweetpea004/comp4092-93-purvis-templates works
This repository is a thesis benchmark comparing two food-ordering applications: an accessibility-refactored version and a deliberately naive baseline. In each, users browse meals, manage a cart, enter checkout details, confirm an order, and receive a result. Both frontends use shared-pattern cart and progress state, while the checkout submits to a local backend. The README also documents runtime and static accessibility scans. Edges follow shown imports, calls, or README statements; backend implementation details and scanner wiring are limited to the available evidence.
Main entry points: src/App.jsx App composition · src/App.jsx App composition · components/Checkout.jsx Checkout · components/Checkout.jsx Checkout
Components 23
Accessible app
- App composition
Accessible/src/App.jsx - Meal browsing
Accessible/src/components/Meals.jsx - Meal item
Accessible/src/components/Meal.jsx - Cart
Accessible/src/components/Cart.jsx - Cart item
Accessible/src/components/CartItem.jsx - Checkout
Accessible/src/components/Checkout.jsx - Cart state
Accessible/src/store/CartContent.jsx - Dialog progress
Accessible/src/store/UserProgressContext.jsx - HTTP requests
Accessible/src/hooks/useHttp.js
Naive app
- App composition
Naive/src/App.jsx - Meal browsing
Naive/src/components/Meals.jsx - Meal item
Naive/src/components/Meal.jsx - Cart
Naive/src/components/Cart.jsx - Cart item
Naive/src/components/CartItem.jsx - Checkout
Naive/src/components/Checkout.jsx - Cart state
Naive/src/store/CartContent.jsx - Dialog progress
Naive/src/store/UserProgressContext.jsx - HTTP requests
Naive/src/hooks/useHttp.js
Order service
- Order backend
Accessible/backend/app.js
Accessibility evaluation
- Runtime scanners
testing/axe.mjs - Static scanner
testing/eslint.config.js
Other components
- Customer
- Evaluator
Connections 32
- Customer → App composition: uses
Accessible/src/App.jsx - App composition → Meal browsing: renders
Accessible/src/App.jsx - App composition → Cart: renders
Accessible/src/App.jsx - App composition → Checkout: renders
Accessible/src/App.jsx - Meal browsing → Meal item: renders
Accessible/src/components/Meals.jsx - Meal browsing → HTTP requests: loads meals
Accessible/src/components/Meals.jsx - Meal item → Cart state: adds meal
Accessible/src/components/Meal.jsx - Cart → Cart item: renders
Accessible/src/components/Cart.jsx - Cart → Cart state: reads and updates
Accessible/src/components/Cart.jsx - Checkout → Cart state: reads and clears
Accessible/src/components/Checkout.jsx - Checkout → Dialog progress: reads progress
Accessible/src/components/Checkout.jsx - Checkout → HTTP requests: submits order
Accessible/src/components/Checkout.jsx - HTTP requests → Order backend: sends request
- Customer → App composition: uses
Naive/src/App.jsx - App composition → Meal browsing: renders
Naive/src/App.jsx - App composition → Cart: renders
Naive/src/App.jsx - App composition → Checkout: renders
Naive/src/App.jsx - Meal browsing → Meal item: renders
Naive/src/components/Meals.jsx - Meal browsing → HTTP requests: loads meals
Naive/src/components/Meals.jsx - Meal item → Cart state: adds meal
Naive/src/components/Meal.jsx - Cart → Cart item: renders
Naive/src/components/Cart.jsx - Cart → Cart state: reads and updates
Naive/src/components/Cart.jsx - Checkout → Cart state: reads and clears
Naive/src/components/Checkout.jsx - Checkout → Dialog progress: reads progress
Naive/src/components/Checkout.jsx - Checkout → HTTP requests: submits order
Naive/src/components/Checkout.jsx - HTTP requests → Order backend: sends request
- Evaluator → Runtime scanners: runs scans
README.md - Evaluator → Static scanner: runs lint
README.md - Runtime scanners → App composition: scans runtime
README.md - Runtime scanners → App composition: scans runtime
README.md - Static scanner → App composition: checks AST
README.md - Static scanner → App composition: checks AST
README.md