Skip to content

Inventory Grid #124

@josieek

Description

@josieek

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

  1. anthology.seed.ts, inventories.seed.ts, and inventoryHoldings.seed.ts are populated with data from the provided spreadsheet
  2. Running nx run backend:seed successfully seeds the database without errors
  3. A table page is accessible via the "Resources" tab in the left navigation bar
  4. The table displays anthology titles, inventory locations, and number of copies available at each location, matching the structure of the Notion reference
  5. The table is populated from the seeded data, not hardcoded/mock data
  6. All seeded anthologies with inventory holdings appear as rows in the table

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions