Skip to main content

Updated for Fall 2026

This workshop is part of Milestone 5 — see that page for the milestone’s deliverables, rubric, and deadlines.

In this milestone you’ll work through the Frontend Workshop to explore integrating React into your static pages, and then finish the arbitrary ingredients functionality by implementing your frontend design and connecting it to the backend you built in Milestone 4.

Implementation and testing take longer than design. Plan accordingly.

Activity: Team Workshop

Start Milestone 5 with the Frontend Workshop, which walks through React state, effects, services, and navigation by making the Edit Recipe page work.

Complete it in a branch from development, and do not merge that branch into development or main. Show the branch to your TA during grading. The workshop is not a complete implementation — it focuses on using bind variables to move between pages and does not fully implement edit functionality — but you are welcome to reuse code from it where it fits your design.

The sections below should be completed as a team in the team repository.

Activity: Team Design Selection

For Milestone 5 your team implements the frontend of four use cases:

Your team designed UC5 and UC7 together in Milestone 3. Each of you designed UC2 and UC4 individually. Since the team implements all four, you first have to agree on one design.

Review each teammate’s UC2 and UC4 wire frames and decide which one — or which combination — you are going forward with. Record the result in technical-documents/design-selection-m5.md. For each teammate’s design, list its strengths and weaknesses; if someone did not complete a design, note that. Then describe the design you selected, include the wire frame, and explain why you chose it along with any modifications.

Pay attention to consistency as you choose. These four pages sit in one application, and a user moving between them should not have to relearn how ingredients are entered. A team that picks the best individual page for each use case without looking at them together ends up with four good pages that feel like four different applications.

Once you have selected a design, update technical-documents/frontend-design.md so it describes the design you are actually building.

Activity: Team Technical Deliverables

Deliver your technical deliverables to the main branch.

Together with your team, implement and test the frontend of UC2, UC4, UC5, and UC7, connected to your backend.

Your implementation should meet the Done Criteria for all pages associated with UC2, UC4, UC5, and UC7.

As you implement, you will find places where your frontend design was not sufficient. Record those decisions in an Implementation Decisions section of technical-documents/frontend-design.md, and update the wire frames to match what you built.

System tests go in technical-documents/system-tests.md, alongside the backend system tests you wrote in Milestone 4. At least two frontend system tests for each use case — eight in total — executed through the browser, with actual results recorded. Mark clearly which tests are backend (Postman) and which are frontend (browser).

Activity: Integrating With AI

Do this as a team, on one page that talks to the API.

Generating React components is one of the things an AI assistant does best, and this is the milestone where you are most likely to reach for it. It is also the milestone with no automated test suite underneath to catch what slips through. The frontend is verified by system tests completed manually through the browser, which means a mistake survives right up until someone notices.

This activity explores how well an AI tool can implement a front end feature when given some context.

Generate

Pick one page where you and your team want to explore AI code generation. One team member will using the following prompt structure in the AI tool.

I am working in a React + Vite frontend that uses Bootstrap 5, axios, and
react-router-dom. API calls go through modules in src/services/.

Here is the page I need to make dynamic:
<paste the current static component>

Here is an existing service module and the component that uses it, for
conventions:
<paste InventoryService.js and InventoryComponent.jsx>

Wire this page up to the backend: fetch the data it needs, submit the form,
handle the responses, and refresh the view afterwards.

For this code generation example, you are intentionally not including all context that might be needed for a full solution.

Not using AI? If your team is not using AI, one person or pair wires the page up while another person or pair reviews it against the checklist without having written it.

Review before it merges

The teammate who prompted for code generation should not PR the code into development or main. Should the team choose to incorporate the generated code into the solution, another team member should review it. Make sure that everyone on the team can explain what the code does (even if it’s incorrect).

Review the generated code against this checklist:

Does it match the API you actually built?

  • Does every request use the URL and HTTP verb in the endpoint design in technical-documents/backend-design.md?
  • Does the request body match the DTO the controller expects — every field, with the same names?
  • Does the code read the response the controller actually returns, rather than a shape it assumed?
  • Does it handle the status codes your controller returns for the alternative flows, or only the 200 path?

Does it match the design you drew?

  • Does the page implement the wire frame in technical-documents/frontend-design.md, or a different one?
  • Are the controls the types you designed — did a dropdown become a text field?
  • Does it work with arbitrary ingredients, or did it fall back to coffee, milk, sugar, and chocolate?

State and structure

  • Does it call the API through src/services/, or use axios inline in the component?
  • Does the view refresh after a create, update, or delete, or does it show stale data?
  • Is there a loading state while a request is in flight?
  • Is there an empty state when there is nothing to show?
  • Are the React hooks rules respected — no conditional hooks, and effect dependencies complete?

What the user sees when it fails

  • When a request fails, does the user see anything at all?
  • Is the message useful, or is it the raw error object?
  • Can the user recover, or are they stuck on a dead page?

Craft

  • Does npm run lint pass?
  • Do the components follow the conventions of the ones already in the project?
  • Is there dead code, unused imports, or leftover placeholder data?

After reviewing the code, attempt to run system tests against the implementation.

Deliverable: technical-documents/code-review-m5.md, containing

  • which page you generated and the prompt you used
  • who prompted and who reviewed
  • a table of every place the generated code assumed something your API does not do or where the implementation is different than the requirements or design. List the assumption, what your API actually does, and how you found it
  • every other finding from the checklist, with accept or reject and a justification for each rejection
  • what changed before the pull request merged, and a link to it

One of the key outputs from this activity is the table of assumptions. An empty table would need to be explained.

Activity: Independent Technical Deliverables

Deliver your technical deliverables to the main branch.

Integrate your team’s implementation into your individual CoffeeMaker project. We suggest doing this on the file system; IntelliJ will pick up the new files automatically. If it doesn’t, use File > Reload All from Disk (Ctrl+Alt+Y).

Then, individually, implement and test the frontend of [UC6] Order Beverage.

Your implementation should meet the Done Criteria for all pages associated with UC2, UC4, UC5, UC7, and UC6.

  • At least two frontend system tests for UC6 in technical-documents/system-tests.md, executed through the browser with actual results recorded.
  • No regression in the functionality your team delivered.

Then complete the AI Failure Mode Activity against the UC6 page you just built, and write technical-documents/frontend-design-reflection.md: reflect on your team and individual frontend designs and implementations, what changed during implementation, and how the team’s design of UC2, UC4, UC5, and UC7 shaped your implementation of UC6.

Done Criteria

The done criteria are considered on a use case basis.

  • Issue for each feature, with an owner. Commits include the issue number
  • Feature branch for each feature, with an owner
  • Feature branch merged into development and then into main
  • Passing backend unit and integration tests — green check from GitHub Actions on the main branch
  • At least 60% statement coverage in coffee_maker, demonstrated by running tests for coverage locally on the main branch
  • npm run lint passes in coffee_maker_frontend
  • Two passing backend system tests for each use case, documented in technical-documents/system-tests.md and demonstrated through Postman on the main branch
  • Two passing frontend system tests for each use case, documented in technical-documents/system-tests.md and demonstrated through the browser on the main branch
  • Code is fully documented

If you demo your functionality on a branch other than main, we will grade what you have, but there will be a deduction for not merging to main.

Next Steps

Head back to the Milestone 5 Overview for the individual portion of the project.