From 6340bb37afed946041d1acd0cf200499fe82692b Mon Sep 17 00:00:00 2001 From: joelte Date: Fri, 13 Nov 2026 14:29:57 +0100 Subject: [PATCH 1/2] fix: Fix decimal places not rounding Average scores now round to nearest 2 decimals when relevant in the UI. --- frontend/src/components/StarRating.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/StarRating.tsx b/frontend/src/components/StarRating.tsx index dcd41bf..895444c 100644 --- a/frontend/src/components/StarRating.tsx +++ b/frontend/src/components/StarRating.tsx @@ -137,7 +137,7 @@ export default function StarRating({ )}

- {score == null ? "Not yet rated" : `${score/2}/5 stars`} + {score == null ? "Not yet rated" : `${Math.round((score / 2) * 100) / 100}/5 stars`}

); From b3aebdaff717adf23f569fc82a83f9a7c745c22b Mon Sep 17 00:00:00 2001 From: joelte Date: Fri, 13 Nov 2026 14:59:01 +0100 Subject: [PATCH 2/2] docs: Update ai-usage Updated ai-usage.md with info ralating to delivery 2 and 3 --- docs/ai-usage.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/ai-usage.md b/docs/ai-usage.md index 7b75d5e..30889bc 100644 --- a/docs/ai-usage.md +++ b/docs/ai-usage.md @@ -7,4 +7,17 @@ This file documents how we use AI tools in the project. | Tool | Used for | How we checked the output | | --- | --- | --- | | Claude (Anthropic) / Opus 5.5 (medium)| Refactoring our written specification into a structured README format. | The group wrote the content and made all decisions: app idea, dataset, data model, functionality and tech stack. We reviewed the result against our own notes and the project requirements, and corrected inconsistencies before committing. | -| Claude (Anthropic) / Sonnet 5 | Scaffolding the backend (`server/`): project setup, Mongoose schema/index design, the `averageScore`/`reviewCount` recompute strategy for ratings, the CSV ingestion script, GraphQL resolvers, and integration tests. Database choice (MongoDB) was decided by the group. | We reviewed the generated code against the README's data model and functionality requirements, checked proposed package versions for compatibility, and verified behavior by running the backend locally against Apollo Sandbox and the automated test suite before committing. | \ No newline at end of file +| Claude (Anthropic) / Sonnet 5 | Scaffolding the backend (`server/`): project setup, Mongoose schema/index design, the `averageScore`/`reviewCount` recompute strategy for ratings, the CSV ingestion script, GraphQL resolvers, and integration tests. Database choice (MongoDB) was decided by the group. | We reviewed the generated code against the README's data model and functionality requirements, checked proposed package versions for compatibility, and verified behavior by running the backend locally against Apollo Sandbox and the automated test suite before committing. | + +## Delivery 2 + +| Tool | Used for | How we checked the output | +| --- | --- | --- | +| Claude (Anthropic) / Sonnet 5 | Writing tests, keeping documentation in sync with new features and decisions, and assisting with debugging and error handling. | We reviewed and ran the tests locally, read through the documentation changes for accuracy, and verified fixes by reproducing the original issues before committing. | + +## Delivery 3 + +| Tool | Used for | How we checked the output | +| --- | --- | --- | +| Claude (Anthropic) / Sonnet 5 | Same as Delivery 2: writing tests, keeping documentation in sync with new features and decisions, and assisting with debugging and error handling. | We reviewed and ran the tests locally, read through the documentation changes for accuracy, and verified fixes by reproducing the original issues before committing. | +| Claude (Anthropic) / Opus 5.5 | Assisting with error handling during deployment to the VM. | We tested the deployment on the VM and confirmed the errors were resolved before committing. | \ No newline at end of file