From dd5badee740f25c87c06b5e4a3aa1648f2e80136 Mon Sep 17 00:00:00 2001 From: Robert Andreas Kyllo Date: Thu, 12 Nov 2026 20:37:02 +0100 Subject: [PATCH 1/5] docs: #26 polish README for peer review --- README.md | 64 +++++++++++++++++++++++++++++++++++++----------- docs/AI-USAGE.md | 1 + 2 files changed, 51 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index bc4b2ef..3ffee91 100644 --- a/README.md +++ b/README.md @@ -9,23 +9,50 @@ country and whether an album has reviews. IT2810 (NTNU) Project 2. Group T19: `erikhfj`, `robertky`, `evenkkl`, `rachelks`. -| | | -| ----------------- | -------------------------------------------------------------------------------- | -| Current milestone | **M3 – Beta: search, paging, sorting, filtering, accessibility**, due 30 October | -| Live prototype | http://it2810-19.idi.ntnu.no/project2 | -| Workflow | [`docs/WORKFLOW.md`](docs/WORKFLOW.md) | -| AI usage log | [`docs/AI-USAGE.md`](docs/AI-USAGE.md) | -| Running on the VM | [`docs/VM-setup.md`](docs/VM-setup.md) | +| | | +| ------------------- | -------------------------------------------------------- | +| Current milestone | **M4 – final prototype and test suite**, due 13 November | +| Live prototype | http://it2810-19.idi.ntnu.no/project2 | +| Architecture / ADRs | [`docs/architecture.md`](docs/architecture.md) | +| Data model | [`docs/data-model.md`](docs/data-model.md) | +| UI specification | [`docs/ui-specification.md`](docs/ui-specification.md) | +| Scalability | [`docs/scalability.md`](docs/scalability.md) | +| Workflow | [`docs/WORKFLOW.md`](docs/WORKFLOW.md) | +| AI usage log | [`docs/AI-USAGE.md`](docs/AI-USAGE.md) | +| Running on the VM | [`docs/VM-setup.md`](docs/VM-setup.md) | + +## Screenshots + +The screenshots show the catalog on desktop and mobile, plus an album detail +page. The full set is in [`docs/images/`](docs/images/). + +

+ Crate album catalog on desktop + Crate album catalog on a mobile screen + Crate album detail page +

## Getting started -Requires Node.js 24+, pnpm 10.33.0 and PostgreSQL. Run commands from the repository root unless stated otherwise. +### Run locally in about 5 minutes + +With Node.js 24+, pnpm 10.33.0 and a running PostgreSQL server already +installed, the steps below start the app from a clean clone. If pnpm is not +installed, install the version used by this repository with npm: + +```bash +npm install --global pnpm@10.33.0 +``` + +The first dependency download may take a little longer. ```bash pnpm install ``` -Create a local PostgreSQL database and user. Connect as a PostgreSQL administrator (for example, `psql -U postgres`) and run: +Create a local PostgreSQL database and user. Connect as a PostgreSQL +administrator (for example, `psql -U postgres -d postgres`; some Homebrew +installations use `psql -d postgres` with your macOS username) and run: ```sql CREATE ROLE t19 WITH LOGIN PASSWORD 'choose-a-local-password'; @@ -331,7 +358,10 @@ The two `AlbumDetailPage` rows represent the separate chunks for the album detai **Personal crate:** Users can add or remove albums from their crate on both search results and album detail pages, and a crate page lists everything they have saved, newest first, with paging. The API returns only the requesting user's items. User identity is simulated using a locally stored ID rather than a login system. -**Planned for M4:** Browsing albums without entering a search term. +**Browsing:** Discover displays the catalog even when the search field is +empty. Users can filter and sort those results without first entering a search +term. Search terms, filters and sorting remain in the URL when navigating +between Discover and an album page. ### Backend search behavior @@ -358,15 +388,21 @@ PostgreSQL and the GraphQL API run directly on the group VM. Apache serves the f CI uses a self-hosted runner on the VM. Pushes to `main` run the project checks and deploy the frontend and backend. See [VM setup](docs/VM-setup.md) for deployment and verification steps. -## Working in this repository +## Contributing `main` is protected. Create a branch and open a pull request: ```bash -git checkout -b my-feature -git push -u origin my-feature +git checkout -b docs/26-readme-polish +git add README.md +git commit -m "docs: #26 polish README for peer review" +git push -u origin docs/26-readme-polish ``` Before merging, a group member must approve the PR and all review conversations must be resolved. New commits dismiss earlier approvals, so request another review after pushing changes. -See [`docs/WORKFLOW.md`](docs/WORKFLOW.md) for branch naming, commit conventions and review expectations. +Use an issue-based branch (`feat/-short-name`, `fix/…` or `docs/…`), a +Conventional Commit that references the issue, and a pull request. A different +group member reviews it; resolve review conversations and pass the checks before +merging. The [workflow guide](docs/WORKFLOW.md) has the full branch, commit, +PR and review conventions. diff --git a/docs/AI-USAGE.md b/docs/AI-USAGE.md index 00dcd09..22770a5 100644 --- a/docs/AI-USAGE.md +++ b/docs/AI-USAGE.md @@ -99,6 +99,7 @@ the part that matters most. | 2026-11-10 | rachelks | Codex (ChatGPT) | Assisted with reviewing PR #86 and implementing and testing album cover images for issue #23, including responsive images and fallback behavior. | | 2026-11-11 | rachelks | Codex (ChatGPT) | Assisted with investigating Lighthouse results for issue #23 after Roberts comment on the PR. This included improving album detail loading performance, reviewing changes and documenting the test results. | | 2026-11-12 | robertky | Codex (ChatGPT) | Helped preserve the original 500-album MusicBrainz catalog while adding country metadata to the 70 release groups missing from the regenerated snapshot. I reviewed the selected IDs and imported metadata. | +| 2026-11-13 | robertky | Codex (ChatGPT) | Assisted me with #26: polished the README, added screenshots and project-document links, and verified the local setup from a clean clone. I reviewed the changes and updated the implementation notes to reflect merged browsing and country-filter features. | ## Notes From a6e7d7fc23b02d4656ab280392b1492ef2bee8d3 Mon Sep 17 00:00:00 2001 From: Robert Andreas Kyllo Date: Fri, 13 Nov 2026 14:49:48 +0100 Subject: [PATCH 2/5] docs: align README screenshots at the top --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3ffee91..401bd88 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ The screenshots show the catalog on desktop and mobile, plus an album detail page. The full set is in [`docs/images/`](docs/images/).

