Skip to content

E2E muting users from comments - #9844

Merged
isaacsolo merged 20 commits into
mainfrom
is-e2e-mute
Sep 30, 2024
Merged

E2E muting users from comments#9844
isaacsolo merged 20 commits into
mainfrom
is-e2e-mute

Conversation

@isaacsolo

@isaacsoloisaacsolo commented Sep 24, 2024

Copy link
Copy Markdown

Description

E2E muting on web/mobile. Muting via comment will hide all comments from that user. The settings page has a comment settings modal where you can unmute users.

TODO mobile.

Fixes C-5043, C-5044

How Has This Been Tested?

Ran locally and confirmed muting and unmuting works with multiple comments and users.

Screen.Recording.2024-09-24.at.8.52.01.AM.mov

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.

@changeset-bot

changeset-botBot commented Sep 24, 2024

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a030c35

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@gitguardian

gitguardianBot commented Sep 24, 2024

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 5 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian idGitGuardian statusSecretCommitFilename
9412812TriggeredGeneric Password0264e8cpackages/discovery-provider/ddl/docker-compose.ymlView secret
11648676TriggeredGeneric High Entropy Secrete2f478adev-tools/templates/devnet.yamlView secret
11648679TriggeredGeneric High Entropy Secret5b8e1c0core/infra/dev_config/standalone-console.envView secret
11648680TriggeredGeneric High Entropy Secrete2f478adev-tools/templates/devnet.yamlView secret
13858032TriggeredGeneric Private Keye2f478adev-tools/tls/devnet-key.pemView secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@isaacsolo
isaacsoloforce-pushed the is-e2e-mute branch 4 times, most recently from 28511f7 to cafbe52CompareSeptember 24, 2024 15:43
Comment threadpackages/common/src/api/comments.ts
Comment threadpackages/common/src/context/comments/commentsHooks.ts
Comment threadpackages/discovery-provider/src/api/v1/users.py Outdated
@audius-infra

Copy link
Copy Markdown
Collaborator

Preview this change https://demo.audius.co/is-e2e-mute

@dylanjeffersdylanjeffers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice work!

Comment threadpackages/discovery-provider/src/api/v1/users.py
Comment threadpackages/discovery-provider/src/queries/get_comments.py
Comment threadpackages/web/src/pages/settings-page/components/desktop/SettingsPage.tsx Outdated
@isaacsoloisaacsolo changed the title E2E muting on webE2E muting users from commentsSep 27, 2024
Comment threadpackages/mobile/src/screens/settings-screen/CommentSettingsScreen.tsx Outdated
{
userId: currentUserId!
},
{ force: true }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this how you solved the stale data problem?

Comment threadpackages/mobile/src/screens/settings-screen/CommentSettingsScreen.tsx Outdated
{messages.notificationsDescription}
</SettingsRowDescription>
</SettingsRow>
<SettingsRow onPress={handlePressCommentSettings}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think you want to move the isCommentsEnabled here? Not sure how this looks but I would imagine we remove the whole row if it's not enabled

@DejayJDDejayJD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Re-reviewed just the mobile stuff; its looking real good but just a few changes and its ready!
The main blocker is that the feature flag comment. The common move would also be good but not technically a blocker

@sliptypesliptype left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Huge lift! I agree with jd's comments/qs

Comment threadpackages/mobile/src/screens/settings-screen/CommentSettingsScreen.tsx Outdated
@audius-infra

Copy link
Copy Markdown
Collaborator

Preview this change https://demo.audius.co/is-e2e-mute

@isaacsolo
isaacsolo enabled auto-merge (squash) September 30, 2024 22:15
@audius-infra

Copy link
Copy Markdown
Collaborator

Preview this change https://demo.audius.co/is-e2e-mute

