Page MenuHomePhabricator

[web] Use chat mention candidates in markdown rules
ClosedPublic

Authored by patryk on Aug 17 2023, 10:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 29, 7:53 PM
Unknown Object (File)
Tue, Aug 27, 2:40 PM
Unknown Object (File)
Mon, Aug 26, 9:19 PM
Unknown Object (File)
Aug 6 2024, 8:18 PM
Unknown Object (File)
Aug 6 2024, 8:18 PM
Unknown Object (File)
Aug 6 2024, 8:18 PM
Unknown Object (File)
Aug 6 2024, 8:18 PM
Unknown Object (File)
Aug 6 2024, 8:17 PM
Subscribers

Details

Summary

This diff adds the chatMentionCandidates object to all functions that return textMessageRules in rules.react.js, and includes this object as a parameter in all occurrences of these functions.

Depends on D8871, D8834.

Test Plan

Before testing, please apply the entire web stack.

  1. Check if mentions are rendered correctly (see D8852).
  2. Check if mention content is not replaced to default text (@[[id:default text]]) when pending sidebar is created.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

patryk held this revision as a draft.
patryk edited the test plan for this revision. (Show Details)
patryk added reviewers: tomek, inka, rohan.
patryk edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Aug 28 2023, 4:01 AM

Change getDefaultTextMessageRules

We probably should memoize the rules

Rebase and early return textMessageRules