platform icon indicating copy to clipboard operation
platform copied to clipboard

DRY and visibility icon + reminder order bug fixes for Create/Edit Event modal

Open Armandoraf opened this issue 1 year ago • 1 comments

Pull Request Requirements:

  • Provide a brief description of the changeset.
  • Include a screenshots if applicable
  • Ensure that the changeset adheres to the DCO guidelines.
  1. CreateEvent.svelte and EditEvent.svelte had highly similar structure and functionality that could be condensed into a single component to ensure DRY (Don't Repeat Yourself) principles.

  2. Previously, the visibility icon on the modal would always be "Hidden" regardless of what the actual visibility was. This has been changed to be synchronized with the selected visibility's icon.

  3. Previously, reminders would be added to the modal in whatever order they were selected in, leading to an odd structure such as:

  • 15 minutes before
  • 1 day before
  • 1 hour before
  • 10 minutes before

This has been corrected to display the reminders in order and handles both editing and adding a reminder. Reminders that have already selected also no longer show up in the options for adding a new reminder or editing an existing reminder.

Armandoraf avatar Apr 09 '24 00:04 Armandoraf

Hello @Armandoraf! Thanks for the contribution. DRY is good, but there are several things that I don't like:

  1. Naming. I would prefer EventContent rather than EventManager name for the component.
  2. Lots of bound values, can we do something with that?

One more think, if your PR contains fixes for different issues, not related to each other, it is better to open separate pull requests for them.

aonnikov avatar Apr 10 '24 06:04 aonnikov

Closed due to inactivity

aonnikov avatar May 10 '24 05:05 aonnikov