Skip to content

Conversation

siverne
Copy link
Member

@siverne siverne commented Nov 12, 2026

Closes #49.

  • Wine page: a new section «Studentenes dommer» with the student average, a form to give 1–5 stars and an optional comment, and the ten newest reviews. The user can update or delete their own review. The page updates at once after saving, without a reload.
  • Landing page: «Nylig dømt» shows the five newest reviews, fetched in the same request as the rest of the page.
  • Stars replace the die everywhere, since the group chose a 1–5 scale. DiceFace is removed.
  • Users get an anonymous ID in localStorage until we have login (Account system #29). It also works on the VM over plain HTTP, where crypto.randomUUID does not exist.
  • The stars are radio buttons, so they work with the keyboard (arrow keys) and screen readers.
  • Tests: new tests for the user ID and the review form, and the wine and landing page tests updated with review data.
  • README and docs/api.md updated.

Tested: npm run check passes (246 frontend tests, typecheck, lint, build). Tried saving, updating and deleting reviews in the browser.

E2E: 48 pass. «filtrer, sorter, last på nytt, angre og nullstill» in filters.spec.ts fails, but it also fails on main, so it is not caused by this PR.

After merging: run npm run db:migrate on the VM and deploy the frontend.

@siverne siverne requested a review from a team as a code owner November 12, 2026 12:25
Copy link
Member

@manerlan manerlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, working on users now so we can implement cross functionality afterwards

@manerlan manerlan merged commit 44259aa into main Nov 12, 2026
@manerlan manerlan deleted the 49-reviews-frontend branch November 12, 2026 12:58
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frontend for student reviews
2 participants