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

Add jump to next and previous activity in room #46

Closed
MadLittleMods opened this issue Aug 1, 2022 · 0 comments · Fixed by #114
Closed

Add jump to next and previous activity in room #46

MadLittleMods opened this issue Aug 1, 2022 · 0 comments · Fixed by #114
Labels
A-archive-room-view The view to look at a room day by day in the archive T-Enhancement New feature or request

Comments

@MadLittleMods
Copy link
Contributor

MadLittleMods commented Aug 1, 2022

Rooms can be gappy and inactive for days at a time. Instead of having to manually navigate day by day in the archive trying to find the previous message, it would be better if you could just jump to where the next event is.

Under the calendar in the sidebar we can add, Jump to next activity in room, Jump to previous activity in room (better way to phrase?)

I was also thinking of adding it to the timeline and especially showcase it in the empty view when there are no events for the day.

If there is no next/previous activity, consider following tombstone and predecessor history, #59

Dev notes

We can use /timestamp_to_event again to find the next/previous event in the room.

For the archive, we would have the /:roomId/date/2022/02/08/next endpoint which would redirect you to the next date with activity (same with /previous)

Could be a more general endpoint: /:roomId/jump?ts=xxx&dir=[f|b]

@MadLittleMods MadLittleMods added the T-Enhancement New feature or request label Aug 1, 2022
MadLittleMods added a commit that referenced this issue Sep 20, 2022
 1. Add surrounding messages to the given messages so we have a full screen of content to make it feel lively even in quiet rooms
    - As you scroll around the timeline across different days, the date changes in the URL, calendar, etc
 2. Add summary item to the bottom of the timeline that explains if we couldn't find any messages in the specific day requested 
    - Also allows you to the jump to the next activity in the room. Adds `/:roomId/jump?ts=xxx&dir=[f|b]` to facilitate this.
    - Part of #46
 3. Add developer options modal which is linked from the bottom of the right-panel
    - Adds an option so you can debug the `IntersectionObserver` and how it's selecting the active day from the top-edge of the scroll viewport.
    - In the future, this will also include a nice little visualization of the backend timing traces
@MadLittleMods MadLittleMods added the A-archive-room-view The view to look at a room day by day in the archive label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-archive-room-view The view to look at a room day by day in the archive T-Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant