From 8e958d4ea1461a54060089670619f114760581ca Mon Sep 17 00:00:00 2001 From: Alexandra Date: Thu, 29 Oct 2026 12:02:57 +0100 Subject: [PATCH 1/2] minor readMe fixes --- docs/quality.md | 8 ++++---- docs/tests.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/quality.md b/docs/quality.md index 09916052..f8cfc56f 100644 --- a/docs/quality.md +++ b/docs/quality.md @@ -5,14 +5,14 @@ This document describes how we have worked to ensure the quality of the applicat ## Quality aspects - Work practices: [Work practices](#work-practices) -- Testing: [Testing](#testing) +- Testing: [Testing](#method-behind-testing) - Accessibility: [Accessibility](#accessibility) - Sustainable web development: [Sustainable web development](#sustainable-web-development) - Design choices: [Design choices](#design-choices) ### Continuous integration -GitHub Actions ([.github/workflows/ci.yml](.github/workflows/ci.yml)) runs on every pull request and on every push to `main`. It checks the formatting with Prettier, and runs lint, tests for both the backend and the frontend. +GitHub Actions ([.github/workflows/ci.yml](../.github/workflows/ci.yml)) runs on every pull request and on every push to `main`. It checks the formatting with Prettier, and runs lint, tests for both the backend and the frontend. ## Work practices @@ -55,7 +55,7 @@ The app includes the following accessibility features: - **axe DevTools:** Axe Accessibility Testing found no automatic accessibility issues on the page when tested against WCAG 2.1 AA. -- **Colour contrast:** We tested the contrast between our chosen colours to help ensure that text and interface elements are distinguishable from their backgrounds. +- **Colour contrast:** We tested the contrast between our chosen colours to help ensure that text and interface elements are distinguishable from their backgrounds using a contrast checker. The contrast checker checked our colours pass WCAG 2.1 accessibility guidelines. This was also tested in the e2e test for both dark and light mode see [tests.md](tests.md#accessibility). - **Language support:** The application supports both Norwegian and English, allowing users to choose their preferred language. @@ -84,7 +84,7 @@ and our approach to data handling. - **Figma prototype:** Before development began, we created a prototype in Figma to establish a shared visual direction and agree on the layout and appearance of the application. This gave the group a common starting point before implementation. -- **Colour palette and contrast:** We used a limited colour palette to maintain a consistent visual identity across the application. We also checked the contrast between our chosen colours to help ensure that text and other interface elements remain distinguishable. +- **Colour palette and contrast:** We used a limited colour palette to maintain a consistent visual identity across the application. We also checked the contrast between our chosen colours to help ensure that text and other interface elements remain distinguishable and in line with accessibility requirements. See [Accessibility](#accessibility). - **Reusable components:** We used reusable React components to maintain a consistent interface and avoid duplicating code. For example, the Header and Sidebar are shared across pages, while components such as plant cards are used to present plant information consistently. This makes the application easier to maintain and allows changes to be made in one place. diff --git a/docs/tests.md b/docs/tests.md index a967dc07..f1e433b4 100644 --- a/docs/tests.md +++ b/docs/tests.md @@ -236,7 +236,7 @@ Saving the profile is debounced by 800 ms. The test waits until the save request `uiAccessibility.spec.ts` runs **axe** through `@axe-core/playwright` against WCAG 2.1 level A and AA, the level required for the public sector in Norway. It checks: -- all five pages (PlantMatch, ExplorePlants, MyMatches, Profile and PlantOwnerTest), in both light and dark mode, since colour contrast has to meet the requirements in both themes +- all five pages (PlantMatch, ExplorePlants, MyMatches, Profile and PlantOwnerTest), in both light and dark mode, since colour contrast has to meet the requirements in both themes for WCAG 2.1 accessibility guidelines. - content that only appears after an interaction: a flipped plant card, the edit tab on the profile page, MyMatches with a matched plant, and the result of the plant owner test The tests run on both desktop and mobile, since the layout, and the elements that are visible, differ between them. A failing test lists each element that breaks a rule, with axe's explanation (for contrast: the colours and the ratio). From adba96004a221c385a52f3ee5d423a4dd41be08a Mon Sep 17 00:00:00 2001 From: Helene Lotsberg Date: Wed, 11 Nov 2026 14:58:54 +0100 Subject: [PATCH 2/2] describe the missing login in the README and run prettier --- README.md | 3 ++- docs/ai-usage.md | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6cb8008c..6884b24a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # I <3 Plants -I <3 Plants offers a fun way of finding plants and reading about them! Instead of scrolling through a long catalogue, you set your preferences and get shown one plant at a time. You like the plants you want and skip the ones you don't, and your matches are saved so you can come back to them later. If you already know what you are looking for, you can also search and filter the full plant collection. +I <3 Plants offers a fun way of finding plants and reading about them! Instead of scrolling through a long catalogue, you set your preferences and get shown one plant at a time. You like the plants you want and skip the ones you don't, and your matches are saved so you can come back to them later. If you already know what you are looking for, you can also search and filter the full plant collection. The app is made to be low-threshold: there is no login, so anyone can start finding plants right away, without creating an account first. ## Link to VM @@ -158,3 +158,4 @@ See [quality.md](docs/quality.md) for Lighthouse results, testing, accessibility ## Known issues - Information on plant card does not translate to Norwegian. +- There is no login. The user id is stored in the browser, so the profile and matches belong to that browser and cannot be reached from other devices, and anyone who knows a user id can change that user, since the id is sent with every request. Login would solve both, and is a possible next step. diff --git a/docs/ai-usage.md b/docs/ai-usage.md index a7534479..24c146de 100644 --- a/docs/ai-usage.md +++ b/docs/ai-usage.md @@ -24,7 +24,6 @@ AI helped us write [backend/seedDataFetch.js](../backend/seedDataFetch.js), whic We decided which fields to keep and how they are mapped to the GraphQL schema, and we checked the data in the database after each run. - ### Tests and end-to-end tests AI drafted many of the Vitest tests and the Playwright e2e and API tests, and suggested atypical cases to test, such as special characters in the search, too long names and invalid ids. The team reviewed the tests, adjusted them, and ran them to check that they pass and fail for the right reasons. The accessibility tests found a real problem with the language button (see [tests.md](tests.md)), which we then fixed.