- Crate album catalog on desktop - Crate album catalog on a mobile screen - Crate album detail page + Crate album catalog on desktop + Crate album catalog on a mobile screen + Crate album detail page

## Getting started From 245fd86759720dcd1bbaab993895a382384c37d3 Mon Sep 17 00:00:00 2001 From: Robert Andreas Kyllo Date: Fri, 13 Nov 2026 15:32:19 +0100 Subject: [PATCH 3/5] docs: group README screenshots into aligned rows --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 401bd88..2be7892 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,21 @@ IT2810 (NTNU) Project 2. Group T19: `erikhfj`, `robertky`, `evenkkl`, `rachelks` The screenshots show the catalog on desktop and mobile, plus an album detail page. The full set is in [`docs/images/`](docs/images/). -

- Crate album catalog on desktop - Crate album catalog on a mobile screen - Crate album detail page -

+ + + + + + + + +
+ Crate album catalog on desktop + + Crate album catalog on a mobile screen +
+ Crate album detail page +
## Getting started From fad581dd7bdb68bd1bdca8cb61248b3da8251bec Mon Sep 17 00:00:00 2001 From: Robert Andreas Kyllo Date: Fri, 13 Nov 2026 15:41:21 +0100 Subject: [PATCH 4/5] docs: tighten README screenshot layout --- README.md | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 2be7892..598a4d1 100644 --- a/README.md +++ b/README.md @@ -26,21 +26,13 @@ IT2810 (NTNU) Project 2. Group T19: `erikhfj`, `robertky`, `evenkkl`, `rachelks` The screenshots show the catalog on desktop and mobile, plus an album detail page. The full set is in [`docs/images/`](docs/images/). - - - - - - - - -
- Crate album catalog on desktop - - Crate album catalog on a mobile screen -
- Crate album detail page -
+

+ Crate album catalog on desktop + Crate album catalog on a mobile screen +

+

+ Crate album detail page +

## Getting started From 995bec91d6f1a05dfd8c87fad974abcd16261624 Mon Sep 17 00:00:00 2001 From: Robert Andreas Kyllo Date: Fri, 13 Nov 2026 15:45:17 +0100 Subject: [PATCH 5/5] docs: give README screenshots separate sections --- README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 598a4d1..c507c0a 100644 --- a/README.md +++ b/README.md @@ -26,13 +26,17 @@ IT2810 (NTNU) Project 2. Group T19: `erikhfj`, `robertky`, `evenkkl`, `rachelks` The screenshots show the catalog on desktop and mobile, plus an album detail page. The full set is in [`docs/images/`](docs/images/). -

- Crate album catalog on desktop - Crate album catalog on a mobile screen -

-

- Crate album detail page -

+### Desktop catalog + +

Crate album catalog on desktop

+ +### Mobile catalog + +

Crate album catalog on a mobile screen

+ +### Album detail + +

Crate album detail page

## Getting started