Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Feature/friend online status indicator #12#46

Open
ericgng220704 wants to merge 3 commits into
BuildersLeague:mainfrom
ericgng220704:feature/friend-online-status-indicator-#12
Open

Feature/friend online status indicator #12#46
ericgng220704 wants to merge 3 commits into
BuildersLeague:mainfrom
ericgng220704:feature/friend-online-status-indicator-#12

Conversation

@ericgng220704
Copy link
Copy Markdown
Contributor

What to Include

  • Title – Clear & descriptive (e.g., Feature: Signup Page)
  • Description – What, Why, How (include a link to issue number)
  • Screenshots/Demo – Add screenshots, videos, or Looms if visual

📌 Description

Workflow:

  1. Account table has "last_active_user_id" field indicates which user of that account is set to online after logging in (using ActiveUserContext).
  2. The user is set to online after logging in by updating the field last_active to the current time and keep being updated (default) every minute (changeable interval). (using usePresenceHeartbeat called inside FriendStatusContext).

Updates:

  1. Added ActiveUserContext & FriendStatus Context
  2. Added SQL Script to add new fields needed for this feature
  3. Complete the functionality of the live online friend count on the home page.
  4. Added StatusDot component, which returns a dot indicating the status of a user.

Note:

  1. Please create a new issue that creates a profile button or avatar indicating which user of an account is currently online and able to switch to another user if that account has multiple users.
  2. In the requirement, it says to display a tool tip on hover on the StatusDot, but I assume that on mobile, there is no hover. Please take a look at that.

🔍 How to Test


📷 Screenshots / Demo

image image

📎 Related Issues

@MaxLan-dev
Copy link
Copy Markdown

:( no merging to main pls, also can u check if it works with the new changes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants