feat: Add invisible mode to hide user online activity status#167
Open
Shivangi1515 wants to merge 2 commits into
Open
feat: Add invisible mode to hide user online activity status#167Shivangi1515 wants to merge 2 commits into
Shivangi1515 wants to merge 2 commits into
Conversation
Contributor
|
@Shivangi1515 is attempting to deploy a commit to the Sunil Kumar's projects Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
Hi @0rigin-c0de I have submitted the PR for the issue #159 . Kindly review it . |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #159
PR Description: Add Invisible Mode to Hide User Online Activity Status
Description
This PR adds an Invisible Mode feature allowing users to use the chat application normally without showing their online status to others. When enabled, other users see the user as offline/invisible, and the user's local online indicator is disabled.
Screenshots
After Enabling the Invisible Mode
Changed Files & Code Paths
1. Database and Models
invisible_modeschema type definition.2. Backend Routes and Authentication
buildAuthUserJwtPayloadto packinvisible_modeinside the JWT claims.invisible_modeparameter in/profilePATCH endpoint.3. Presence Logic
invisibleUserstrackingSet.presence_snapshot.presence_status_changesocket listener to handle real-time toggle.4. Frontend State
invisible_modein the Redux store.set_invisible_modeaction reducer.invisible_modestate from JWT on app initialization.5. UI Components
invisible_modestate and replaced the green online dot with a grey offline indicator at the bottom-left avatar when enabled.