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
F3367391: D8851.diff
Mon, Nov 25, 2:44 PM
Unknown Object (File)
Fri, Nov 15, 9:10 AM
Unknown Object (File)
Sun, Nov 10, 2:46 PM
Unknown Object (File)
Fri, Nov 8, 7:25 AM
Unknown Object (File)
Fri, Nov 8, 6:02 AM
Unknown Object (File)
Fri, Nov 8, 5:08 AM
Unknown Object (File)
Oct 27 2024, 2:49 PM
Unknown Object (File)
Oct 14 2024, 3:37 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