diff --git a/backend/package-lock.json b/backend/package-lock.json index fa82f41f..b5a989db 100644 --- a/backend/package-lock.json +++ b/backend/package-lock.json @@ -1114,6 +1114,7 @@ "integrity": "sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==", "dev": true, "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/oxc-project" } @@ -1194,6 +1195,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1211,6 +1213,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1228,6 +1231,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1245,6 +1249,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1262,6 +1267,7 @@ "os": [ "freebsd" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1279,6 +1285,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1296,6 +1303,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1313,6 +1321,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1330,6 +1339,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1347,6 +1357,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1364,6 +1375,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1381,6 +1393,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1398,6 +1411,7 @@ "os": [ "openharmony" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1415,6 +1429,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1432,6 +1447,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": "^20.19.0 || >=22.12.0" } @@ -1441,7 +1457,8 @@ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@types/chai": { "version": "5.2.3", @@ -1494,7 +1511,6 @@ "integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~8.9.0" } @@ -1559,7 +1575,6 @@ "integrity": "sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.72.1", "@typescript-eslint/types": "8.72.1", @@ -1751,7 +1766,6 @@ "integrity": "sha512-4KpkGdIrSqBihx/JyP/e+S+IKB98etg1XDQiLAxksLfcShnwi1VReGeOT9NI43hLHbknosKp/1CCLn9Zgcs8mg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@bcoe/v8-coverage": "^1.0.2", "@vitest/istanbul-lib-coverage": "^1.0.2", @@ -1854,7 +1868,6 @@ "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1986,7 +1999,6 @@ "integrity": "sha512-AIPKioV7/Y/8KfZ3AAhjPJxLLbY49S64Ym5DakZlUg75qQiTgUq9hEJoEwa4eUezPUlXRy/i5NpsKvo9jgKmoA==", "dev": true, "license": "Apache-2.0", - "peer": true, "peerDependencies": { "bare-abort-controller": "*" }, @@ -2334,6 +2346,7 @@ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", "dev": true, "license": "Apache-2.0", + "peer": true, "engines": { "node": ">=8" } @@ -2486,7 +2499,6 @@ "integrity": "sha512-UohDjD4zSzEwhf58M3O7vc/ycc8O1I7dNlhtD0WxE8Px8EHNJKtUwzBqrzeGhisRuv2ag4sAYswszCJRgKXYUg==", "dev": true, "license": "MIT", - "peer": true, "workspaces": [ "packages/*" ], @@ -2953,7 +2965,6 @@ "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.14.2.tgz", "integrity": "sha512-Chq1s4CY7jmh8gO2qvLIJyfCDIN+EHLFW/9iShnp1z8FjBQMoodWP1kDC36VAMXXIvAjj4ARa7ntfAV2BrjsbA==", "license": "MIT", - "peer": true, "engines": { "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } @@ -3195,7 +3206,6 @@ "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@keyv/serialize": "^1.1.1" } @@ -3220,6 +3230,7 @@ "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", "dev": true, "license": "MPL-2.0", + "peer": true, "dependencies": { "detect-libc": "^2.0.3" }, @@ -3257,6 +3268,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3278,6 +3290,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3299,6 +3312,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3320,6 +3334,7 @@ "os": [ "freebsd" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3341,6 +3356,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3362,6 +3378,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3383,6 +3400,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3404,6 +3422,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3425,6 +3444,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3446,6 +3466,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3467,6 +3488,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">= 12.0.0" }, @@ -3805,6 +3827,7 @@ } ], "license": "MIT", + "peer": true, "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -4013,7 +4036,8 @@ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true, - "license": "ISC" + "license": "ISC", + "peer": true }, "node_modules/picomatch": { "version": "4.0.7", @@ -4126,6 +4150,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "nanoid": "^3.3.20", "picocolors": "^1.1.1", @@ -4220,6 +4245,7 @@ "integrity": "sha512-6odND+fel5zVw3I4Yc2e69gvguDnX0CAAGiNDZSq4ik5WUcaLrkD2GLuog0XcODbor31hZ5ayEMgVDno+KPV5g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@oxc-project/types": "=0.155.0", "@rolldown/pluginutils": "^1.0.0" @@ -4612,7 +4638,6 @@ "integrity": "sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "~0.28.0" }, @@ -4690,7 +4715,6 @@ "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -4843,7 +4867,6 @@ "integrity": "sha512-cPODOMF8YnkiiYtDdHo6n4wWmBrOBBbOIYH2d33M4l3CdNn72h+qMmO6uXffUN6A5AZFXNND/d+krS9mgkXRfg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/chai": "^5.2.2", "@vitest/mocker": "5.0.5", diff --git a/docs/ai-usage.md b/docs/ai-usage.md index 87fe8f34..c7beb63c 100644 --- a/docs/ai-usage.md +++ b/docs/ai-usage.md @@ -9,7 +9,7 @@ AI was used as an assistant throughout the development of the web application. T - **Writing code:** suggestions for code, which were reviewed by the team before they were used. - **Writing and reviewing tests:** drafting test files with mocked dependencies, and explaining the reasoning behind the test structure and snapshot testing. AI also suggested what should be tested to get better test coverage. - **Writing documentation:** drafting and refining documentation and comments in the code. -- **Generating pictures:** the avatar pictures on the profile page were made with AI. +- **Generating pictures:** the avatar pictures on the profile page and the placeholder picture for plants without an image were made with AI. - **Refactoring:** splitting large files containing a lot of logic into smaller components and hooks. ## Examples @@ -24,9 +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. -### Avatar pictures - -The avatar pictures that the user can choose between on the profile page were generated with AI. We chose the plants and the style, and picked the pictures that fit the design of the app. ### Tests and end-to-end tests diff --git a/docs/architecture.md b/docs/architecture.md index 2772d244..6f84297e 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -202,6 +202,14 @@ When the app starts, `UserProvider` reads `userId` from `localStorage` and runs - **Small responses.** GraphQL returns only the requested fields, and fields we do not use are kept out of the schema. - **Small user documents.** Matches are stored as plant ids, and user updates only touch one document. - **Less traffic from the client.** Search input is debounced, results are cached by Apollo, and pages other than the start page are lazy-loaded. +- **Limitation: plant images are stored as base64 in the database.** Each plant image is stored as a base64 data URI in `imageData` (see [Data source: the Perenual API](#data-source-the-perenual-api)), instead of as an image file on the VM. This limits how well the solution scales: + - **More space:** Base64 turns every 3 bytes into 4 characters, so an image takes about 33% more space than the same file on disk. This makes the database larger, and the difference grows with every plant that is added. + - **Larger responses:** The resolver returns `imageData` in the `imageURL` field, so the images are sent inside the GraphQL response. A page of 12 plants therefore contains 12 full images, and the response cannot be returned before all of them are included. The browser cannot start loading one image while it waits for the rest, or skip images that are not visible. + - **Weaker caching:** Image files could be cached by the browser and Apache, and reused across pages and visits. The base64 strings are instead stored in the Apollo cache together with the rest of the data, and are downloaded again each time a query is not answered from the cache. + + **Why we chose it anyway:** The image URLs from Perenual expire after 24 hours, so the images had to be stored by us. Storing them in the same document as the rest of the plant data was the simplest solution: the seed script writes everything to MongoDB in one step, the backend and the frontend need no extra setup to serve or find image files, and the image always belongs to the right plant, since the plant and its image are stored and deleted together. With the number of plants in our database and with a reasonable number of more, the extra space and larger responses are acceptable, and pagination keeps each response limited to one page. + + **How it could be improved:** If the collection grows much larger, the images should be stored as files on the VM (or in a separate file storage) and served by Apache, with only the path stored in MongoDB. The images would then take less space, be cached by the browser, and load separately from the plant data. ## Data source: the Perenual API diff --git a/docs/tests.md b/docs/tests.md index f0aa11c6..939252f7 100644 --- a/docs/tests.md +++ b/docs/tests.md @@ -224,6 +224,7 @@ Each file covers one scenario, and API and UI tests for the same feature come in | Profile and avatar | `apiUserProfile` | `uiUserProfile` | | Matching and removing plants | `apiMatchAndRemovePlant` | `uiMatchAndRemovePlant` | | Accessibility on all pages | – | `uiAccessibility` | +| Pictures load | – | `uiImages` | **ExplorePlants (`uiExplorePlants`):** one continuous user journey that tests pagination, filtering, search, the detail view, sorting and reset, and that changing a filter on page 2 takes the user back to page 1. @@ -238,6 +239,11 @@ The test user has no preferences, so PlantMatch shows the plants in random order Saving the profile is debounced by 500 ms, and the text is also saved at once when a field loses focus. The test waits until the save request has reached the backend before reloading, instead of waiting a fixed time, so it does not depend on the length of the debounce. +**Pictures (`uiImages`):** checks that every picture in the app is actually downloaded and decoded by the browser: the default profile picture, the seven avatars, the six pictures from the plant owner test and the placeholder on plant cards without an image. The component tests run in jsdom, which never loads images, so they only check the `src` attribute and would still pass if a file was missing or broken. An image counts as loaded when it has a natural width larger than 0. + +- The pictures from the plant owner test are only shown after the test is finished, so the test sets each result as profile picture through the API, reloads the profile page and checks the picture shown there. +- The placeholder is a CSS background, so the test reads the URL the browser uses from the card's `::before` element and loads it as an image. + **API tests:** - **explorePlants**: default sorting and page size, `offset`, case-insensitive search, regex characters treated as plain text, the watering, care level and sunlight filters, the sort orders, and that plants without a care level are sorted last. diff --git a/e2e/uiImages.spec.ts b/e2e/uiImages.spec.ts new file mode 100644 index 00000000..cf026857 --- /dev/null +++ b/e2e/uiImages.spec.ts @@ -0,0 +1,111 @@ +import { test, expect, type Locator, type Page } from "@playwright/test"; + +// Checks that the pictures in the app actually load in the browser: the avatars +// on the profile page, the pictures from the plant owner test, and the +// placeholder shown on plant cards without an image. +// The unit tests run in jsdom, which never downloads images, so they only +// check the src attribute. A missing or broken file is only found here. + +const BACKEND_GRAPHQL_URL = "http://localhost:3002/graphql"; + +// The results of the plant owner test, which can also be used as profile picture +const QUIZ_RESULTS = [ + "cityMinimalist", + "averageCityGardener", + "cityGardenerDreaming", + "countryMinimalist", + "averageCountryGardener", + "gardenExpert", +]; + +// An image has loaded when the browser has downloaded and decoded it, +// which gives it a natural width. A broken or missing file has width 0. +async function expectImageLoaded(image: Locator) { + await expect + .poll(() => + image.evaluate( + (img: HTMLImageElement) => img.complete && img.naturalWidth > 0, + ), + ) + .toBe(true); +} + +// Loads the given URL as an image in the page and returns its natural width, +// or 0 if it could not be loaded +function loadImageWidth(page: Page, url: string) { + return page.evaluate( + (src) => + new Promise((resolve) => { + const img = new Image(); + img.onload = () => resolve(img.naturalWidth); + img.onerror = () => resolve(0); + img.src = src; + }), + url, + ); +} + +test("the default profile picture and all avatars load", async ({ page }) => { + await page.goto("#/profile"); + + // New users have the default profile picture + await expectImageLoaded(page.locator("img.profile-img")); + + await page + .getByRole("button", { name: /edit profile|endre profil/i }) + .click(); + + const avatars = page.locator("button.avatar-option img"); + await expect(avatars).toHaveCount(7); + for (const avatar of await avatars.all()) { + await expectImageLoaded(avatar); + } +}); + +test("all pictures from the plant owner test load", async ({ page }) => { + await page.goto("#/profile"); + await expect(page.locator("img.profile-img")).toBeVisible(); + + // The app stores the id of the user it created in localStorage + const userId = await page.evaluate(() => localStorage.getItem("userId")); + expect(userId).toBeTruthy(); + + // Each result is set as profile picture through the API, and the profile + // page then shows the picture of that result + for (const result of QUIZ_RESULTS) { + const response = await page.request.post(BACKEND_GRAPHQL_URL, { + data: { + query: `mutation ($userId: ID!, $profilePicture: String) { + updateUserProfile(userId: $userId, profilePicture: $profilePicture) { id } + }`, + variables: { userId, profilePicture: result }, + }, + }); + expect((await response.json()).errors).toBeUndefined(); + + await page.reload(); + const profileImage = page.locator("img.profile-img"); + // The default picture is shown until the user is loaded, so wait for the new one + await expect(profileImage).not.toHaveAttribute("src", /profile/); + await expectImageLoaded(profileImage); + } +}); + +test("the placeholder picture loads on plant cards without an image", async ({ + page, +}) => { + await page.goto("#/explorePlants"); + + // None of the test plants has an image, so every card shows the placeholder + const missingImage = page.locator(".plant-card-image-missing").first(); + await expect(missingImage).toBeVisible(); + + // The placeholder is a CSS background, so read the URL the browser actually uses + const backgroundImage = await missingImage.evaluate( + (element) => getComputedStyle(element, "::before").backgroundImage, + ); + const url = backgroundImage.match(/url\("?(.*?)"?\)/)?.[1]; + expect(url).toContain("plant-placeholder.png"); + + expect(await loadImageWidth(page, url!)).toBeGreaterThan(0); +}); diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 9ef16e6a..1fc7b788 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -148,7 +148,6 @@ "version": "7.29.7", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", @@ -458,7 +457,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=20.19.0" }, @@ -503,7 +501,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=20.19.0" } @@ -1115,7 +1112,8 @@ "node_modules/@types/aria-query": { "version": "5.0.4", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/@types/chai": { "version": "5.2.3", @@ -1150,7 +1148,6 @@ "version": "24.13.6", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~7.18.0" } @@ -1159,7 +1156,6 @@ "version": "19.3.0", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "csstype": "^3.2.2" } @@ -1168,7 +1164,6 @@ "version": "19.3.0", "dev": true, "license": "MIT", - "peer": true, "peerDependencies": { "@types/react": "^19.3.0" } @@ -1212,7 +1207,6 @@ "version": "8.70.0", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.70.0", "@typescript-eslint/types": "8.70.0", @@ -1425,7 +1419,6 @@ "version": "5.0.5", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@bcoe/v8-coverage": "^1.0.2", "@vitest/istanbul-lib-coverage": "^1.0.2", @@ -1546,7 +1539,6 @@ "version": "8.18.0", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -1581,6 +1573,7 @@ "version": "5.0.1", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=8" } @@ -1589,6 +1582,7 @@ "version": "5.2.0", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=10" }, @@ -1683,7 +1677,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "baseline-browser-mapping": "^2.11.23", "caniuse-lite": "^1.0.30001810", @@ -1845,7 +1838,8 @@ "node_modules/dom-accessibility-api": { "version": "0.5.16", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/electron-to-chromium": { "version": "1.5.433", @@ -1891,7 +1885,6 @@ "version": "10.11.0", "dev": true, "license": "MIT", - "peer": true, "workspaces": [ "packages/*" ], @@ -2183,7 +2176,6 @@ "node_modules/graphql": { "version": "16.14.2", "license": "MIT", - "peer": true, "engines": { "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } @@ -2265,7 +2257,6 @@ } ], "license": "MIT", - "peer": true, "peerDependencies": { "typescript": "^5 || ^6 || ^7" }, @@ -2415,7 +2406,6 @@ "version": "5.6.0", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@keyv/serialize": "^1.1.1" } @@ -2715,6 +2705,7 @@ "version": "1.5.0", "dev": true, "license": "MIT", + "peer": true, "bin": { "lz-string": "bin/bin.js" } @@ -2947,6 +2938,7 @@ "version": "27.5.1", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", @@ -2983,7 +2975,6 @@ "node_modules/react": { "version": "19.3.0", "license": "MIT", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -2991,7 +2982,6 @@ "node_modules/react-dom": { "version": "19.3.0", "license": "MIT", - "peer": true, "dependencies": { "scheduler": "^0.28.0" }, @@ -3036,7 +3026,8 @@ "node_modules/react-is": { "version": "17.0.2", "dev": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/react-router": { "version": "7.18.4", @@ -3309,7 +3300,6 @@ "version": "6.0.3", "devOptional": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -3401,7 +3391,6 @@ "version": "8.3.0", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "lightningcss": "^1.33.0", "picomatch": "^4.0.7", @@ -3478,7 +3467,6 @@ "version": "5.0.5", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/chai": "^5.2.2", "@vitest/mocker": "5.0.5", @@ -3662,7 +3650,6 @@ "version": "4.6.5", "dev": true, "license": "MIT", - "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/frontend/public/plant-placeholder.png b/frontend/public/plant-placeholder.png index c9a0f74c..eadc554b 100644 Binary files a/frontend/public/plant-placeholder.png and b/frontend/public/plant-placeholder.png differ diff --git a/frontend/src/assets/avatars/anthurium.png b/frontend/src/assets/avatars/anthurium.png index 321b47dd..14af55e8 100644 Binary files a/frontend/src/assets/avatars/anthurium.png and b/frontend/src/assets/avatars/anthurium.png differ diff --git a/frontend/src/assets/avatars/fern.png b/frontend/src/assets/avatars/fern.png index ee25fa9e..96a33141 100644 Binary files a/frontend/src/assets/avatars/fern.png and b/frontend/src/assets/avatars/fern.png differ diff --git a/frontend/src/assets/avatars/monstera.png b/frontend/src/assets/avatars/monstera.png index 1a2ecf06..a68d8e31 100644 Binary files a/frontend/src/assets/avatars/monstera.png and b/frontend/src/assets/avatars/monstera.png differ diff --git a/frontend/src/assets/avatars/orchid.png b/frontend/src/assets/avatars/orchid.png index e56d69f1..be1b8484 100644 Binary files a/frontend/src/assets/avatars/orchid.png and b/frontend/src/assets/avatars/orchid.png differ diff --git a/frontend/src/assets/avatars/pothos.png b/frontend/src/assets/avatars/pothos.png index a929145a..bba4626f 100644 Binary files a/frontend/src/assets/avatars/pothos.png and b/frontend/src/assets/avatars/pothos.png differ diff --git a/frontend/src/assets/avatars/profile.png b/frontend/src/assets/avatars/profile.png index ea544442..1139c813 100644 Binary files a/frontend/src/assets/avatars/profile.png and b/frontend/src/assets/avatars/profile.png differ diff --git a/frontend/src/assets/avatars/snake-plant.png b/frontend/src/assets/avatars/snake-plant.png index 9c758f42..52d6c0c4 100644 Binary files a/frontend/src/assets/avatars/snake-plant.png and b/frontend/src/assets/avatars/snake-plant.png differ diff --git a/frontend/src/assets/avatars/succulent.png b/frontend/src/assets/avatars/succulent.png index d1b7b4e0..d0ff9de6 100644 Binary files a/frontend/src/assets/avatars/succulent.png and b/frontend/src/assets/avatars/succulent.png differ diff --git a/frontend/src/assets/plantQuiz/average_city_gardener.png b/frontend/src/assets/plantQuiz/average_city_gardener.png index 2c414045..2b458e88 100644 Binary files a/frontend/src/assets/plantQuiz/average_city_gardener.png and b/frontend/src/assets/plantQuiz/average_city_gardener.png differ diff --git a/frontend/src/assets/plantQuiz/average_country_gardener.png b/frontend/src/assets/plantQuiz/average_country_gardener.png index 67619dbb..1ce89388 100644 Binary files a/frontend/src/assets/plantQuiz/average_country_gardener.png and b/frontend/src/assets/plantQuiz/average_country_gardener.png differ diff --git a/frontend/src/assets/plantQuiz/city_dreamer.png b/frontend/src/assets/plantQuiz/city_dreamer.png index 37636bbe..fbdb1c5a 100644 Binary files a/frontend/src/assets/plantQuiz/city_dreamer.png and b/frontend/src/assets/plantQuiz/city_dreamer.png differ diff --git a/frontend/src/assets/plantQuiz/city_minimalist.png b/frontend/src/assets/plantQuiz/city_minimalist.png index ee627d7b..116350be 100644 Binary files a/frontend/src/assets/plantQuiz/city_minimalist.png and b/frontend/src/assets/plantQuiz/city_minimalist.png differ diff --git a/frontend/src/assets/plantQuiz/country_minimalist.png b/frontend/src/assets/plantQuiz/country_minimalist.png index 6389e7e0..a3ba243d 100644 Binary files a/frontend/src/assets/plantQuiz/country_minimalist.png and b/frontend/src/assets/plantQuiz/country_minimalist.png differ diff --git a/frontend/src/assets/plantQuiz/garden_expert.png b/frontend/src/assets/plantQuiz/garden_expert.png index 25b6687c..fdda2b99 100644 Binary files a/frontend/src/assets/plantQuiz/garden_expert.png and b/frontend/src/assets/plantQuiz/garden_expert.png differ diff --git a/package-lock.json b/package-lock.json index 27f9eaa3..1a9f7802 100644 --- a/package-lock.json +++ b/package-lock.json @@ -161,7 +161,6 @@ "integrity": "sha512-AIPKioV7/Y/8KfZ3AAhjPJxLLbY49S64Ym5DakZlUg75qQiTgUq9hEJoEwa4eUezPUlXRy/i5NpsKvo9jgKmoA==", "dev": true, "license": "Apache-2.0", - "peer": true, "peerDependencies": { "bare-abort-controller": "*" }, @@ -814,7 +813,6 @@ "integrity": "sha512-BC4s8y6SEVA6Q1rSxZTto8hI1KUI3xXlHGZgvGqP4IqPdI/a6FX9H29IDNz7vKo9l21b6LfYosScPL6M3xxyDQ==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "playwright-core": "cli.js" },