Skip to content

[Maintenance] - Bug Design Review w/o Name #3995

@cielbellerose

Description

@cielbellerose

Description

Calendar events require a title but the title currently can be " ", we should trim before checking if the title is empty

A logic addition like this should be in the backend, but we can look at frontend/src/pages/CalendarPage/Components/EventModal.tsx to get a better understanding of the frontend issue here.
In this modal, currently we can enter " " as the title and it submits successfully
Image
We want to show a Toast error when a user tries to create/edit a calendar event with an empty title

Proposed Solution

Ensure that the title trimmed is empty when creating/editing calendar events

Recommended to implement this logic in the backend - look at calendar.routes.ts

Optional step: Update the formatting on the toast error message to clearly indicate to the user that the title cannot be empty

Acceptance Criteria

  • we cannot create an event with " " as a title, error message appears
  • we cannot edit an event with " " as a title, error message appears
  • title names such as "Finishline Design Review" still include spaces between words

Bug Screenshot

Image

Metadata

Metadata

Labels

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions