Northeastern-Electric-Racing / Northeastern-Electric-Racing/FinishLine
[Change Requests] - Buffer-days input in Admin tools
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 36
- Forks
- 9
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 11
Description
Description
Context
Admins need to see and change the activation buffer (a number of days stored on the organization as activationBufferDays) from Admin Tools → Project Configuration. The backend endpoint that saves the value is handled separately; this ticket is the api call, hook, and the input itself.
Task
should show the number and an edit button have a modal pop up for editing the buffer window
Acceptance Criteria
- A frontend api function and a react-query hook call the update endpoint for activationBufferDays.
- The Project Configuration tab shows the current buffer value in a labeled number input.
- An admin can change the value and save it; after saving, the input reflects the saved value.
- The input doesn't let you submit a negative or non-integer value (matches the backend rule).
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 in the Project Configuration tab and trace its existing data flow to identify the frontend API functions and react-query hooks used there. Add the activationBufferDays update call, labeled editable number input, modal and save behavior; done means saved values reappear and negative or non-integer submissions are rejected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- api, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100