Skip to content

#4633 konstantinos zeimbekis countdown admin tools edit - #4673

Open
kostazeimbek wants to merge 16 commits into
feature/bay-dashboardfrom
#4633-KonstantinosZeimbekis-Countdown-Admin-Tools-Edit
Open

kostazeimbek wants to merge 16 commits into
feature/bay-dashboardfrom
#4633-KonstantinosZeimbekis-Countdown-Admin-Tools-Edit

Conversation

@kostazeimbek

@kostazeimbek kostazeimbek commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Changes

I created the edit button for the bay dashboard that only allows admins to edit/ tamper with it.

Notes

For starters, I used AI for guidance, as stated before. Nothing was written by it, though. I merged with #4453 so I could use a certain file that they had in their branch, so I would suggest merging that first. Apologies if this was a nuisance. #4453 made isPrimary required on the edit endpoint. There was a bug whenever I tried to change anything on the bay dashboard, so I fixed it by allowing edits countdown to keep the current isPrimary without changing it, and there's no checkbox in the edit modal. Finally, Edit uses the same dateToMidnightUTC / dbDateToLocalDate date thing that create uses, so dates don't shift by a day

Bug elsewhere
I'll keep this section short since I found this accidentally. When I was trying to test the code I wrote, I used a head by accident and went to the calendar to see if it works. And it didn't. When I tried to select anything that didn't have a Zoom link, it threw an error saying, "Event Type requires Event type does not allow a Zoom link"


Test Cases

I tested everything manually based on this set
*if I can see the edit icon
*if I can click on the icon
*if I can edit name and dates
*And any errors/edge cases that could throw errors or pass

Screenshots

If you made UI changes you must post a screenshot of the whole page for each change in 1) a normal sized window and 2) the smallest possible window
image

image image image image

To Do

N/A

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors/newline at end of file warnings
  • All code follows repository-configured Prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #4633

@kostazeimbek kostazeimbek self-assigned this Nov 2, 2026

@cielbellerose cielbellerose left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!! just have one small ask

Up to you if you want to implement the primary/secondary update in the modal (simplest) or as an inline dropdown (good reference for that kind of inline editing would be the table on a project's bom tab)

Konstantinos Zeimbekis and others added 3 commits November 5, 2026 22:18
…-Countdown-Admin-Tools-Edit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… of github-other:Northeastern-Electric-Racing/FinishLine into #4633-KonstantinosZeimbekis-Countdown-Admin-Tools-Edit
@cielbellerose
cielbellerose self-requested a review November 6, 2026 20:48
handleClose();
} catch (error: unknown) {
if (error instanceof Error) {
toast.error(error.message);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already toast the error in the hook so we can remove this toast.error

@wavehassman wavehassman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job!

* This file is part of NER's FinishLine and licensed under GNU AGPLv3.
* See the LICENSE file in the repository root folder for details.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should reuse CountdownFormModal

*@returns this returns something that is resolved to the update of the countdown object
*/
export const editBayDashboardCountdown = (
countdownId: string,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could use BayDashboardCountdownCreateArgs here too I think or slightly change them around

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think i finished with every comment being resolved if you want to take a look at it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants