Skip to content
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

Pinned Events Timeline actions and differentiation #3182

Merged
merged 11 commits into from
Aug 22, 2024

Conversation

Velin92
Copy link
Member

@Velin92 Velin92 commented Aug 19, 2024

fixes #3060

Simulator.Screen.Recording.-.iPhone.15.-.2024-08-21.at.13.39.08.mp4

@Velin92 Velin92 added the pr-wip for anything that isn't ready to ship and will be enabled at a later date label Aug 19, 2024
Copy link

github-actions bot commented Aug 19, 2024

Warnings
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against d32babd

Copy link

codecov bot commented Aug 19, 2024

Codecov Report

Attention: Patch coverage is 53.60624% with 238 lines in your changes missing coverage. Please review.

Project coverage is 77.48%. Comparing base (d54e08e) to head (d32babd).
Report is 1 commits behind head on develop.

Files Patch % Lines
...dinators/PinnedEventsTimelineFlowCoordinator.swift 0.00% 113 Missing ⚠️
...Sources/FlowCoordinators/RoomFlowCoordinator.swift 27.94% 49 Missing ⚠️
...Screen/PinnedEventsTimelineScreenCoordinator.swift 0.00% 22 Missing ⚠️
...melineScreen/View/PinnedEventsTimelineScreen.swift 22.22% 14 Missing ⚠️
...imeline/View/ItemMenu/TimelineItemMenuAction.swift 10.00% 9 Missing ⚠️
...View/ItemMenu/TimelineItemMenuActionProvider.swift 0.00% 6 Missing ⚠️
...ces/Screens/RoomScreen/RoomScreenCoordinator.swift 75.00% 4 Missing ⚠️
.../Sources/Screens/RoomScreen/RoomScreenModels.swift 94.64% 3 Missing ⚠️
...X/Sources/Screens/RoomScreen/View/RoomScreen.swift 0.00% 3 Missing ⚠️
.../Screens/Timeline/TimelineInteractionHandler.swift 0.00% 3 Missing ⚠️
... and 6 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3182      +/-   ##
===========================================
- Coverage    77.68%   77.48%   -0.20%     
===========================================
  Files          718      719       +1     
  Lines        56695    57032     +337     
===========================================
+ Hits         44041    44193     +152     
- Misses       12654    12839     +185     
Flag Coverage Δ
unittests 68.23% <53.60%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Velin92 Velin92 force-pushed the mauroromito/set_up_pinned_timeline_actions branch from 48c5398 to d0f1db7 Compare August 21, 2024 16:53
@Velin92 Velin92 marked this pull request as ready for review August 21, 2024 16:53
@Velin92 Velin92 requested a review from a team as a code owner August 21, 2024 16:53
@Velin92 Velin92 requested review from pixlwave and removed request for a team August 21, 2024 16:53
@Velin92 Velin92 force-pushed the mauroromito/set_up_pinned_timeline_actions branch from d0f1db7 to 97af468 Compare August 21, 2024 16:55
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

Veery nice 🤩

A thought whilst I was reading through this. I think the notion of isLive on a timeline is likely wrong now - we should probably be using an enum of case live, detached, pinned instead. I have a feeling this would mean we didn't need to inject a bunch of those shouldHideStart/isPinnedEventsTimeline parameters as they could read this from the TimelineProxy, TimelineProvider, TimelineController or TimelineTableViewController. Definitely not to fix in this PR though.

Also a couple of thoughts on naming I wasn't sure where to put:

  • I don't really think changing focussedEventfocusEvent is a good change. It doesn't read as clearly as presentRoom(focussedEvent: theEvent) to me.
  • I find it slightly confusing that sometimes it's we say the pinEvent and other times we say the pinnedEvent. I would have thought we always refer to it as the latter and we only use pin event as a verb?

added also a view in timeline action, that only appears in the pinned events timeline, and a way to ungroup events when the timeline is a pinned events one.
and allow interaction with the map
@Velin92 Velin92 force-pushed the mauroromito/set_up_pinned_timeline_actions branch from d816cd9 to 115c0af Compare August 22, 2024 15:03
Copy link

sonarcloud bot commented Aug 22, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
8.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@Velin92 Velin92 enabled auto-merge (squash) August 22, 2024 15:34
@Velin92 Velin92 disabled auto-merge August 22, 2024 15:35
@Velin92 Velin92 merged commit 4eb1ed5 into develop Aug 22, 2024
5 of 6 checks passed
@Velin92 Velin92 deleted the mauroromito/set_up_pinned_timeline_actions branch August 22, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-wip for anything that isn't ready to ship and will be enabled at a later date
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task] Pinned items timeline
2 participants