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

feat(chats): unreads #685

Merged
merged 13 commits into from
Oct 11, 2024
Merged

feat(chats): unreads #685

merged 13 commits into from
Oct 11, 2024

Conversation

Flemmli97
Copy link
Contributor

@Flemmli97 Flemmli97 commented Oct 8, 2024

What this PR does 📖

  • Adds unread feature:
    • Wireup unread badge for chat button in navigation bar to display unread messages. Only gets triggered if not viewing the chat
    • Add unread feature in chat:
      • Adds a separator for unread messages in chat with date
      • Adds an indicator at the top of chat for amount of unread messages in chat
  • Reduce the threshold where chat scrolls down (bug(Chat): Scroll will jump to bottom of the chat  #486, see if thats better now. the feature itself is there to automatically scroll down whenever chat changes for incoming messages)

Which issue(s) this PR fixes 🔨

@github-actions github-actions bot added the Missing dev review Two dev reviews are required on PR label Oct 8, 2024
Copy link

github-actions bot commented Oct 8, 2024

Download the app installers for this pull request:

Copy link

github-actions bot commented Oct 8, 2024

Automated Test Results

passed  110 passed
skipped  15 skipped

Details

stats  125 tests across 16 suites
duration  13 minutes, 26 seconds
commit  95c018d

Skipped tests

Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B8 to B14 - Quick Profile Local and Remote - Updating note
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B8 to B14 - Quick Profile Local - Updating username, status, banner and profile picture
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B8 to B14 - Quick Profile Remote - Updating username, status, banner and profile picture
Automated Tests on Chrome Desktop › 09-settings-customizations.spec.ts › Settings Customization Tests › K2 - Font dropdown should show expected font names
Automated Tests on Chrome Desktop › 09-settings-customizations.spec.ts › Settings Customization Tests › K15 - Emoji Font dropdown should show expected emoji font names
Automated Tests on Chrome Desktop › 09-settings-customizations.spec.ts › Settings Customization Tests › K18 - Default Profile Picture Style dropdown should show expected default profile picture styles
Automated Tests on Chrome Desktop › 13-settings-keybinds.spec.ts › Settings Keybinds Tests › O1, 06 - Message at top of page and custom keybinds listed correctly
Automated Tests on Chrome Desktop › 13-settings-keybinds.spec.ts › Settings Keybinds Tests › O2, 04 - Clicking a key should activate the Recorded Keys - User can save keybind
Automated Tests on Chrome Desktop › 13-settings-keybinds.spec.ts › Settings Keybinds Tests › O3 - Action dropdown should display correct keybind actions
Automated Tests on Chrome Desktop › 13-settings-keybinds.spec.ts › Settings Keybinds Tests › O5 - Clicking Cancel should cancel any custom keybinding the user was trying to add
Automated Tests on Chrome Desktop › 13-settings-keybinds.spec.ts › Settings Keybinds Tests › O7 - Highlighted border should display when user clicks cancel
Automated Tests on Chrome Desktop › 13-settings-keybinds.spec.ts › Settings Keybinds Tests › O8 - Clicking Revert Keybindings should revert any custom keybindings the user has saved
Automated Tests on Chrome Desktop › 13-settings-keybinds.spec.ts › Settings Keybinds Tests › O9 - Highlighted border should be displayed when clicking Revert Keybindings
Automated Tests on Chrome Desktop › 13-settings-keybinds.spec.ts › Settings Keybinds Tests › O10 - Clicking the backwards arrow should revert specific custom keybinding
Automated Tests on Chrome Desktop › 20-settings-developer.spec.ts › Settings Developer Tests › T4 - Clicking Clear State should clear users state

Copy link

github-actions bot commented Oct 8, 2024

Playwright test execution is complete! You can find the test results report here

@phillsatellite
Copy link
Contributor

Hey Flem! So far this is working awesome theres just a little thing I wanted to mention. (I can create a new ticket if you'd rather fix in there) But it seems like separator for new unread messages will only cover half of the chat width and has a little ui issue with those black areas that appear on it. Other than that its working very well

Screenshot 2024-10-08 at 12 48 36 PM Screenshot 2024-10-08 at 12 48 24 PM

@phillsatellite phillsatellite added the QA Requested Changes Changes need to be addressed, something is not working as expected. label Oct 8, 2024
@Flemmli97
Copy link
Contributor Author

that thing on top is not the separator. but it is broken. what browser you using?

@stavares843
Copy link
Member

Captura de ecrã 2024-10-08, às 22 16 15

brave browser @Flemmli97

@phillsatellite
Copy link
Contributor

Also replicated on Chrome as well

@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 8, 2024
@stavares843
Copy link
Member

same on opera

image

@Flemmli97 Flemmli97 removed the QA Requested Changes Changes need to be addressed, something is not working as expected. label Oct 9, 2024
@lgmarchi lgmarchi added ⌨️ Ready for Test PR is ready for test and removed Missing dev review Two dev reviews are required on PR labels Oct 9, 2024
@stavares843 stavares843 added being tested and removed ⌨️ Ready for Test PR is ready for test labels Oct 9, 2024
@stavares843 stavares843 added QA Requested Changes Changes need to be addressed, something is not working as expected. and removed being tested labels Oct 9, 2024
Copy link
Member

@stavares843 stavares843 left a comment

Choose a reason for hiding this comment

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

3294293349009.mov

when i go to the chat, i dont know which messages are unread

phil gets this but that does not appear on my side

image

browser - opera

Copy link
Member

@stavares843 stavares843 left a comment

Choose a reason for hiding this comment

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

if im on the chat, and im scrolled up and i get new messages, theres no banner with the unreads

discord has this

image

Copy link
Member

@stavares843 stavares843 left a comment

Choose a reason for hiding this comment

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

why does this badge does not have a number of unreads?

image

i know we have the unreads overall number on the bottom but if i have 20 chats, 23094309 unreads, i dont know how many unreads each chat with unreads has

Copy link
Member

@stavares843 stavares843 left a comment

Choose a reason for hiding this comment

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

i only get this banner with the unreads first time starting a chat

image

after that i only get the unread dot on the sidebar

@Flemmli97
Copy link
Contributor Author

Flemmli97 commented Oct 10, 2024

if im on the chat, and im scrolled up and i get new messages, theres no banner with the unreads

discord has this

image

unreads doesnt appear if you are viewing the chat

@Flemmli97
Copy link
Contributor Author

why does this badge does not have a number of unreads?

image

i know we have the unreads overall number on the bottom but if i have 20 chats, 23094309 unreads, i dont know how many unreads each chat with unreads has

i didnt know that dot was supposed to be unread Oo (i didnt add that) but i can fix that

@stavares843
Copy link
Member

unreads doesnt appear if you are viewing the chat

but is that on purpose?

@Flemmli97
Copy link
Contributor Author

unreads doesnt appear if you are viewing the chat

but is that on purpose?

yes. do we want to change that?

also for the badge on the sidebar: it seems that is also intended. like there is a boolean with simpleUnreads which is turned on. and if off will show the number

@stavares843
Copy link
Member

unreads doesnt appear if you are viewing the chat

if you are scroll up id'd say yes

@Flemmli97 Flemmli97 removed the QA Requested Changes Changes need to be addressed, something is not working as expected. label Oct 11, 2024
@phillsatellite phillsatellite added QA Approved PR has been tested by QA Team and removed being tested labels Oct 11, 2024
@phillsatellite phillsatellite merged commit e0ba6b1 into dev Oct 11, 2024
9 checks passed
@phillsatellite phillsatellite deleted the unreads branch October 11, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA Approved PR has been tested by QA Team
Projects
None yet
5 participants