Skip to content

feat: presence sync engine UI#40469

Open
ricardogarim wants to merge 3 commits into
feat/presence-sync-enginefrom
feat/presence-expiration-ui
Open

feat: presence sync engine UI#40469
ricardogarim wants to merge 3 commits into
feat/presence-sync-enginefrom
feat/presence-expiration-ui

Conversation

@ricardogarim
Copy link
Copy Markdown
Member

@ricardogarim ricardogarim commented May 9, 2026

Proposed changes

Adds the frontend for status expiration - UI that consumes statusSource and statusExpiresAt from the presence engine. Redesigned Edit Status modal with duration picker, shared UserStatusText component for consistent display, and status tooltips across sidebar, members list, user card, and user info.

Figma

Changes

  • UserStatusText component - shared module with inline display (UserStatusText) and tooltip-only hook (useStatusTooltip), both backed by useExpirationText that formats "Until 6:00 PM" / "Until May 9, 2026"
  • Edit Status Modal - status dropdown with colored dots, "Clear status after" duration picker (30min, 1h, 4h, Today, Custom date/time), sends expiresAt to API
  • Status display - expiration shown inline in user menu header, user info, user card; shown as hover tooltip in sidebar DMs, room members list, room topic
  • Pipeline - plumbs statusSource/statusExpiresAt through broadcast, DDP streams, client streamer, presence store, REST endpoints, and user data sync
  • Other - removed Away from quick status menu, added Status_-prefixed i18n keys, added E2E and client store tests

Issue(s)

Steps to test or reproduce

See the use case matrix for the full set of scenarios.

Further comments

