Northeastern-Electric-Racing / Northeastern-Electric-Racing/FinishLine
Loading Error on BOM Tab on Project Page When User is a Guest
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 36
- Forks
- 9
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 11
Description
Description
Right now, when a guest goes to the bom tab on an individual project page, the page displays an error. This is because guests cannot hit certain get all endpoints in our backend (e.g. get all units). To solve this, you should only display an error page for those fetches from the backend if the guest isn't a user.
Acceptance Criteria
- The bom tab on a project no longer errors when you pull it up as a guest
- All other functionality is unaffected
Proposed Solution
You'll need to learn how we use hooks to retrieve info from the backend to understand this one. It's also worth looking at the finance page because we do a similar thing where we don't display an error page for certain things if you're not on the finance team.
Mocks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the BOM tab on the project page and trace the hooks that fetch backend data for a guest. Compare the finance page's handling of restricted fetches, then verify that guest users see the BOM tab without an error while other functionality remains unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100