3689: Adjust display of date for recurring events - #4290
Conversation
lunars97
left a comment
There was a problem hiding this comment.
Almost perfect! Tested with real android device and Chrome. I found one issue, please see my comment 👍
|
@ulyanahoy-cloud
Is this ok? |
|
If the recurring event always has the same time, I'd still prefer showing only the dates on mobile. It keeps the card much more compact and avoids repeating the same information. If the time differs between occurrences, then this two-line layout works well. |
Ok and for the occurrences keep them 5 or 3 just for mobile? |
|
for mobile 3 |
lunars97
left a comment
There was a problem hiding this comment.
Not tested again. LGTM 👍
…creens and native
dd9aa0b to
f53782a
Compare
cb1a81d to
8636527
Compare
…ting up useDimensions hook




Short Description
Display a collapsible "Weitere Termine" section for recurring events directly in the event list.
The section should show the next 5 upcoming occurrences. If more future occurrences exist, display (...) after the last visible date. Design here
Proposed Changes
shortFormatparameter toformatMonthlyOrYearlyRecurrence, defaulting tofalse; whentrue, it usesdateFormatShortinstead ofdateFormatWithWeekday.Web:
EventFurtherDatesthat renders the upcoming recurrence dates.Accordioncomponent forEventFurtherDates.tsx.MAX_FURTHER_DATES(6) recurrences viadate.recurrences(), then dropped the first one with.slice(1)since it's already shown in the eventList Item.preventDefault/stopPropagationon the wrapper's click handler so toggling the accordion doesn't trigger the parent list item's navigation link.EventNoteIcon,LocationOnOutlinedIconfor the date and location atEventListItem.tsx.Native:
TouchableRippleinstead of using the accordion because it needs alot of changes to match the design.hasMoreRecurrencesThanlogic like web.EventFurtherDatesdirectly below the event's date line.calendar-text-outline,map-marker-outlinefor location and date.furtherDatestranslation key.EventFurtherDates.spec.tsxSide Effects
N/A
Checklist
Testing
Resolved Issues
Fixes: #3689