diff --git a/README.md b/README.md index fb1836c..88e270b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ http://it2810-03.idi.ntnu.no/project2/ ## Core features -- **Plant Match:** The start page and the heart of the app. Instead of choosing from a long list, the user decides on one plant at a time by swiping right (♥) to match or left (✖) to skip, which makes finding plants quick and fun. The plants that fit the user's preferences best are shown first, so the user meets the plants they are most compatible with early. A badge on "My Matches" in the sidebar shows how many new matches the user has, so it is clear where the matches end up. +- **Plant Match:** The start page and the heart of the app. Instead of choosing from a long list, the user decides on one plant at a time by swiping right (♥) to match or left (✖) to skip, which makes finding plants quick and fun. The plants that fit the user's preferences best are shown first, so the user meets the plants they are most compatible with early. A badge on "My Matches" in the sidebar, and on the menu button on mobile, shows how many new matches the user has, so it is clear where the matches end up. - **My Matches:** One place for all the plants the user likes, whether they were matched on Plant Match or Explore Plants. It works as a personal collection the user can come back to, and search, filter and sort when it grows. diff --git a/docs/architecture.md b/docs/architecture.md index 371ad42..688601a 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -14,7 +14,7 @@ Perenual API → seedDataFetch.js ─┐ ▲ │ MongoDB driver (db.ts) │ - Express + Apollo Server (server.ts, port 3001) + Express + Apollo Server (app.ts, started by server.ts, port 3001) ▲ │ GraphQL over HTTP (/graphql), │ plant images as files (/images/:id) @@ -337,7 +337,7 @@ T03-Project-2/ │ │ ├── components/ # Reusable UI components, each in its own folder with a matching .css file (walkthrough/ has the guide and its steps) │ │ ├── context/ # UserProvider and useUser() for the current user, ErrorMessageProvider and useErrorMessage() for error messages │ │ ├── graphql/ # All GraphQL queries, mutations and fragments, grouped by domain (fragments/, plants/, user/), and apiUrl.ts with the API and image addresses -│ │ ├── hooks/ # Reusable logic without UI (useDebounce, useUrlParams, useExploreParams, useMyMatchesParams, useSessionState, useProfile, usePreferences, useMatchedPlants, usePlantDeck, useNewMatches, useDismissibleTooltip) +│ │ ├── hooks/ # Reusable logic without UI (useDebounce, useUrlParams, useExploreParams, useMyMatchesParams, useSessionState, useProfile, usePreferences, useMatchedPlants, usePlantDeck, usePageCursor, useNewMatches, useDismissibleTooltip) │ │ ├── i18n/ # Translation setup and locale files (no, en) │ │ ├── pages/ # One folder per page/route, each with a Page.tsx and a matching .css file │ │ │ ├── explorePlants/ # ExplorePlantsPage