-
Notifications
You must be signed in to change notification settings - Fork 50
feat(web): restrict someday event recurrence to weekly/monthly only #1017
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tyler-dane
merged 18 commits into
main
from
copilot/fix-8038056b-6260-4367-a757-556e9e0d7ff4
Oct 5, 2025
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2dd9dc5
Initial plan
Copilot 0625b99
feat(web): add SomedayRecurrenceSection with restricted frequency opt…
Copilot 2b016d0
Merge branch 'main' into copilot/fix-8038056b-6260-4367-a757-556e9e0d…
tyler-dane 90dc253
Merge branch 'main' into copilot/fix-8038056b-6260-4367-a757-556e9e0d…
tyler-dane bf20695
Merge branch 'main' into copilot/fix-8038056b-6260-4367-a757-556e9e0d…
tyler-dane 049520d
refactor(web): replace ConditionalRender with conditional rendering i…
tyler-dane d349114
refactor(web): remove unused ConditionalRender component
tyler-dane 87ec85e
refactor(web): remove end date controls from SomedayRecurrenceSection
tyler-dane 8fd8279
refactor(web): modularize recurrence code
tyler-dane 84a7620
test(web): add category prop to EventForm tests for better event cate…
tyler-dane 99926f8
refactor(web): modularize RecurrenceSection children
tyler-dane b824dfd
refactor(web): enhance SomedayRecurrenceSection with improved select …
tyler-dane 033f4c5
refactor(web): update SomedayRecurrenceSection to use role-based quer…
tyler-dane 3c16d90
refactor(web): implement cancel edit functionality in SomedayRecurren…
tyler-dane 35e918f
refactor(web): improve event handling in SomedayEventForm and add com…
tyler-dane 1b5622c
style(web): update font size and text case in SomedayRecurrenceSectio…
tyler-dane d9dd486
style(web): adjust overflow handling in SomedayRecurrenceSelect compo…
tyler-dane aab04a3
Update packages/web/src/views/Forms/EventForm/DateControlsSection/Rec…
tyler-dane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
packages/web/src/components/ConditionalRender/conditional-render.tsx
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This component wasn't providing any additional value or functionality from the standard JSX rendering. It also introduced a second way to render conditionally, which makes the codebase less consistent.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tyler-dane I didn't see this on time. This component is needed to ensure we have a cleaner rendering process.
It also allows us to replace the inconsistent rendering logic using
&&which relies on JS's short-circuiting evalutation which can sometimes produce unexpected results.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summarizing an offline meeting:
Instead of using
ConditonalRenderwe decidednull. It'll just use pure React, though (not a customConditionalRendercomponent)Pros & Cons:
Why ConditionalRender
Why not ConditionalRender