Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 <Name>Page.tsx and a matching .css file
│ │ │ ├── explorePlants/ # ExplorePlantsPage
Expand Down
Loading