Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal View: Demographics Spreadsheet #41

Closed
10 of 13 tasks
idil-bit opened this issue Nov 29, 2024 · 0 comments
Closed
10 of 13 tasks

Internal View: Demographics Spreadsheet #41

idil-bit opened this issue Nov 29, 2024 · 0 comments

Comments

@idil-bit
Copy link
Collaborator

idil-bit commented Nov 29, 2024

!!! DUE DEC 10TH !!! (both this and other ticket)

Purpose

You will be working on the spreadsheet for the demographics tab! You will be creating a similar component to components/InventorySpreadsheet.tsx which is for the inventory and customizing it for the demographics page. You can view the code for the inventory page (inventory/page.tsx) to see how the component and page work together.

You can work together with the team that is working on the categories page ticket as they are also building a spreadsheet component. You could also ask the team that worked on the inventory spreadsheet ticket questions you might have in addition to me and Jiyoon!

TODO

  • Move this ticket to the In Progress column
  • THIS STEP IS DIFFERENT FROM OTHER TICKETS SO PLEASE BE CAREFUL
    • while in the branch for the navbar ticket, create a new branch (so that it takes the new nav bar code to the new branch). do NOT branch from dev
  • Open demographics/page.tsx and create components/DemographicsSpreadsheet.tsx
  • in demographics/page.tsx
    • Create dummy data to populate/test the spreadsheet with before the return statement in demographics/page.tsx, which will be passed into the call for components/DemographicsSpreadsheet.tsx
    • Add the title in. No need to include the count of responses in parentheses, just saying "Demographic Responses" is enough for now! (don't worry about the run report button and the search bar for now)
    • Import the spreadsheet (from components/DemographicsSpreadsheet.tsx) and pass in the dummy data properly (view props resources below!)
  • in components/DemographicsSpreadsheet.tsx
    • refer to components/InventorySpreadsheet.tsx and the Figma design
  • create a PR for this ticket
    • add yourselves as assignees and Jiyoon as the reviewer to the PR
  • move this ticket to the Ready for Review column

Helpful Resources

About the font/boldness: In your tailwind styling, you can use: crimson-bold, crimson-semibold, crimson-regular, as Jiyoon pre-set in our globals.css. You can also just customize the thickness yourself - up to you!

  1. Tailwind table layout: https://tailwindcss.com/docs/table-layout
  2. React's map function that would help go through no more than necessary rows: https://legacy.reactjs.org/docs/lists-and-keys.html
  3. Props: https://react.dev/learn/passing-props-to-a-component
  4. Use Figma's functionalities to your advantage! Remember you can copy and download icons by right clicking like in the following photo!Image

Pictures (click to get to its figma)

Image

Image

@idil-bit idil-bit converted this from a draft issue Nov 29, 2024
@tanishalaud01 tanishalaud01 moved this from Todo to In Progress in Village Food Hub Dec 10, 2024
@tanishalaud01 tanishalaud01 moved this from In Progress to Ready for Review in Village Food Hub Dec 11, 2024
@jiyoonchoi jiyoonchoi moved this from Ready for Review to Done in Village Food Hub Jan 15, 2025
@jiyoonchoi jiyoonchoi closed this as completed by moving to Done in Village Food Hub Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

4 participants