diff --git a/README.md b/README.md index bc4b2ef..c507c0a 100644 --- a/README.md +++ b/README.md @@ -9,23 +9,56 @@ 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/). + +### Desktop catalog + +

Crate album catalog on desktop

+ +### Mobile catalog + +

Crate album catalog on a mobile screen

+ +### Album detail + +

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 +364,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 +394,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