Depends on the presence engine backend PR (#40274).

Summary by CodeRabbit

  • New Features

    • Set status messages to automatically expire (30m, 1h, 4h or custom date/time); expirations submitted and stored.
    • Expiration displayed alongside status throughout the UI (user menu, user card, room headers, tooltips).
  • API / Presence

    • Presence and status endpoints now include expiration metadata so clients can show and merge expiration info.
  • Tests

    • Added e2e and unit tests covering status expiration flows and presence merging.

Review Change Stack

@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot Bot commented May 9, 2026

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 9, 2026

⚠️ No Changeset found

Latest commit: 807228e

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

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 9, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4cb1e2b9-9715-4ba5-8d3a-d3973ca4b872

📥 Commits

Reviewing files that changed from the base of the PR and between 24d4734 and 807228e.

📒 Files selected for processing (4)
  • apps/meteor/app/api/server/v1/users.ts
  • apps/meteor/client/components/UserStatusText/useExpirationText.ts
  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx
  • apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx
🚧 Files skipped from review as they are similar to previous changes (4)
  • apps/meteor/client/components/UserStatusText/useExpirationText.ts
  • apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx
  • apps/meteor/app/api/server/v1/users.ts
  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx

Walkthrough

This PR adds user status expiration with configurable auto-clear duration. It extends the type system to include statusSource and statusExpiresAt, implements server-side status expiration handling, introduces a new UserStatusText component for displaying expiration metadata, and updates the EditStatusModal to allow users to set custom status with automatic expiration after 30 minutes, 1 hour, 4 hours, or a custom date/time.

Changes

Status Expiration Feature

Layer / File(s) Summary
Core Type Definitions and API Contracts
packages/core-typings/src/IUser.ts, packages/core-typings/src/IMeApiUser.ts, packages/core-services/src/events/Events.ts, packages/ddp-client/src/types/streams.ts, packages/rest-typings/src/v1/users.ts
UserPresence and IMeApiUser types expanded to include statusSource and statusExpiresAt; presence.status event and 'user-presence' stream updated; /v1/users.setStatus accepts expiresAt; /v1/users.getStatus returns status expiration fields.
Server User Projections and Helpers
apps/meteor/app/api/server/helpers/getUserFromParams.ts, apps/meteor/app/lib/server/functions/getFullUserData.ts, apps/meteor/app/utils/server/functions/getBaseUserFields.ts
User query projections extended to fetch statusSource and statusExpiresAt across server helpers and full-user retrieval.
Status and Presence API Routes
apps/meteor/app/api/server/v1/users.ts
/v1/users.setStatus accepts optional expiresAt and propagates as statusExpiresAt; /v1/users.presence and /v1/users.getStatus project and return expiration fields.
Server Presence Event Handling and Broadcasting
apps/meteor/server/modules/listeners/listeners.module.ts, apps/meteor/server/modules/notifications/notifications.module.ts, ee/packages/presence/src/Presence.ts
presence.status event listener extracts and broadcasts statusSource and statusExpiresAt; sendPresence signature and EE broadcast method expanded.
Client Data and Presence Synchronization
apps/meteor/client/lib/userData.ts, apps/meteor/client/lib/presence.ts, apps/meteor/app/notifications/client/lib/Presence.ts
RawUserData and /v1/me sync include statusExpiresAt as Date; presence stream converts and preserves expiration metadata across fetch/notify flows.
Status Store Initialization and Streaming
apps/meteor/client/lib/userStatuses.ts, apps/meteor/client/lib/presence.spec.ts
UserStatuses initialization excludes AWAY; unit tests added for status metadata preservation and merge behavior.
Status Text Display Components and Hooks
apps/meteor/client/components/UserStatusText/useExpirationText.ts, apps/meteor/client/components/UserStatusText/useStatusTooltip.tsx, apps/meteor/client/components/UserStatusText/UserStatusText.tsx, apps/meteor/client/components/UserStatusText/index.ts
New parseExpiresAt helper and useExpirationText hook format expiration display; useStatusTooltip manages tooltip state; UserStatusText component renders status with optional inline/tooltip expiration.
Status Component UI Integration
apps/meteor/client/components/UserInfo/UserInfo.tsx, apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx, apps/meteor/client/views/room/Header/RoomTopic.tsx, apps/meteor/client/views/room/UserCard/UserCardWithData.tsx, apps/meteor/client/views/room/contextualBar/UserInfo/UserInfoWithData.tsx
UserStatusText integrated into user info, menu header, room topic, and user card components; props updated to forward statusExpiresAt.
Room Members and Sidebar Presence Tooltips
apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersItem.tsx, apps/meteor/client/sidebar/RoomList/RoomList.tsx, apps/meteor/client/sidebar/RoomList/RoomListRow.tsx, apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx
Status tooltips wired into room member items and sidebar; userId propagated through room list context for DM presence lookup.
Edit Status Modal with Expiration Duration
apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx
Modal extended with duration options (30m, 1h, 4h, custom, don't clear), custom date/time inputs, and expiresAt submission to the API.
Localization Strings
packages/i18n/src/locales/en.i18n.json
I18n entries added for status expiration UI labels, duration options, date/time prompts, and calendar override disclaimer.
E2E Test Infrastructure and Test Cases
apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts, apps/meteor/tests/e2e/page-objects/fragments/navbar.ts, apps/meteor/tests/e2e/presence.spec.ts, apps/meteor/tests/end-to-end/api/users.ts
Page object helpers extended for status type/duration selection; e2e tests added for modal behavior and in-UI expiration display; API tests updated for new endpoint contracts.

🎯 4 (Complex) | ⏱️ ~60 minutes


type: feature

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'feat: presence sync engine UI' is vague and overly broad, failing to clearly identify the specific change focus (status expiration display). Revise to be more specific about the primary change, such as 'feat: add status expiration UI and modal' or 'feat: implement expiration display for user status'.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (3)
  • PRES-2: Request failed with status code 401
  • PRES-22: Request failed with status code 401
  • PRES-17: Request failed with status code 401

Timed out fetching pipeline failures after 30000ms

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ricardogarim ricardogarim changed the base branch from develop to feat/presence-sync-engine May 9, 2026 12:37
@ricardogarim ricardogarim force-pushed the feat/presence-expiration-ui branch 2 times, most recently from d35ed87 to 9f10aca Compare May 11, 2026 13:58
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 70.21277% with 70 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.92%. Comparing base (21fc0a9) to head (807228e).

Additional details and impacted files

Impacted file tree graph

@@                      Coverage Diff                      @@
##           feat/presence-sync-engine   #40469      +/-   ##
=============================================================
+ Coverage                      69.58%   69.92%   +0.34%     
=============================================================
  Files                           3318     3314       -4     
  Lines                         122127   121425     -702     
  Branches                       21857    21772      -85     
=============================================================
- Hits                           84981    84908      -73     
+ Misses                         33818    33205     -613     
+ Partials                        3328     3312      -16     
Flag Coverage Δ
e2e 59.70% <68.37%> (+0.73%) ⬆️
e2e-api 46.30% <100.00%> (+0.04%) ⬆️
unit 70.67% <62.19%> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ricardogarim ricardogarim force-pushed the feat/presence-expiration-ui branch from eb2c66c to 5dd9075 Compare May 11, 2026 20:37
@ricardogarim ricardogarim force-pushed the feat/presence-expiration-ui branch from 5dd9075 to 24d4734 Compare May 11, 2026 20:42
@ricardogarim
Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 11, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot added the type: feature Pull requests that introduces new feature label May 11, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 6

🧹 Nitpick comments (2)
apps/meteor/client/components/UserStatusText/useExpirationText.ts (1)

7-7: ⚡ Quick win

Remove inline implementation comment.

Please drop the comment on Line 7 to match project style for implementation files.

As per coding guidelines "Avoid code comments in the implementation".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/meteor/client/components/UserStatusText/useExpirationText.ts` at line 7,
Remove the inline implementation comment in the module that begins with "Handles
Date, ISO string, and EJSON { $date }..." inside useExpirationText.ts (the
useExpirationText hook/function); simply delete that comment line so the file
conforms to the "no implementation comments" guideline and ensure the file still
builds/linters pass after removal.
apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts (1)

22-24: ⚡ Quick win

Prefer a semantic locator for the duration control.

Line 23 relies on an ID suffix and couples the page object to implementation details. Use label-based lookup for better resilience.

Proposed fix
 private get durationSelect() {
-	return this.root.locator('[id$="-clear-after"]');
+	return this.root.getByLabel('Clear status after');
 }

Based on learnings: In Rocket.Chat e2e tests, prefer semantic locators (getByRole, getByLabel, getByText, getByTitle) for reliability and maintainability.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts`
around lines 22 - 24, The durationSelect getter currently uses an ID-suffix
selector which couples the page object to implementation details; replace it
with a semantic locator such as a label- or role-based lookup. Update the
durationSelect getter (in the edit-status-modal fragment) to return
this.root.getByLabel('Clear after') or this.root.getByRole('combobox', { name:
/clear after/i }) (choose the one matching the control) so the test targets the
labeled duration control semantically.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/meteor/app/api/server/v1/users.ts`:
- Line 2005: The spread that sets statusExpiresAt from this.bodyParams.expiresAt
should validate the date before converting; create a Date from
this.bodyParams.expiresAt, check !isNaN(date.getTime()) (or Date.parse) and only
include statusExpiresAt: date when valid, otherwise either omit the property or
throw a validation error. Update the code around the spread that currently does
...(this.bodyParams.expiresAt && { statusExpiresAt: new
Date(this.bodyParams.expiresAt) }) and ensure Presence.setActiveState receives a
valid Date object (or handle invalid input by returning a 4xx response).

In `@apps/meteor/client/components/UserStatusText/useExpirationText.ts`:
- Around line 17-19: The branch in useExpirationText that handles EJSON objects
currently returns new Date((value as { $date: number }).$date) without
validating the $date, which can produce Invalid Date; update the branch (the
typeof value === 'object' && '$date' in (value as Record<string, unknown>)
check) to first extract and coerce the $date (e.g., Number((value as { $date:
unknown }).$date)), ensure it is a finite number (or parseable to a valid
timestamp) and only then return new Date(timestamp); otherwise fall through to
the same fallback/return behavior used by the other branches so an Invalid Date
is never returned from useExpirationText.

In
`@apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx`:
- Around line 124-133: computeExpiresAt can produce an invalid Date when
customDate/customTime are empty or malformed; update computeExpiresAt (used with
duration, customDate, customTime and DURATION_OPTIONS) to validate the
constructed Date (e.g., check isNaN(date.getTime())) and return undefined for
invalid custom inputs, and in the save/submit path where you call
expiresAt.toISOString() (the code that consumes computeExpiresAt) add a guard to
block submission when computeExpiresAt() returns undefined (show validation
error / disable save) so you never call toISOString() on an invalid Date.
- Around line 99-100: The date input currently uses the state variable
customDate as its min which causes the selected date to become its own lower
bound; change the component to compute a stable minimum (e.g. a "today" string
in 'en-CA' format) outside of the mutable customDate state and use that stable
value for the date input's min prop. Keep the existing customDate and customTime
state initializers (useState(() => new Date().toLocaleDateString('en-CA')) and
useState(() => new Date().toTimeString().slice(0,5))) but add a separate
variable (e.g. todayMin or todayDate) computed once per render (or via useMemo)
and reference that in the date input's min attribute instead of customDate;
update references to the date input in EditStatusModal to use that new stable
min.

In `@apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx`:
- Around line 46-47: The memo comparator for the SidebarItemTemplateWithData
component is missing userId as an input, yet userId affects dmUserId (and
therefore DM presence/tooltip); update the React.memo comparator (the custom
equality function used when wrapping SidebarItemTemplateWithData) to include
props.userId in its comparison set so a change from undefined→loaded (or any
userId change) forces a re-render; ensure any places computing dmUserId (the
dmUserId variable) are covered by the comparator inputs as well.

In `@packages/rest-typings/src/v1/users.ts`:
- Line 337: The REST response typing is exposing a raw Date via
statusExpiresAt?: IUser['statusExpiresAt'];—change the property to a serialized
date type (e.g. statusExpiresAt?: string | null) so clients receive an ISO
string (or null) instead of a Date; update the type in the users REST response
interface where statusExpiresAt is defined and ensure any serializers convert
the Date to an ISO string before sending.

---

Nitpick comments:
In `@apps/meteor/client/components/UserStatusText/useExpirationText.ts`:
- Line 7: Remove the inline implementation comment in the module that begins
with "Handles Date, ISO string, and EJSON { $date }..." inside
useExpirationText.ts (the useExpirationText hook/function); simply delete that
comment line so the file conforms to the "no implementation comments" guideline
and ensure the file still builds/linters pass after removal.

In `@apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts`:
- Around line 22-24: The durationSelect getter currently uses an ID-suffix
selector which couples the page object to implementation details; replace it
with a semantic locator such as a label- or role-based lookup. Update the
durationSelect getter (in the edit-status-modal fragment) to return
this.root.getByLabel('Clear after') or this.root.getByRole('combobox', { name:
/clear after/i }) (choose the one matching the control) so the test targets the
labeled duration control semantically.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dfee8651-3f4f-44ee-a64e-9ed27c8b38d8

📥 Commits

Reviewing files that changed from the base of the PR and between 21fc0a9 and 24d4734.

⛔ Files ignored due to path filters (1)
  • apps/meteor/client/components/UserInfo/__snapshots__/UserInfo.spec.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (36)
  • apps/meteor/app/api/server/helpers/getUserFromParams.ts
  • apps/meteor/app/api/server/v1/users.ts
  • apps/meteor/app/lib/server/functions/getFullUserData.ts
  • apps/meteor/app/notifications/client/lib/Presence.ts
  • apps/meteor/app/utils/server/functions/getBaseUserFields.ts
  • apps/meteor/client/components/UserInfo/UserInfo.tsx
  • apps/meteor/client/components/UserStatusText/UserStatusText.tsx
  • apps/meteor/client/components/UserStatusText/index.ts
  • apps/meteor/client/components/UserStatusText/useExpirationText.ts
  • apps/meteor/client/components/UserStatusText/useStatusTooltip.tsx
  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/client/lib/presence.ts
  • apps/meteor/client/lib/userData.ts
  • apps/meteor/client/lib/userStatuses.ts
  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx
  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx
  • apps/meteor/client/sidebar/RoomList/RoomList.tsx
  • apps/meteor/client/sidebar/RoomList/RoomListRow.tsx
  • apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx
  • apps/meteor/client/views/room/Header/RoomTopic.tsx
  • apps/meteor/client/views/room/UserCard/UserCardWithData.tsx
  • apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersItem.tsx
  • apps/meteor/client/views/room/contextualBar/UserInfo/UserInfoWithData.tsx
  • apps/meteor/server/modules/listeners/listeners.module.ts
  • apps/meteor/server/modules/notifications/notifications.module.ts
  • apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts
  • apps/meteor/tests/e2e/page-objects/fragments/navbar.ts
  • apps/meteor/tests/e2e/presence.spec.ts
  • apps/meteor/tests/end-to-end/api/users.ts
  • ee/packages/presence/src/Presence.ts
  • packages/core-services/src/events/Events.ts
  • packages/core-typings/src/IMeApiUser.ts
  • packages/core-typings/src/IUser.ts
  • packages/ddp-client/src/types/streams.ts
  • packages/i18n/src/locales/en.i18n.json
  • packages/rest-typings/src/v1/users.ts
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: 🔨 Test UI (CE) / MongoDB 8.0 (4/4)
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • apps/meteor/client/lib/userStatuses.ts
  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx
  • apps/meteor/client/sidebar/RoomList/RoomList.tsx
  • apps/meteor/client/lib/presence.ts
  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/client/components/UserStatusText/index.ts
  • apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersItem.tsx
  • apps/meteor/client/views/room/UserCard/UserCardWithData.tsx
  • ee/packages/presence/src/Presence.ts
  • apps/meteor/client/components/UserStatusText/UserStatusText.tsx
  • packages/core-typings/src/IMeApiUser.ts
  • packages/core-services/src/events/Events.ts
  • apps/meteor/app/notifications/client/lib/Presence.ts
  • apps/meteor/app/lib/server/functions/getFullUserData.ts
  • apps/meteor/client/components/UserStatusText/useStatusTooltip.tsx
  • apps/meteor/client/views/room/Header/RoomTopic.tsx
  • packages/core-typings/src/IUser.ts
  • apps/meteor/app/utils/server/functions/getBaseUserFields.ts
  • apps/meteor/client/sidebar/RoomList/RoomListRow.tsx
  • apps/meteor/client/components/UserStatusText/useExpirationText.ts
  • apps/meteor/server/modules/listeners/listeners.module.ts
  • packages/ddp-client/src/types/streams.ts
  • apps/meteor/client/components/UserInfo/UserInfo.tsx
  • apps/meteor/client/lib/userData.ts
  • apps/meteor/server/modules/notifications/notifications.module.ts
  • apps/meteor/client/views/room/contextualBar/UserInfo/UserInfoWithData.tsx
  • apps/meteor/app/api/server/v1/users.ts
  • apps/meteor/app/api/server/helpers/getUserFromParams.ts
  • apps/meteor/tests/e2e/presence.spec.ts
  • packages/rest-typings/src/v1/users.ts
  • apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx
  • apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts
  • apps/meteor/tests/end-to-end/api/users.ts
  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx
  • apps/meteor/tests/e2e/page-objects/fragments/navbar.ts
**/*.spec.ts

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.spec.ts: Use descriptive test names that clearly communicate expected behavior in Playwright tests
Use .spec.ts extension for test files (e.g., login.spec.ts)

Files:

  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/tests/e2e/presence.spec.ts
apps/meteor/tests/e2e/**/*.spec.ts

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

apps/meteor/tests/e2e/**/*.spec.ts: All test files must be created in apps/meteor/tests/e2e/ directory
Avoid using page.locator() in Playwright tests - always prefer semantic locators such as page.getByRole(), page.getByLabel(), page.getByText(), or page.getByTitle()
Use test.beforeAll() and test.afterAll() for setup/teardown in Playwright tests
Use test.step() for complex test scenarios to improve organization in Playwright tests
Group related tests in the same file
Utilize Playwright fixtures (test, page, expect) for consistency in test files
Prefer web-first assertions (toBeVisible, toHaveText, etc.) in Playwright tests
Use expect matchers for assertions (toEqual, toContain, toBeTruthy, toHaveLength, etc.) instead of assert statements in Playwright tests
Use page.waitFor() with specific conditions instead of hardcoded timeouts in Playwright tests
Implement proper wait strategies for dynamic content in Playwright tests
Maintain test isolation between test cases in Playwright tests
Ensure clean state for each test execution in Playwright tests
Ensure tests run reliably in parallel without shared state conflicts

Files:

  • apps/meteor/tests/e2e/presence.spec.ts
apps/meteor/tests/e2e/**/*.{ts,spec.ts}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

apps/meteor/tests/e2e/**/*.{ts,spec.ts}: Store commonly used locators in variables/constants for reuse
Follow Page Object Model pattern consistently in Playwright tests

Files:

  • apps/meteor/tests/e2e/presence.spec.ts
  • apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts
  • apps/meteor/tests/e2e/page-objects/fragments/navbar.ts
apps/meteor/tests/e2e/page-objects/**/*.ts

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

Utilize existing page objects pattern from apps/meteor/tests/e2e/page-objects/

Files:

  • apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts
  • apps/meteor/tests/e2e/page-objects/fragments/navbar.ts
🧠 Learnings (14)
📚 Learning: 2026-02-10T16:32:42.586Z
Learnt from: tassoevan
Repo: RocketChat/Rocket.Chat PR: 38528
File: apps/meteor/client/startup/roles.ts:14-14
Timestamp: 2026-02-10T16:32:42.586Z
Learning: In Rocket.Chat's Meteor client code, DDP streams use EJSON and Date fields arrive as Date objects; do not manually construct new Date() in stream handlers (for example, in sdk.stream()). Only REST API responses return plain JSON where dates are strings, so implement explicit conversion there if needed. Apply this guidance to all TypeScript files under apps/meteor/client to ensure consistent date handling in DDP streams and REST responses.

Applied to files:

  • apps/meteor/client/lib/userStatuses.ts
  • apps/meteor/client/lib/presence.ts
  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/client/components/UserStatusText/index.ts
  • apps/meteor/client/components/UserStatusText/useExpirationText.ts
  • apps/meteor/client/lib/userData.ts
📚 Learning: 2026-05-11T20:30:35.265Z
Learnt from: tassoevan
Repo: RocketChat/Rocket.Chat PR: 40480
File: apps/meteor/client/meteor/startup/accounts.ts:59-61
Timestamp: 2026-05-11T20:30:35.265Z
Learning: In Rocket.Chat’s Meteor client code, when calling `dispatchToastMessage` with `{ type: 'error' }`, pass the raw caught error object as `message` without manual normalization. `dispatchToastMessage` is designed to accept `message: unknown` for error toasts, so avoid converting errors to strings (e.g., `String(error)`) or extracting `error.message` before passing them.

Applied to files:

  • apps/meteor/client/lib/userStatuses.ts
  • apps/meteor/client/lib/presence.ts
  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/client/components/UserStatusText/index.ts
  • apps/meteor/client/components/UserStatusText/useExpirationText.ts
  • apps/meteor/client/lib/userData.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • apps/meteor/client/lib/userStatuses.ts
  • apps/meteor/client/lib/presence.ts
  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/client/components/UserStatusText/index.ts
  • ee/packages/presence/src/Presence.ts
  • packages/core-typings/src/IMeApiUser.ts
  • packages/core-services/src/events/Events.ts
  • apps/meteor/app/notifications/client/lib/Presence.ts
  • apps/meteor/app/lib/server/functions/getFullUserData.ts
  • packages/core-typings/src/IUser.ts
  • apps/meteor/app/utils/server/functions/getBaseUserFields.ts
  • apps/meteor/client/components/UserStatusText/useExpirationText.ts
  • apps/meteor/server/modules/listeners/listeners.module.ts
  • packages/ddp-client/src/types/streams.ts
  • apps/meteor/client/lib/userData.ts
  • apps/meteor/server/modules/notifications/notifications.module.ts
  • apps/meteor/app/api/server/v1/users.ts
  • apps/meteor/app/api/server/helpers/getUserFromParams.ts
  • apps/meteor/tests/e2e/presence.spec.ts
  • packages/rest-typings/src/v1/users.ts
  • apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts
  • apps/meteor/tests/end-to-end/api/users.ts
  • apps/meteor/tests/e2e/page-objects/fragments/navbar.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • apps/meteor/client/lib/userStatuses.ts
  • apps/meteor/client/lib/presence.ts
  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/client/components/UserStatusText/index.ts
  • ee/packages/presence/src/Presence.ts
  • packages/core-typings/src/IMeApiUser.ts
  • packages/core-services/src/events/Events.ts
  • apps/meteor/app/notifications/client/lib/Presence.ts
  • apps/meteor/app/lib/server/functions/getFullUserData.ts
  • packages/core-typings/src/IUser.ts
  • apps/meteor/app/utils/server/functions/getBaseUserFields.ts
  • apps/meteor/client/components/UserStatusText/useExpirationText.ts
  • apps/meteor/server/modules/listeners/listeners.module.ts
  • packages/ddp-client/src/types/streams.ts
  • apps/meteor/client/lib/userData.ts
  • apps/meteor/server/modules/notifications/notifications.module.ts
  • apps/meteor/app/api/server/v1/users.ts
  • apps/meteor/app/api/server/helpers/getUserFromParams.ts
  • apps/meteor/tests/e2e/presence.spec.ts
  • packages/rest-typings/src/v1/users.ts
  • apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts
  • apps/meteor/tests/end-to-end/api/users.ts
  • apps/meteor/tests/e2e/page-objects/fragments/navbar.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • apps/meteor/client/lib/userStatuses.ts
  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx
  • apps/meteor/client/sidebar/RoomList/RoomList.tsx
  • apps/meteor/client/lib/presence.ts
  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/client/components/UserStatusText/index.ts
  • apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersItem.tsx
  • apps/meteor/client/views/room/UserCard/UserCardWithData.tsx
  • ee/packages/presence/src/Presence.ts
  • apps/meteor/client/components/UserStatusText/UserStatusText.tsx
  • packages/core-typings/src/IMeApiUser.ts
  • packages/core-services/src/events/Events.ts
  • apps/meteor/app/notifications/client/lib/Presence.ts
  • apps/meteor/app/lib/server/functions/getFullUserData.ts
  • apps/meteor/client/components/UserStatusText/useStatusTooltip.tsx
  • apps/meteor/client/views/room/Header/RoomTopic.tsx
  • packages/core-typings/src/IUser.ts
  • apps/meteor/app/utils/server/functions/getBaseUserFields.ts
  • apps/meteor/client/sidebar/RoomList/RoomListRow.tsx
  • apps/meteor/client/components/UserStatusText/useExpirationText.ts
  • apps/meteor/server/modules/listeners/listeners.module.ts
  • packages/ddp-client/src/types/streams.ts
  • apps/meteor/client/components/UserInfo/UserInfo.tsx
  • apps/meteor/client/lib/userData.ts
  • apps/meteor/server/modules/notifications/notifications.module.ts
  • apps/meteor/client/views/room/contextualBar/UserInfo/UserInfoWithData.tsx
  • apps/meteor/app/api/server/v1/users.ts
  • apps/meteor/app/api/server/helpers/getUserFromParams.ts
  • apps/meteor/tests/e2e/presence.spec.ts
  • packages/rest-typings/src/v1/users.ts
  • apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx
  • apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts
  • apps/meteor/tests/end-to-end/api/users.ts
  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx
  • apps/meteor/tests/e2e/page-objects/fragments/navbar.ts
📚 Learning: 2026-03-27T14:52:56.865Z
Learnt from: dougfabris
Repo: RocketChat/Rocket.Chat PR: 39892
File: apps/meteor/client/views/room/contextualBar/Threads/Thread.tsx:150-155
Timestamp: 2026-03-27T14:52:56.865Z
Learning: In Rocket.Chat, there are two different `ModalBackdrop` components with different prop APIs. During review, confirm the import source: (1) `rocket.chat/fuselage` `ModalBackdrop` uses `ModalBackdropProps` based on `BoxProps` (so it supports `onClick` and other Box/DOM props) and does not have an `onDismiss` prop; (2) `rocket.chat/ui-client` `ModalBackdrop` uses a narrower props interface like `{ children?: ReactNode; onDismiss?: () => void }` and handles Escape keypress and outside mouse-up, and it does not forward arbitrary DOM props such as `onClick`. Flag mismatched props (e.g., `onDismiss` passed to the fuselage component or `onClick` passed to the ui-client component) and ensure the usage matches the correct component being imported.

Applied to files:

  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx
  • apps/meteor/client/sidebar/RoomList/RoomList.tsx
  • apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersItem.tsx
  • apps/meteor/client/views/room/UserCard/UserCardWithData.tsx
  • apps/meteor/client/components/UserStatusText/UserStatusText.tsx
  • apps/meteor/client/components/UserStatusText/useStatusTooltip.tsx
  • apps/meteor/client/views/room/Header/RoomTopic.tsx
  • apps/meteor/client/sidebar/RoomList/RoomListRow.tsx
  • apps/meteor/client/components/UserInfo/UserInfo.tsx
  • apps/meteor/client/views/room/contextualBar/UserInfo/UserInfoWithData.tsx
  • apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx
  • apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/EditStatusModal.tsx
📚 Learning: 2026-02-24T19:22:48.358Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 38493
File: apps/meteor/tests/e2e/omnichannel/omnichannel-send-pdf-transcript.spec.ts:66-67
Timestamp: 2026-02-24T19:22:48.358Z
Learning: In Playwright end-to-end tests (e.g., under apps/meteor/tests/e2e/...), prefer locating elements by translated text (getByText) and ARIA roles (getByRole) over data-qa attributes. If translation values change, update the corresponding test locators accordingly. Never use data-qa locators. This guideline applies to all Playwright e2e test specs in the repository and helps keep tests robust to UI text changes and accessible semantics.

Applied to files:

  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/tests/e2e/presence.spec.ts
📚 Learning: 2026-03-06T18:10:15.268Z
Learnt from: tassoevan
Repo: RocketChat/Rocket.Chat PR: 39397
File: packages/gazzodown/src/code/CodeBlock.spec.tsx:47-68
Timestamp: 2026-03-06T18:10:15.268Z
Learning: In tests (especially those using testing-library/dom/jsdom) for Rocket.Chat components, the HTML <code> element has an implicit ARIA role of 'code'. Therefore, screen.getByRole('code') or screen.findByRole('code') will locate <code> elements even without a role attribute. Do not flag findByRole('code') as invalid in reviews; prefer using the implicit role instead of adding role="code" unless necessary for accessibility.

Applied to files:

  • apps/meteor/client/lib/presence.spec.ts
  • apps/meteor/tests/e2e/presence.spec.ts
📚 Learning: 2026-02-23T17:53:06.802Z
Learnt from: ggazzo
Repo: RocketChat/Rocket.Chat PR: 35995
File: apps/meteor/app/api/server/v1/rooms.ts:1107-1112
Timestamp: 2026-02-23T17:53:06.802Z
Learning: During PR reviews that touch endpoint files under apps/meteor/app/api/server/v1, enforce strict scope: if a PR targets a specific endpoint (e.g., rooms.favorite), do not propose changes to unrelated endpoints (e.g., rooms.invite) unless maintainers explicitly request them. Focus feedback on the touched endpoint's behavior, API surface, and related tests; avoid broad cross-endpoint changes in the same PR unless requested.

Applied to files:

  • apps/meteor/app/api/server/v1/users.ts
📚 Learning: 2026-02-24T19:09:01.522Z
Learnt from: ahmed-n-abdeltwab
Repo: RocketChat/Rocket.Chat PR: 38974
File: apps/meteor/app/api/server/v1/im.ts:220-221
Timestamp: 2026-02-24T19:09:01.522Z
Learning: In Rocket.Chat OpenAPI migration PRs for endpoints under apps/meteor/app/api/server/v1, avoid introducing logic changes. Only perform scope-tight changes that preserve behavior; style-only cleanups (e.g., removing inline comments) may be deferred to follow-ups to keep the migration PR focused.

Applied to files:

  • apps/meteor/app/api/server/v1/users.ts
📚 Learning: 2026-03-15T14:31:25.380Z
Learnt from: amitb0ra
Repo: RocketChat/Rocket.Chat PR: 39647
File: apps/meteor/app/api/server/v1/users.ts:710-757
Timestamp: 2026-03-15T14:31:25.380Z
Learning: Do not flag this type/schema misalignment in the OpenAPI/migration review for apps/meteor/app/api/server/v1/users.ts. The UserCreateParamsPOST type intentionally uses non-optional fields: fields: string and settings?: IUserSettings without an AJV schema entry, carried over from the original rest-typings (PR `#39647`). Treat this as a known pre-existing divergence and document it as a separate follow-up fix; do not block or mark it as a review issue during the migration.

Applied to files:

  • apps/meteor/app/api/server/v1/users.ts
📚 Learning: 2026-03-16T23:33:11.443Z
Learnt from: amitb0ra
Repo: RocketChat/Rocket.Chat PR: 39676
File: apps/meteor/app/api/server/v1/users.ts:862-869
Timestamp: 2026-03-16T23:33:11.443Z
Learning: In rockets OpenAPI/AJV migration reviews for RocketChat/Rocket.Chat, when reviewing migrations that involve apps/meteor/app/api/server/v1/users.ts, do not require or flag a missing query AJV schema for the fields consumed by parseJsonQuery() (i.e., fields, sort, query) as part of this endpoint's migration PR. The addition of global query-param schemas for parseJsonQuery() usage is a cross-cutting concern and out of scope for individual endpoint migrations. Only flag violations related to the specific scope of the migration, not the absence of a query schema for parseJsonQuery() in this file.

Applied to files:

  • apps/meteor/app/api/server/v1/users.ts
📚 Learning: 2026-02-24T19:39:42.247Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 38493
File: apps/meteor/tests/e2e/page-objects/fragments/message.ts:7-7
Timestamp: 2026-02-24T19:39:42.247Z
Learning: In RocketChat e2e tests, avoid using data-qa attributes to locate elements. Prefer semantic locators such as getByRole, getByLabel, getByText, getByTitle and ARIA-based selectors. Apply this rule to all TypeScript files under apps/meteor/tests/e2e to improve test reliability, accessibility, and maintainability.

Applied to files:

  • apps/meteor/tests/e2e/presence.spec.ts
  • apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts
  • apps/meteor/tests/e2e/page-objects/fragments/navbar.ts
📚 Learning: 2025-12-16T17:29:40.430Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 37834
File: apps/meteor/tests/e2e/page-objects/fragments/admin-flextab-emoji.ts:12-22
Timestamp: 2025-12-16T17:29:40.430Z
Learning: In all page-object files under apps/meteor/tests/e2e/page-objects/, import expect from ../../utils/test (Playwright's async expect) instead of from Jest. Jest's expect is synchronous and incompatible with web-first assertions like toBeVisible, which can cause TypeScript errors.

Applied to files:

  • apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts
  • apps/meteor/tests/e2e/page-objects/fragments/navbar.ts
🪛 ast-grep (0.42.2)
apps/meteor/tests/e2e/page-objects/fragments/modals/edit-status-modal.ts

[warning] 40-40: Regular expression constructed from variable input detected. This can lead to Regular Expression Denial of Service (ReDoS) attacks if the variable contains malicious patterns. Use libraries like 'recheck' to validate regex safety or use static patterns.
Context: new RegExp(duration)
Note: [CWE-1333] Inefficient Regular Expression Complexity [REFERENCES]
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
- https://cwe.mitre.org/data/definitions/1333.html

(regexp-from-variable)

🔇 Additional comments (39)
apps/meteor/client/lib/userStatuses.ts (1)

16-26: LGTM!

packages/i18n/src/locales/en.i18n.json (1)

5141-5148: LGTM!

packages/core-typings/src/IUser.ts (1)

299-302: LGTM!

packages/core-typings/src/IMeApiUser.ts (1)

31-32: LGTM!

ee/packages/presence/src/Presence.ts (1)

353-353: LGTM!

packages/core-services/src/events/Events.ts (1)

162-162: LGTM!

apps/meteor/server/modules/notifications/notifications.module.ts (1)

2-2: LGTM!

Also applies to: 490-493

apps/meteor/client/components/UserStatusText/useStatusTooltip.tsx (1)

8-38: LGTM!

packages/rest-typings/src/v1/users.ts (1)

106-109: LGTM!

Also applies to: 321-328

apps/meteor/app/utils/server/functions/getBaseUserFields.ts (1)

13-14: LGTM!

apps/meteor/client/views/room/contextualBar/UserInfo/UserInfoWithData.tsx (1)

61-61: LGTM!

Also applies to: 92-92

apps/meteor/client/views/room/UserCard/UserCardWithData.tsx (1)

13-13: LGTM!

Also applies to: 49-50, 67-67

apps/meteor/client/lib/userData.ts (1)

21-22: LGTM!

Also applies to: 163-165

apps/meteor/client/sidebar/RoomList/RoomList.tsx (1)

23-24: LGTM!

Also applies to: 44-46

apps/meteor/app/lib/server/functions/getFullUserData.ts (1)

21-22: LGTM!

apps/meteor/client/sidebar/RoomList/RoomListRow.tsx (1)

19-19: LGTM!

Also applies to: 25-25, 51-51

apps/meteor/server/modules/listeners/listeners.module.ts (3)

160-160: LGTM!

Also applies to: 175-177, 180-182


185-194: LGTM!


197-197: LGTM!

apps/meteor/app/api/server/v1/users.ts (3)

1518-1529: LGTM!


2023-2038: LGTM!


2040-2059: LGTM!

apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersItem.tsx (1)

57-67: LGTM!

apps/meteor/client/navbar/NavBarSettingsToolbar/UserMenu/UserMenuHeader.tsx (1)

33-37: LGTM!

apps/meteor/tests/e2e/presence.spec.ts (2)

97-120: LGTM!


78-95: Page object methods correctly use semantic locators.

The page object implementations for customDateInput, customTimeInput, and selectDuration all use semantic locators (getByLabel and getByRole) as required. No changes needed.

apps/meteor/client/components/UserStatusText/index.ts (1)

1-5: LGTM!

apps/meteor/client/lib/presence.ts (1)

78-86: Date conversion correctly handles REST response strings.

The conversion of statusExpiresAt from ISO string to Date object is correct for REST API responses. Based on learnings, DDP streams deliver Date objects via EJSON, but REST responses return JSON strings that require explicit conversion.

The code correctly converts only when statusExpiresAt is present. If server-side validation is added per the earlier comment on users.setStatus, this will be fully defensive.

apps/meteor/client/lib/presence.spec.ts (2)

52-76: LGTM!


78-100: LGTM!

apps/meteor/app/api/server/helpers/getUserFromParams.ts (1)

13-18: LGTM!

apps/meteor/client/views/room/Header/RoomTopic.tsx (1)

4-5: LGTM!

Also applies to: 16-16, 19-19, 26-28, 42-44

apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx (1)

4-4: LGTM!

Also applies to: 10-10, 124-125

apps/meteor/app/notifications/client/lib/Presence.ts (1)

1-1: LGTM!

Also applies to: 13-13, 17-25

packages/ddp-client/src/types/streams.ts (1)

235-236: LGTM!

Also applies to: 301-314

apps/meteor/tests/end-to-end/api/users.ts (1)

135-140: LGTM!

Also applies to: 5144-5144, 5158-5158, 5319-5357

apps/meteor/client/components/UserInfo/UserInfo.tsx (1)

25-25: LGTM!

Also applies to: 42-42, 75-75, 108-108

apps/meteor/client/components/UserStatusText/UserStatusText.tsx (1)

1-48: LGTM!

apps/meteor/tests/e2e/page-objects/fragments/navbar.ts (1)

247-265: LGTM!

Comment thread apps/meteor/app/api/server/v1/users.ts Outdated
Comment thread apps/meteor/client/components/UserStatusText/useExpirationText.ts
Comment thread apps/meteor/client/sidebar/RoomList/SidebarItemTemplateWithData.tsx
Comment thread packages/rest-typings/src/v1/users.ts
@ricardogarim ricardogarim marked this pull request as ready for review May 12, 2026 11:01
@ricardogarim ricardogarim requested review from a team as code owners May 12, 2026 11:01
@ricardogarim ricardogarim added this to the 8.5.0 milestone May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Pull requests that introduces new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant