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
F3374655: D8851.diff
Tue, Nov 26, 4:34 PM
Unknown Object (File)
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
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
No Lint Coverage
Unit
No Test Coverage

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