This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Commit 6cff984
Room and user mentions for plain text editor (#10665)
* update useSuggestion
* update useSuggestion-tests
* add processMention tests
* add test
* add getMentionOrCommand tests
* change mock href for codeQL reasons
* fix TS issue in test
* add a big old cypress test
* fix lint error
* update comments
* reorganise functions in order of importance
* rename functions and variables
* add endOffset to return object
* fix failing tests
* update function names and comments
* update comment, remove delay
* update comments and early return
* nest mappedSuggestion inside Suggestion state and update test
* rename suggestion => suggestionData
* update comment
* add argument to findSuggestionInText
* make findSuggestionInText return mappedSuggestion
* fix TS error
* update comments and index check from === -1 to < 0
* tidy logic in increment functions
* rename variable
* Big refactor to address multiple comments, improve behaviour and add tests
* improve comments
* tidy up comment
* extend comment
* combine similar returns
* update comment
* remove single use variable
* fix comments1 parent 6711e07 commit 6cff984
File tree
3 files changed
+505
-125
lines changed- cypress/e2e/composer
- src/components/views/rooms/wysiwyg_composer/hooks
- test/components/views/rooms/wysiwyg_composer/hooks
3 files changed
+505
-125
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
184 | 261 | | |
185 | 262 | | |
186 | 263 | | |
| |||
0 commit comments