You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our client currently has a notion page with a table showing the library titles, inventory locations, and the number of copies available at each one. It will be helpful if our site has a similar feature
What to do
We are no longer using "fake" data and are now using data from the seed folder (which is stored in backend). The first part of this ticket will be adding some more examples so we can populate a good sized table. Attached is the spreadsheet of example data.
Also attached is a video of how to view the inventory data
how_to_view_inventory.webm
Seed data by editing the examples in anthology.seed.ts, inventories.seed.ts, and inventoryHoldings.seed.ts and running nx run backend:seed in terminal. Y
The table should be linked to by the "Resources" tab on the left bar
The table should be populated by examples in the seed files. You'll need to to add the backend route as well for getting anthologies (published, archived) and # copies by location.
Acceptance Criteria
anthology.seed.ts, inventories.seed.ts, and inventoryHoldings.seed.ts are populated with data from the provided spreadsheet
Running nx run backend:seed successfully seeds the database without errors
A table page is accessible via the "Resources" tab in the left navigation bar
The table displays anthology titles, inventory locations, and number of copies available at each location, matching the structure of the Notion reference
The table is populated from the seeded data, not hardcoded/mock data
All seeded anthologies with inventory holdings appear as rows in the table
Why
Our client currently has a notion page with a table showing the library titles, inventory locations, and the number of copies available at each one. It will be helpful if our site has a similar feature
What to do
We are no longer using "fake" data and are now using data from the seed folder (which is stored in backend). The first part of this ticket will be adding some more examples so we can populate a good sized table. Attached is the spreadsheet of example data.
Books 8d1445316d7c433dba158ed0733f6026_all.csv.
Also attached is a video of how to view the inventory data
how_to_view_inventory.webm
Seed data by editing the examples in anthology.seed.ts, inventories.seed.ts, and inventoryHoldings.seed.ts and running nx run backend:seed in terminal. Y
Finally, here is a link to the kind of table to design. https://826bostonpublications.notion.site/Library-Publication-Archive-88ba126f39054fcdaeab06da26a86d56.
The table should be linked to by the "Resources" tab on the left bar
The table should be populated by examples in the seed files. You'll need to to add the backend route as well for getting anthologies (published, archived) and # copies by location.
Acceptance Criteria