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

Enh(Message): Component splitting and store migration (Reactions only) #11261

Merged
merged 18 commits into from
Jan 3, 2024

Conversation

DorraJaouad
Copy link
Contributor

@DorraJaouad DorraJaouad commented Dec 18, 2023

🚧 Tasks

  • Migration of reactions to a new component
  • Store migration
  • Fix reactions update with receiving messages
  • Fix reactions count and reacting participants list synchronization
  • Patch reactions
  • Tests 😿

Note: 'reaction' system message is not coming instantly like other reaction related system messages and sometimes is not even sent and reactions gets refetched upon the regular chat fetch. That's why you can notice that reactions come all at once as a batch when more than one is sent.

  • Bug reported: counter is not in sync with reacting participants list
  • Follow-up: patch reactions

🏁 Checklist

Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

Here goes a first part, with moving the component:

src/store/messagesStore.js Outdated Show resolved Hide resolved
src/store/messagesStore.js Outdated Show resolved Hide resolved
src/store/messagesStore.js Outdated Show resolved Hide resolved
src/stores/reactions.js Outdated Show resolved Hide resolved
src/stores/reactions.js Outdated Show resolved Hide resolved
src/stores/reactions.js Outdated Show resolved Hide resolved
src/stores/reactions.js Outdated Show resolved Hide resolved
src/stores/reactions.js Outdated Show resolved Hide resolved
src/stores/reactions.js Outdated Show resolved Hide resolved
@DorraJaouad DorraJaouad force-pushed the enh/noid/refactor-message branch 3 times, most recently from 272559d to dc0c4c4 Compare December 27, 2023 20:34
@DorraJaouad DorraJaouad marked this pull request as ready for review December 27, 2023 22:01
@DorraJaouad DorraJaouad force-pushed the enh/noid/refactor-message branch 2 times, most recently from 426278c to 6e95640 Compare December 30, 2023 21:08
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

Last one hopefully, just noticed some thing to optimize / fix

src/store/conversationsStore.js Outdated Show resolved Hide resolved
src/stores/__tests__/reactions.spec.js Outdated Show resolved Hide resolved
src/stores/reactions.js Outdated Show resolved Hide resolved
src/stores/reactions.js Outdated Show resolved Hide resolved
src/stores/reactions.js Show resolved Hide resolved
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

Apart from that and hasOutdatedDetails, see nothing blocking

Don't forget to rebase and resolve conflicts

Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
… deleted

Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

Tested locally and against c.nc

Let's split it task by task next time 🙈

@DorraJaouad DorraJaouad merged commit 0278593 into main Jan 3, 2024
36 checks passed
@DorraJaouad DorraJaouad deleted the enh/noid/refactor-message branch January 3, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants