Skip to content

Conversation

hasanmo
Copy link
Member

@hasanmo hasanmo commented Oct 1, 2026

Change

Adds shared TypeScript models for recipes, ingredients, instructions, authors, ratings and visibility.

Adds a varied mock dataset with public, private, saved and user-created recipes. The dataset also covers edge cases such as long titles, many tags, missing images and recipes without ratings.

These models and data can be reused by Explore, My Cookbook, Recipe Detail and Add Recipe.

Closes #

Verification

Commands actually run:

  • npm run format
  • npm run typecheck
  • npm run lint
  • npm run test
  • npm run build

Manual checks:

  • Confirmed that the dataset contains at least 12 recipes.
  • Confirmed that public, private, saved and user-created examples exist.
  • Confirmed that edge cases for long titles, many tags and missing images are included.
  • Confirmed that the dataset uses the shared Recipe type.
  • Confirmed that no any type is used.

Course requirements and AI use

This change supports the TypeScript, reusable frontend architecture and mock-data requirements for Delivery 1. One shared data shape prevents Explore, My Cookbook and Recipe Detail from defining separate or contradictory recipe structures.

AI was used to help structure the initial TypeScript model and suggest varied mock data. The generated suggestions were manually reviewed and adjusted against D1-06 and the project delivery plan. The team remains responsible for the final field choices, data quality and verification results.

Review

Please review whether the recipe data structure is suitable for the upcoming RecipeCard, Explore, My Cookbook, Recipe Detail and Add Recipe work.

Do not self-approve. Any requested changes or follow-up work should be recorded in the PR or as a separate issue.

@hasanmo hasanmo requested a review from a team as a code owner October 1, 2026 22:39
@hasanmo hasanmo changed the base branch from main to dev October 1, 2026 23:34
Copy link
Member

@oliverdr oliverdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use a mock server instead of keeping it hardcoded

@hasanmo hasanmo merged commit 0ea1b9e into dev Oct 2, 2026
2 checks passed
hasanmo added a commit that referenced this pull request Oct 2, 2026
* 2 set up global styles and design tokens (#3)

* feat: add design tokens and cascade layers

* feat: add global reset and base styles

* feat: add shared style utilities and wire global styles

* test: add visual style verification pages

* docs: document styling structure and usage

* fix: apply Prettier formatting for CI

* 5 add shared icon library (#6)

* feat: add shared icon library

* feat: add reusable Icon component

* test: add icon showcase for visual verification

* fix: apply Prettier formatting to icon files

* Add foundational UI components (#8)

feat: add foundational UI components

- add shared UI utility components
- add UI component test setup
- add test cleanup after each test
- added visual showcases, for design and responsive testing
- handle avatar initials safely
- apply Prettier formatting to UI components

* Add form navigation UI components (#10)

Add form navigation UI components
* feat: add form UI components

* feat: add selection and filter components

* feat: add navigation and menu components

* test: add form and navigation component verification

* fix: apply Prettier formatting to UI components

* 9 build the app shell and core routes (#11)

* feat(shell): add app shell and core routes

Refs: #9

* feat(shell): refine app shell structure and navigation

Refs: #9

* fix(shell): tune responsiveness of site-header

Refs: #9

* fix(web): add mobile viewport metadata

Refs: #9

* fix(shell): reduce space between header and content

Refs: #9

* Add feedback overlay UI components (#13)

* feat: add feedback UI components

* feat: add dialog and overlay components

* test: add feedback and overlay component verification

* docs: document shared UI component library

* fix: apply Prettier formatting to UI components

* feature(recipes): add recipe models and mock dataset (#15)

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* feature(auth): implement D1-05 mock authentication flow (#17)

* feature(auth): add mock authentication flow

* fix(auth): align mock user with shared data strategy

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* Add reusable RecipeCard and recipe metadata components (#18)

* feat: add reusable logo mark

* feat: add shared recipe metadata components

* feat: add reusable RecipeCard

* feat: add RecipeCard showcase

* test: add RecipeCard interaction tests

* fix: apply Prettier formatting to RecipeCard files

* comment(docs): add project concept and setup guide (#19)

* comment(docs): add project concept and setup guide

* comment(docs): Update readme doc

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

---------

Co-authored-by: Ole Stangeland <olestan@stud.ntnu.no>
Co-authored-by: Oliver Ørjavik <oliveror@stud.ntnu.no>
Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
hasanmo added a commit that referenced this pull request Oct 2, 2026
* 2 set up global styles and design tokens (#3)

* feat: add design tokens and cascade layers

* feat: add global reset and base styles

* feat: add shared style utilities and wire global styles

* test: add visual style verification pages

* docs: document styling structure and usage

* fix: apply Prettier formatting for CI

* 5 add shared icon library (#6)

* feat: add shared icon library

* feat: add reusable Icon component

* test: add icon showcase for visual verification

* fix: apply Prettier formatting to icon files

* Add foundational UI components (#8)

feat: add foundational UI components

- add shared UI utility components
- add UI component test setup
- add test cleanup after each test
- added visual showcases, for design and responsive testing
- handle avatar initials safely
- apply Prettier formatting to UI components

* Add form navigation UI components (#10)

Add form navigation UI components
* feat: add form UI components

* feat: add selection and filter components

* feat: add navigation and menu components

* test: add form and navigation component verification

* fix: apply Prettier formatting to UI components

* 9 build the app shell and core routes (#11)

* feat(shell): add app shell and core routes

Refs: #9

* feat(shell): refine app shell structure and navigation

Refs: #9

* fix(shell): tune responsiveness of site-header

Refs: #9

* fix(web): add mobile viewport metadata

Refs: #9

* fix(shell): reduce space between header and content

Refs: #9

* Add feedback overlay UI components (#13)

* feat: add feedback UI components

* feat: add dialog and overlay components

* test: add feedback and overlay component verification

* docs: document shared UI component library

* fix: apply Prettier formatting to UI components

* feature(recipes): add recipe models and mock dataset (#15)

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* feature(auth): implement D1-05 mock authentication flow (#17)

* feature(auth): add mock authentication flow

* fix(auth): align mock user with shared data strategy

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* Add reusable RecipeCard and recipe metadata components (#18)

* feat: add reusable logo mark

* feat: add shared recipe metadata components

* feat: add reusable RecipeCard

* feat: add RecipeCard showcase

* test: add RecipeCard interaction tests

* fix: apply Prettier formatting to RecipeCard files

* comment(docs): add project concept and setup guide (#19)

* comment(docs): add project concept and setup guide

* comment(docs): Update readme doc

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* style: fix Prettier formatting

* style: fix Prettier formatting

* test: align quality checks with auth pages

---------

Co-authored-by: Ole Stangeland <olestan@stud.ntnu.no>
Co-authored-by: Oliver Ørjavik <oliveror@stud.ntnu.no>
Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
hasanmo added a commit that referenced this pull request Oct 3, 2026
* 2 set up global styles and design tokens (#3)

* feat: add design tokens and cascade layers

* feat: add global reset and base styles

* feat: add shared style utilities and wire global styles

* test: add visual style verification pages

* docs: document styling structure and usage

* fix: apply Prettier formatting for CI

* 5 add shared icon library (#6)

* feat: add shared icon library

* feat: add reusable Icon component

* test: add icon showcase for visual verification

* fix: apply Prettier formatting to icon files

* Add foundational UI components (#8)

feat: add foundational UI components

- add shared UI utility components
- add UI component test setup
- add test cleanup after each test
- added visual showcases, for design and responsive testing
- handle avatar initials safely
- apply Prettier formatting to UI components

* Add form navigation UI components (#10)

Add form navigation UI components
* feat: add form UI components

* feat: add selection and filter components

* feat: add navigation and menu components

* test: add form and navigation component verification

* fix: apply Prettier formatting to UI components

* 9 build the app shell and core routes (#11)

* feat(shell): add app shell and core routes

Refs: #9

* feat(shell): refine app shell structure and navigation

Refs: #9

* fix(shell): tune responsiveness of site-header

Refs: #9

* fix(web): add mobile viewport metadata

Refs: #9

* fix(shell): reduce space between header and content

Refs: #9

* Add feedback overlay UI components (#13)

* feat: add feedback UI components

* feat: add dialog and overlay components

* test: add feedback and overlay component verification

* docs: document shared UI component library

* fix: apply Prettier formatting to UI components

* feature(recipes): add recipe models and mock dataset (#15)

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* feature(auth): implement D1-05 mock authentication flow (#17)

* feature(auth): add mock authentication flow

* fix(auth): align mock user with shared data strategy

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* Add reusable RecipeCard and recipe metadata components (#18)

* feat: add reusable logo mark

* feat: add shared recipe metadata components

* feat: add reusable RecipeCard

* feat: add RecipeCard showcase

* test: add RecipeCard interaction tests

* fix: apply Prettier formatting to RecipeCard files

* comment(docs): add project concept and setup guide (#19)

* comment(docs): add project concept and setup guide

* comment(docs): Update readme doc

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* style: fix Prettier formatting

* style: fix Prettier formatting

* test: align quality checks with auth pages

* fix(deploy): retry API health check during startup (#22)

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

---------

Co-authored-by: Ole Stangeland <olestan@stud.ntnu.no>
Co-authored-by: Oliver Ørjavik <oliveror@stud.ntnu.no>
Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
oliveror added a commit that referenced this pull request Oct 3, 2026
* 2 set up global styles and design tokens (#3)

* feat: add design tokens and cascade layers

* feat: add global reset and base styles

* feat: add shared style utilities and wire global styles

* test: add visual style verification pages

* docs: document styling structure and usage

* fix: apply Prettier formatting for CI

* 5 add shared icon library (#6)

* feat: add shared icon library

* feat: add reusable Icon component

* test: add icon showcase for visual verification

* fix: apply Prettier formatting to icon files

* Add foundational UI components (#8)

feat: add foundational UI components

- add shared UI utility components
- add UI component test setup
- add test cleanup after each test
- added visual showcases, for design and responsive testing
- handle avatar initials safely
- apply Prettier formatting to UI components

* Add form navigation UI components (#10)

Add form navigation UI components
* feat: add form UI components

* feat: add selection and filter components

* feat: add navigation and menu components

* test: add form and navigation component verification

* fix: apply Prettier formatting to UI components

* 9 build the app shell and core routes (#11)

* feat(shell): add app shell and core routes

Refs: #9

* feat(shell): refine app shell structure and navigation

Refs: #9

* fix(shell): tune responsiveness of site-header

Refs: #9

* fix(web): add mobile viewport metadata

Refs: #9

* fix(shell): reduce space between header and content

Refs: #9

* Add feedback overlay UI components (#13)

* feat: add feedback UI components

* feat: add dialog and overlay components

* test: add feedback and overlay component verification

* docs: document shared UI component library

* fix: apply Prettier formatting to UI components

* feature(recipes): add recipe models and mock dataset (#15)

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* feature(auth): implement D1-05 mock authentication flow (#17)

* feature(auth): add mock authentication flow

* fix(auth): align mock user with shared data strategy

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* Add reusable RecipeCard and recipe metadata components (#18)

* feat: add reusable logo mark

* feat: add shared recipe metadata components

* feat: add reusable RecipeCard

* feat: add RecipeCard showcase

* test: add RecipeCard interaction tests

* fix: apply Prettier formatting to RecipeCard files

* comment(docs): add project concept and setup guide (#19)

* comment(docs): add project concept and setup guide

* comment(docs): Update readme doc

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* style: fix Prettier formatting

* style: fix Prettier formatting

* test: align quality checks with auth pages

* fix(deploy): retry API health check during startup (#22)

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* Add Explore-page with pagination and search (#26)

* feat: add reusable pagination helper and tests

* feat: implement Explore search and recipe browsing

* docs: clarify AI use in development

* fix: improve Explore focus and status feedback

* fix: Applied prettier to ExplorePage

---------

Co-authored-by: Ole Stangeland <olestan@stud.ntnu.no>
Co-authored-by: Hasan Mohammad Fawzi <hasanmo@stud.ntnu.no>
Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
hasanmo added a commit that referenced this pull request Oct 13, 2026
…foundation (#49)

* 2 set up global styles and design tokens (#3)

* feat: add design tokens and cascade layers

* feat: add global reset and base styles

* feat: add shared style utilities and wire global styles

* test: add visual style verification pages

* docs: document styling structure and usage

* fix: apply Prettier formatting for CI

* 5 add shared icon library (#6)

* feat: add shared icon library

* feat: add reusable Icon component

* test: add icon showcase for visual verification

* fix: apply Prettier formatting to icon files

* Add foundational UI components (#8)

feat: add foundational UI components

- add shared UI utility components
- add UI component test setup
- add test cleanup after each test
- added visual showcases, for design and responsive testing
- handle avatar initials safely
- apply Prettier formatting to UI components

* Add form navigation UI components (#10)

Add form navigation UI components
* feat: add form UI components

* feat: add selection and filter components

* feat: add navigation and menu components

* test: add form and navigation component verification

* fix: apply Prettier formatting to UI components

* 9 build the app shell and core routes (#11)

* feat(shell): add app shell and core routes

Refs: #9

* feat(shell): refine app shell structure and navigation

Refs: #9

* fix(shell): tune responsiveness of site-header

Refs: #9

* fix(web): add mobile viewport metadata

Refs: #9

* fix(shell): reduce space between header and content

Refs: #9

* Add feedback overlay UI components (#13)

* feat: add feedback UI components

* feat: add dialog and overlay components

* test: add feedback and overlay component verification

* docs: document shared UI component library

* fix: apply Prettier formatting to UI components

* feature(recipes): add recipe models and mock dataset (#15)

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* feature(auth): implement D1-05 mock authentication flow (#17)

* feature(auth): add mock authentication flow

* fix(auth): align mock user with shared data strategy

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* Add reusable RecipeCard and recipe metadata components (#18)

* feat: add reusable logo mark

* feat: add shared recipe metadata components

* feat: add reusable RecipeCard

* feat: add RecipeCard showcase

* test: add RecipeCard interaction tests

* fix: apply Prettier formatting to RecipeCard files

* comment(docs): add project concept and setup guide (#19)

* comment(docs): add project concept and setup guide

* comment(docs): Update readme doc

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* style: fix Prettier formatting

* style: fix Prettier formatting

* test: align quality checks with auth pages

* fix(deploy): retry API health check during startup (#22)

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* Add Explore-page with pagination and search (#26)

* feat: add reusable pagination helper and tests

* feat: implement Explore search and recipe browsing

* docs: clarify AI use in development

* fix: improve Explore focus and status feedback

* fix: Applied prettier to ExplorePage

* Explore filters, URL state, and Save to Cookbook (#31)

* feat(explore): add responsive filter and sort controls

* feat(explore): implement browse query and URL state

* feat(explore): add shared mock save state

* docs(explore): add server integration notes

* 35 frontend for add recipe (#40)

* feat: add initial RecipeCreatePage

Refs: #35

* chore(add recipe): update recipe routing in App

Refs: #35

* feat(add recipe): add image preview

Refs: #35

* chore(add recipe): resize instruction box

Refs: #35

* feat(add recipe): add custom styling to image selector

Refs: #35

* feat(add recipe): add drag-and-drop for images and update styling

Refs: #35

* feat(add recipe): add re-order of ingredients and instructions

Refs: #35

* Implement My Cookbook Frontend with Mock Data (#43)

* feat: implement cookbook browsing with shared recipe logic

* fix: refine cookbook filters and navigation semantics

* fix: make sheet body scroll within viewport

* test(cookbook): cover apply, clear and invalid mobile filters

* refactor(header): use LogoMark and LinkButton (#45)

* D1-14: Implement Recipe Detail (#46)

* feat(recipe-detail): implement recipe detail page

* feat(recipe-detail): improve accessibility, add test recipe, and update tests

* feat(recipe-detail): refine serving amount rounding

* style(recipe-detail): refine layout and responsive sizing

* test(recipe-detail): update tests for responsive controls

* test(e2e): update recipe detail smoke test to use a real recipe route

* Hasan/feat/database auth (#41)

* feat(auth): add database authentication and persistent sessions

* fix(auth): address review feedback

* fix(auth): protect routes and await session restoration

* fix(routes): use cookbook and recipe detail pages

* fix(routes): render recipe detail page after merge

* fix(e2e): align smoke tests with recipe and protected routes

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

* Added 404-handling and Not Found Page

* Hasan/feat/database model (#47)

* feat(auth): add database authentication and persistent sessions

* fix(auth): address review feedback

* feat(db): add recipe database model and migration

* fix(db): address recipe model review feedback

---------

Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>

---------

Co-authored-by: Ole Stangeland <olestan@stud.ntnu.no>
Co-authored-by: Oliver Ørjavik <oliveror@stud.ntnu.no>
Co-authored-by: Hasan Mohammad Fawzi <hasan.fawzi@hoglund.no>
@oliveror oliveror deleted the feature/d1-06-recipe-mock-data branch October 30, 2026 10:45
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants