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

Display number of unread messages as a badge on the jump-to-bottom button. Send fully-read receipts more efficiently. #206

Merged
merged 81 commits into from
Jan 2, 2025

Conversation

alanpoon
Copy link
Contributor

@alanpoon alanpoon commented Oct 15, 2024

Fixed #152 (review)
Fixed #131

  1. Implemented: Start a 5-second timeout timer whenever scrolling stops, and then after the timer has reached its timeout deadline, send the read receipts for the last visible event.
  2. Modified Send fully Receipt condition to be executed only after scrolling past Fully Read Marker
  3. Added obtaining Fully read marker's event_id Request

Added Jump to Top view
Added Jump to bottom badge counter

scrollup2.mp4

Copy link
Member

@kevinaboos kevinaboos left a comment

Choose a reason for hiding this comment

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

See my comments about the Jump to Top (JTT) button -- we're not yet ready to properly implement that, so I think it should be removed, or at least hidden until we can fix it.

Everything else looks fine, thanks!

resources/icon_jump_to_top.svg Outdated Show resolved Hide resolved
src/home/room_screen.rs Outdated Show resolved Hide resolved
src/sliding_sync.rs Outdated Show resolved Hide resolved
src/sliding_sync.rs Outdated Show resolved Hide resolved
src/sliding_sync.rs Outdated Show resolved Hide resolved
src/sliding_sync.rs Outdated Show resolved Hide resolved
src/home/room_screen.rs Outdated Show resolved Hide resolved
src/home/room_screen.rs Outdated Show resolved Hide resolved
src/sliding_sync.rs Outdated Show resolved Hide resolved
src/home/room_screen.rs Outdated Show resolved Hide resolved
@alanpoon
Copy link
Contributor Author

alanpoon commented Nov 6, 2024

Currently there's a bug in the portallist's is_at_end function which returns true even when the scroll is not at the bottom. Hence the JTB will not show.
makepad/makepad#579

@alanpoon alanpoon added waiting-on-review This issue is waiting to be reviewed and removed waiting-on-author This issue is waiting on the original author for a response labels Dec 31, 2024
Copy link
Member

@kevinaboos kevinaboos left a comment

Choose a reason for hiding this comment

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

left some more comments.

It appears that you haven't yet addressed my previous requests here and here to properly center-align the unread messages badge with the jump-to-bottom button. Please fix that, and then we can merge this in.

We can add the subscribe/unsubscribe functionality later if you can't solve it here in this PR. I have some solutions in mind.

I will add the unsubscribing functionality myself in a future PR, so don't worry about it now. Let's move forward and get this PR finished up.

src/home/room_screen.rs Outdated Show resolved Hide resolved
src/home/room_screen.rs Outdated Show resolved Hide resolved
src/shared/jump_to_bottom_button.rs Outdated Show resolved Hide resolved
src/shared/jump_to_bottom_button.rs Outdated Show resolved Hide resolved
src/shared/jump_to_bottom_button.rs Outdated Show resolved Hide resolved
src/sliding_sync.rs Outdated Show resolved Hide resolved
src/sliding_sync.rs Outdated Show resolved Hide resolved
src/sliding_sync.rs Outdated Show resolved Hide resolved
src/sliding_sync.rs Outdated Show resolved Hide resolved
src/shared/jump_to_bottom_button.rs Outdated Show resolved Hide resolved
@kevinaboos kevinaboos added waiting-on-author This issue is waiting on the original author for a response and removed waiting-on-review This issue is waiting to be reviewed labels Dec 31, 2024
alanpoon and others added 8 commits January 1, 2025 09:32
Co-authored-by: Kevin Boos <[email protected]>
Co-authored-by: Kevin Boos <[email protected]>
Co-authored-by: Kevin Boos <[email protected]>
Co-authored-by: Kevin Boos <[email protected]>
Co-authored-by: Kevin Boos <[email protected]>
@alanpoon
Copy link
Contributor Author

alanpoon commented Jan 1, 2025

left some more comments.

It appears that you haven't yet addressed my previous requests here and here to properly center-align the unread messages badge with the jump-to-bottom button. Please fix that, and then we can merge this in.

We can add the subscribe/unsubscribe functionality later if you can't solve it here in this PR. I have some solutions in mind.

I will add the unsubscribing functionality myself in a future PR, so don't worry about it now. Let's move forward and get this PR finished up.

Screenshot 2025-01-01 at 10 21 33 AM
Fixed center align issue

@alanpoon alanpoon added waiting-on-review This issue is waiting to be reviewed and removed waiting-on-author This issue is waiting on the original author for a response labels Jan 1, 2025
Copy link
Member

@kevinaboos kevinaboos left a comment

Choose a reason for hiding this comment

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

Thanks very much! I'm pleased to say that this is finally ready to merge. I appreciate your patience and dedication to getting things right.

I did have to make some changes, please take a look to get a sense of the code style and type of improvements i was hoping for: ab540fd

@kevinaboos kevinaboos merged commit 443d04d into project-robius:main Jan 2, 2025
3 checks passed
@kevinaboos kevinaboos removed the waiting-on-review This issue is waiting to be reviewed label Jan 3, 2025
@alanpoon
Copy link
Contributor Author

alanpoon commented Jan 3, 2025

Thanks very much! I'm pleased to say that this is finally ready to merge. I appreciate your patience and dedication to getting things right.

I did have to make some changes, please take a look to get a sense of the code style and type of improvements i was hoping for: ab540fd

Ok noted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update "jump to bottom" button visibility upon a change in timeline items
5 participants