The problem statement describes customer requests that may be further articulated as functional requirements, non-functional requirements, or constraints to the system. There are a set of required elements and a set of optional elements that you may complete for extra credit. Any extra credit done must be documented in your repository’s technical-documents/extra-credit.md, starting from the template, so that we can easily find and grade what was done. Extra credit that is not documented there will not be graded. If you wish to complete other extra credit beyond what is listed here, you must discuss your proposal with us before you do it.
Problem Overview
You have been provided the WolfCafe starter project which includes three user roles: Admin, Staff, and Customer. You will be integrating CoffeeMaker functionality and updating it to provide order functionality.
Required Functional Elements
The following elements are required for completion as part of the team project. The following completion criteria are associated with each problem element. Each problem element has the points that will be earned for successful completion.
Done Criteria
All implementation and tests should be PRed into the main branch for done criteria evaluation.
- Appropriate requirement(s) describing the element modeled as a use case, including what is logged. The base system’s
AuditLoggerrecords the user, their role, and the action; seetechnical-documents/design/security.md. - Design describing change to the system.
- Working demo of functionality that meets requirements and management approval.
- Backend demo through API calls
- Frontend demo through browser
- Frontend should consider accessibility in regards to color/shapes, tab order, and tool tips to support screen readers.
- Passing unit and integration tests that cover at least 70% of lines and 50% of branches in the backend.
./mvnw verifychecks these minimums, and the GitHub Actions build writes the coverage on each run’s summary page. - Passing system tests, as outlined in the system test plan, run by hand with actual results recorded.
- No static analysis notifications: no Checkstyle violations in the backend and no ESLint problems in the frontend.
- Code is commented.
Required Enhancement: Permissions
You’ll need to import and optionally refactor existing CoffeeMaker functionality. At a minimum there should be functionality to create items/recipes for sale and inventory for the items/recipes. You may choose to keep the idea of ingredients or not. Now that we have user roles, permissions need to be updated accordingly:
- Create a new item/recipe/ingredient - staff
- Add inventory - staff
- Purchase recipe/item - customer
10 points
Required Enhancement: Create/Edit/Delete Staff and Customers
Administrators can create, edit, and delete users with the staff role. Administrators can edit and delete users with the customer role.
20 points
Required Enhancement: Customer Orders
A customer can select one or more recipes/items to add to their order. They can select multiple of the same item and multiple different items. The order total is shown including sales tax. Customers have the option of leaving a 15%, 20%, 25%, or custom tip.
25 points
Required Enhancement: View and Fulfill Orders
A staff member can see the list of orders and select an order to fulfill.
15 points
Required Enhancement: Customer Order Pickup
A customer’s display is updated when their order is fulfilled. They can then pickup their order.
15 points
Required Enhancement: Tax Rate
Administrators can set the sales tax rate for the system. For the state of NC, a 2.0% sales tax is applied on food.
10 points
Required: Developers’ Guide
Create a developers’ guide that describes how to add new functionality to the system. This must include instructions for creating a new user. Write the Developers’ Guide in technical-documents/developers-guide.md on its own document branch, such as docs-developers-guide.
More information on Developers’ Guides from NC State Senior Design
10 points
Required: Users’ Guide
Create a users’ guide that describes how all users interact with the new functionality. Write the Users’ Guide in technical-documents/users-guide.md on its own document branch, such as docs-users-guide.
10 points
Required: Privacy Policy
Create a privacy policy for WolfCafe in technical-documents/privacy-policy.md, on its own document branch. Ensure that you have all the critical elements of a privacy policy.
20 points
Required: Human Flourishing
Discuss how WolfCafe promotes or hinders human flourishing in technical-documents/human-flourishing.md, on its own document branch. Include a discussion about each of the five central domains: happiness and life satisfaction, mental and physical health, meaning and purpose, character and virtue, and close social relationships. Think about this from system stakeholders, including people who may choose not to use WolfCafe.
15 points
Optional Elements (extra credit)
Document each option you complete in technical-documents/extra-credit.md: what you did, links to the code, tests, documents, pull requests, and issues, and step-by-step instructions for the teaching staff to see it working on main. Options that must be proposed first also record who approved them and when.
Automated Frontend Testing
WolfCafe is lacking test automation for the frontend. There are automated testing libraries for testing React applications, like React Testing Library. Integrating the library into your system with an example passing test (15 points), writing automated tests to cover the main frontend functionality (+10 points), and integrating into the GitHub Actions build (+5 points) will earn extra credit. Any job you add to the GitHub Actions workflow must use runs-on: [ campus ], like the existing jobs, or it will never start.
15-30 points
Additional User Role
Staff is a very general term for lots of possible roles for WolfCafe. You can split the staff role into two different roles. You may decide (and document) the scope of each role. Each role must do at least two distinct and meaningful tasks beyond authentication. For example, a manager role may create and maintain inventory while a barista may fulfill orders and create new recipes. If you create a new role, you will need to add the information to Roles.UserRoles enumeration and then integrate into the rest of the system.
15 points
Anonymous Orders
Not everyone wants to log into a system to complete an order. You can provide functionality for a non-logged in user to place an order in WolfCafe.
20 points
Order History
Staff members would like to view the order history. This can be used to determine how much money was made and future inventory orders. Create a system to log and show the order history. Additional extra credit may be available for visualizations of the order history beyond a table.
20-30 points, as determined by the teaching staff
Refactoring
Your team can propose a refactoring of WolfCafe to improve the underlying design. You must propose the refactoring and provide a design and rationale for why the refactoring will improve the system now and in the future. The refactoring must be independent of the role functionality. Completing the refactoring with out a loss of existing functionality will provide the opportunity for additional extra credit. The teaching staff will evaluate the refactoring on a case by case basis to determine the points available for the design and the actual refactoring.
You must propose the refactoring and have the teaching staff approve by the end of Iteration 1 for the refactoring to count for extra credit.
15-25 points, as determined by the teaching staff
Functionality
Your team can propose a new piece of functionality for WolfCafe. You will be expected to meet the Done Criteria listed above. The teaching staff will evaluate the functionality request to determine the amount of extra credit on a case by case basis.
You must propose the functionality change and have the teaching staff approve by the end of Iteration 1 for the new functionality to count for extra credit.
15-30 points
Security Audit
Do a security evaluation of WolfCafe now that there is role-based authentication. Identify potential problems with the authentication and authorization system. Document areas of concern. Additional extra credit may be available if you implement any mitigations to security concerns.
10-25 points
Badges
Badges are helpful for showing the current status of development on a project at a glance. The GitHub Actions build already reports coverage on each run’s summary page, but nothing shows it in your README.md.
- Coverage badges. Add badges to your
README.mdthat show the backend’s current line and branch coverage. The badges must be regenerated by the GitHub Actions build on every commit, not updated by hand. - Other badges. Propose other non-trivial badges that indicate a process or quality measure of the project, such as the number of Checkstyle or ESLint problems or the number of passing tests. A badge must be generated from the build for each commit; a static badge does not count. Other badges must be approved by the teaching staff before you build them.
5 points per badge, up to 10 points for 2 badges
UI Enhancements
The CoffeeMaker UI is pretty boring, so improvements are needed above and beyond adding required functionality. Any UI enhancements should consider accessibility and be responsive to use on web and mobile devices. Proposed UI enhancements must be approved by a member of the teaching staff to determine if extra credit is appropriate.
10-20 points
GitHub Projects
You’re welcome to track your tasks and iterations on a GitHub Projects Kanban board (in addition to the task sheets in project-management/). If you do, please include a reflection (both team thoughts and individual thoughts) about using GitHub Projects in your Project Management Plan.
10 points