@isaacsolo
isaacsolo merged commit a7cc761 into mainSep 30, 2024
@isaacsolo
isaacsolo deleted the is-e2e-mute branch September 30, 2024 22:43
schottra added a commit that referenced this pull request Oct 1, 2024
* origin/main: (27 commits)
[C-5022] Fix cached-image artwork and avatar (#9898)
[C-5058] Close reply input on submit (#9897)
[C-5028] Hide sort buttons with 1 or fewer comments (#9896)
[C-5070] Add comment count to artist dashboard (#9895)
updated hackathon banner (#9811)
Version Packages (#9822)
[PAY-3439] Add hono to create-audius-app (#9840)
Update minimal audiusd example (#9905)
endl/audiusd (#9870)
[QA-1750] Fix race cond in cc flow with token account creation (#9902)
Fixes zodError when purchasing album with Coinflow (#9903)
E2E muting users from comments (#9844)
[PAY-3344] Chat blast notifications (#9880)
fix sdk remixed tracks usage (#9901)
Disable payment router tests temporarily to unblock staging deploys (#9899)
Add recommended ddex docs (#9891)
Fix comment optimistic writes (#9876)
[PROTO-1935] Always relaunch under the hood in audius-ctl up (#9892)
[PAY-3198] New inbox settings modal layout (#9893)
Audius Protocol v0.7.1
...
audius-infra pushed a commit that referenced this pull request Oct 1, 2024
[0c3f791] [PAY-3439] Add hono to create-audius-app (#9840) Raymond Jacobson
[9750c85] endl/audiusd (#9870) endline
[a7cc761] E2E muting users from comments (#9844) Isaac Solo
[b6106f3] [PAY-3344] Chat blast notifications (#9880) Reed
[fffb0a5] Disable payment router tests temporarily to unblock staging deploys (#9899) Marcus Pasell
schottra added a commit that referenced this pull request Oct 2, 2024
* origin/main:
[PAY-3455] Update unread element scroll function and fix chat page styling again (#9904)
Bump harmony by minor version (#9907)
[QA-1522] Update web scrubber to track audio player directly (#9894)
Audius Protocol v0.7.2
[C-5022] Fix cached-image artwork and avatar (#9898)
[C-5058] Close reply input on submit (#9897)
[C-5028] Hide sort buttons with 1 or fewer comments (#9896)
[C-5070] Add comment count to artist dashboard (#9895)
updated hackathon banner (#9811)
Version Packages (#9822)
[PAY-3439] Add hono to create-audius-app (#9840)
Update minimal audiusd example (#9905)
endl/audiusd (#9870)
[QA-1750] Fix race cond in cc flow with token account creation (#9902)
Fixes zodError when purchasing album with Coinflow (#9903)
E2E muting users from comments (#9844)
[PAY-3344] Chat blast notifications (#9880)
fix sdk remixed tracks usage (#9901)
Disable payment router tests temporarily to unblock staging deploys (#9899)
Add recommended ddex docs (#9891)
audius-infra pushed a commit that referenced this pull request Oct 5, 2024
[efdc0b2] Fix bottom sheet keyboard avoiding + compose ui (#9964) Sebastian Klingler
[235406d] [C-5097] Add backspace handling back to mobile ComposerInput (#9962) Kyle Shanks
[2e3a4db] [C-4994] Add user autocomplete and tagging to mobile ComposerInput (#9952) Kyle Shanks
[160df4e] [QA-1748] Fix misc sign up issues (#9957) Raymond Jacobson
[5969168] [PAY-3493] Fix download gating on usdc feature flag (#9945) Raymond Jacobson
[f96333a] [C-5025] Add compose ui helper text (#9955) Sebastian Klingler
[d8db7ab] [C-5082] Comments desktop replies tweaks (#9954) JD Francis
[5bdf8ce] [C-5068] Convert comments a-query to tanstack-query (#9944) JD Francis
[17fb40e] Revert "[C-4493] Don't show deleted track rows in collections (#9209)" (#9951) Raymond Jacobson
[1ab28c9] [C-5071] Scroll to top for new comments on mobile (#9947) Sebastian Klingler
[2f2f187] [C-5072] Comment timestamp seeking (#9935) Sebastian Klingler
[0ba81b4] [PAY-3489] Update web ComposerInput autocomplete range tracking (#9939) Kyle Shanks
[e569aac] [PAY-3453] Fix @ mentions in Dms with UserGeneratedTextV2 (#9924) Raymond Jacobson
[e6ad563] Version Packages (#9914) github-actions[bot]
[143c9d4] [QA-875] Fix short feed on web sign in (#9943) Isaac Solo
[65762e8] Fix composer position for comments (#9937) Sebastian Klingler
[a73cd6e] [C-4998] Add timestamp highlighting to mobile composer input (#9930) Kyle Shanks
[b408810] [QA-1749] Fix help alignment (#9923) Raymond Jacobson
[ea69846] [PAY-3199] Inbox Settings UI (mobile) (#9922) Andrew Mendelsohn
[4851999] [C-5002] Empty comments state for track owner (#9928) Sebastian Klingler
[371c9fd] [C-5057] Make comment overflow actions consistent with designs (#9920) Sebastian Klingler
[4d646d6] [PAY-3477] Initialize Hedgehog directly in client (#9909) Randy Schott
[57666cb] Move debug to externals (#9917) Randy Schott
[ce35265] Upgrade mobile apps to 116 (#9927) Dylan Jeffers
[0a2fe3d] Notify Slack on new purchases (#9921) Marcus Pasell
[9d02b9f] [PAY-3329] Remove monetization beta waitlist (#9913) Raymond Jacobson
[220ed1d] [QA-1724] Fix broken insta links (#9911) Raymond Jacobson
[b8c3171] Unblock CI (#9915) Raymond Jacobson
[969fd1f] Migrate to new user/tracks/remixed endpoint (#9900) Andrew Mendelsohn
[7d2233d] [PAY-3455] Update unread element scroll function and fix chat page styling again (#9904) Kyle Shanks
[91f2e59] [QA-1522] Update web scrubber to track audio player directly (#9894) Randy Schott
[e69a986] [C-5022] Fix cached-image artwork and avatar (#9898) Dylan Jeffers
[5e764e6] [C-5058] Close reply input on submit (#9897) Dylan Jeffers
[5bc9a19] [C-5028] Hide sort buttons with 1 or fewer comments (#9896) Dylan Jeffers
[d2c0a82] [C-5070] Add comment count to artist dashboard (#9895) Dylan Jeffers
[3d84ce1] Version Packages (#9822) github-actions[bot]
[0c3f791] [PAY-3439] Add hono to create-audius-app (#9840) Raymond Jacobson
[1260471] [QA-1750] Fix race cond in cc flow with token account creation (#9902) Raymond Jacobson
[9694ea4] Fixes zodError when purchasing album with Coinflow (#9903) Marcus Pasell
[a7cc761] E2E muting users from comments (#9844) Isaac Solo
[981d8f9] fix sdk remixed tracks usage (#9901) Andrew Mendelsohn
[dd52ab0] Fix comment optimistic writes (#9876) JD Francis
[8f4314f] [PAY-3198] New inbox settings modal layout (#9893) Andrew Mendelsohn
samgutentag pushed a commit that referenced this pull request Nov 1, 2024
[efdc0b2] Fix bottom sheet keyboard avoiding + compose ui (#9964) Sebastian Klingler
[235406d] [C-5097] Add backspace handling back to mobile ComposerInput (#9962) Kyle Shanks
[2e3a4db] [C-4994] Add user autocomplete and tagging to mobile ComposerInput (#9952) Kyle Shanks
[160df4e] [QA-1748] Fix misc sign up issues (#9957) Raymond Jacobson
[5969168] [PAY-3493] Fix download gating on usdc feature flag (#9945) Raymond Jacobson
[f96333a] [C-5025] Add compose ui helper text (#9955) Sebastian Klingler
[d8db7ab] [C-5082] Comments desktop replies tweaks (#9954) JD Francis
[5bdf8ce] [C-5068] Convert comments a-query to tanstack-query (#9944) JD Francis
[17fb40e] Revert "[C-4493] Don't show deleted track rows in collections (#9209)" (#9951) Raymond Jacobson
[1ab28c9] [C-5071] Scroll to top for new comments on mobile (#9947) Sebastian Klingler
[2f2f187] [C-5072] Comment timestamp seeking (#9935) Sebastian Klingler
[0ba81b4] [PAY-3489] Update web ComposerInput autocomplete range tracking (#9939) Kyle Shanks
[e569aac] [PAY-3453] Fix @ mentions in Dms with UserGeneratedTextV2 (#9924) Raymond Jacobson
[e6ad563] Version Packages (#9914) github-actions[bot]
[143c9d4] [QA-875] Fix short feed on web sign in (#9943) Isaac Solo
[65762e8] Fix composer position for comments (#9937) Sebastian Klingler
[a73cd6e] [C-4998] Add timestamp highlighting to mobile composer input (#9930) Kyle Shanks
[b408810] [QA-1749] Fix help alignment (#9923) Raymond Jacobson
[ea69846] [PAY-3199] Inbox Settings UI (mobile) (#9922) Andrew Mendelsohn
[4851999] [C-5002] Empty comments state for track owner (#9928) Sebastian Klingler
[371c9fd] [C-5057] Make comment overflow actions consistent with designs (#9920) Sebastian Klingler
[4d646d6] [PAY-3477] Initialize Hedgehog directly in client (#9909) Randy Schott
[57666cb] Move debug to externals (#9917) Randy Schott
[ce35265] Upgrade mobile apps to 116 (#9927) Dylan Jeffers
[0a2fe3d] Notify Slack on new purchases (#9921) Marcus Pasell
[9d02b9f] [PAY-3329] Remove monetization beta waitlist (#9913) Raymond Jacobson
[220ed1d] [QA-1724] Fix broken insta links (#9911) Raymond Jacobson
[b8c3171] Unblock CI (#9915) Raymond Jacobson
[969fd1f] Migrate to new user/tracks/remixed endpoint (#9900) Andrew Mendelsohn
[7d2233d] [PAY-3455] Update unread element scroll function and fix chat page styling again (#9904) Kyle Shanks
[91f2e59] [QA-1522] Update web scrubber to track audio player directly (#9894) Randy Schott
[e69a986] [C-5022] Fix cached-image artwork and avatar (#9898) Dylan Jeffers
[5e764e6] [C-5058] Close reply input on submit (#9897) Dylan Jeffers
[5bc9a19] [C-5028] Hide sort buttons with 1 or fewer comments (#9896) Dylan Jeffers
[d2c0a82] [C-5070] Add comment count to artist dashboard (#9895) Dylan Jeffers
[3d84ce1] Version Packages (#9822) github-actions[bot]
[0c3f791] [PAY-3439] Add hono to create-audius-app (#9840) Raymond Jacobson
[1260471] [QA-1750] Fix race cond in cc flow with token account creation (#9902) Raymond Jacobson
[9694ea4] Fixes zodError when purchasing album with Coinflow (#9903) Marcus Pasell
[a7cc761] E2E muting users from comments (#9844) Isaac Solo
[981d8f9] fix sdk remixed tracks usage (#9901) Andrew Mendelsohn
[dd52ab0] Fix comment optimistic writes (#9876) JD Francis
[8f4314f] [PAY-3198] New inbox settings modal layout (#9893) Andrew Mendelsohn
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@isaacsolo@audius-infra@DejayJD@dylanjeffers@sliptype