overleaf/services/web/frontend/js/features/source-editor/extensions
David a323f3af75 Implement a floating "Add comment" button for the redesigned review panel (#19891)
* Implement floating Add comment button

* Fix comment typo

* Remove unused imports

* Make tooltip always appear above cursor

Co-authored-by: Domagoj Kriskovic <dom.kriskovic@overleaf.com>

* Refactor how new comment form is positioned

* Add missing file

* Create new map when rendering positions

* Use codemirror state to manage ranges and allow for mutliple in-progress comments

* Memoise sorting

* Create new ranges map each time it is changed

* Add back mutation observer

* Only allow single tooltip

* Fix typo

* Convert state field to store a single tooltip

* Make add comment tooltip content a react component

* Refactor to remove usages of !important

* Use RangeSet to keep track of new comment ranges

* Fix logic broken in rebase

* Map ranges through document changes

* Add decorations for in-progress comments

* Use set-review-panel-open rather than an editor event to open review panel

* Implement new designs for add comment form

* Add padding to textarea

* Fix bug where comment was being submitted for incorrect range

* Add missing key to ReviewPanelAddComment

* Store new comment ranges as a DecorationSet

* Small refactor to how ReviewPanelAddCommens are rendered

* Make op prop to ReviewPanelEntry required

* Add handling for disabling of add comemnt form buttons

* Move viewer check inside AddCommentTooltip

* Ensure that add comment button doesn't reshow when collaborators edit the document

* Remove unneeded op check in ReviewPanelEntry

* Update services/web/frontend/js/features/review-panel-new/components/review-panel-add-comment.tsx

Co-authored-by: Domagoj Kriskovic <dom.kriskovic@overleaf.com>

---------

Co-authored-by: Domagoj Kriskovic <dom.kriskovic@overleaf.com>
GitOrigin-RevId: 3110845f6a557310f3bf72014689e2f2ab53e966
2024-09-17 08:04:58 +00:00
..
changes extracted rejectChanges to a separate file 2024-08-26 08:05:10 +00:00
spelling Remove setTimeout from spell check results dispatch (#20342) 2024-09-13 08:04:55 +00:00
toolbar [visual] Add support for description list environments (#13460) 2024-05-03 08:04:53 +00:00
visual Use estimated height of math widget (#20359) 2024-09-13 08:04:50 +00:00
add-comment.ts Implement a floating "Add comment" button for the redesigned review panel (#19891) 2024-09-17 08:04:58 +00:00
annotations.ts feat: making highlighting of errors more specific (#19963) 2024-09-04 08:04:48 +00:00
auto-complete.ts Merge pull request #18782 from overleaf/mj-symbol-palette-inline 2024-06-19 08:04:12 +00:00
auto-pair.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
bracket-matching.ts Ensure that each editor theme is only created once (#17095) 2024-02-16 09:05:03 +00:00
browser.ts Merge pull request #17525 from overleaf/ae-upgrade-prettier 2024-03-26 09:04:05 +00:00
bundle.ts Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
class-highlighter.ts Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
command-tooltip.ts [visual] Show tooltip with target for linkable nodes (#13636) 2023-08-14 08:05:09 +00:00
cursor-highlights.ts Ensure that each editor theme is only created once (#17095) 2024-02-16 09:05:03 +00:00
cursor-position.ts Merge pull request #14980 from overleaf/jpa-debug-console 2023-09-28 08:04:12 +00:00
doc-name.ts Update the CodeMirror language when the current file is renamed (#16342) 2024-01-15 09:04:27 +00:00
draw-selection.ts Ensure that each editor theme is only created once (#17095) 2024-02-16 09:05:03 +00:00
editable.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
effect-listeners.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
empty-line-filler.ts Ensure that each editor theme is only created once (#17095) 2024-02-16 09:05:03 +00:00
figure-modal.ts Remove editor split tests (#14985) 2023-10-04 08:04:34 +00:00
file-tree-item-drop.ts Allow files to be dragged from the file tree into the editor (#15028) 2024-05-09 08:04:46 +00:00
filter-characters.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
folding-keymap.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
font-load.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
geometry-change-event.ts Remove Angular/Pug review panel code (#15935) 2023-11-29 09:04:13 +00:00
go-to-line.ts Ensure that each editor theme is only created once (#17095) 2024-02-16 09:05:03 +00:00
highlight-active-line.ts Ensure that each editor theme is only created once (#17095) 2024-02-16 09:05:03 +00:00
highlight-special-chars.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
indentation-markers.ts Merge pull request #18525 from overleaf/jdt-disable-indenttaion-safari 2024-05-31 08:04:56 +00:00
index.ts Implement a floating "Add comment" button for the redesigned review panel (#19891) 2024-09-17 08:04:58 +00:00
inline-background.ts Ensure that each editor theme is only created once (#17095) 2024-02-16 09:05:03 +00:00
keybindings.ts Ensure that codemirror-emacs and codemirror-vim are dynamically imported (#15902) 2023-11-28 09:04:19 +00:00
keymaps.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
language.ts Streamline the project references context provider (#19387) 2024-07-16 08:04:30 +00:00
line-numbers.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
line-wrapping-indentation.ts [cm6] Only rebuild changed line indentation decorations (#16126) 2024-01-04 09:03:23 +00:00
linting.ts Merge pull request #19253 from overleaf/mj-bibtex-linter 2024-07-15 09:01:21 +00:00
math-preview.tsx Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197) 2024-09-17 08:04:53 +00:00
phrases.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
ranges.ts extracted rejectChanges to a separate file 2024-08-26 08:05:10 +00:00
realtime.ts Merge pull request #20052 from overleaf/em-tracked-deletes-limit 2024-08-27 08:04:31 +00:00
scroll-one-line.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
scroll-position.ts Move updateListener out of sourceOnly wrapper (#19573) 2024-08-07 08:05:50 +00:00
search.ts Ensure that each editor theme is only created once (#17095) 2024-02-16 09:05:03 +00:00
shortcuts.ts Use StringQuery and selectWord from @codemirror/search (#12828) 2023-07-17 10:44:26 +00:00
symbol-palette.ts Merge pull request #13241 from overleaf/ae-extensions-documentation 2023-07-17 10:28:53 +00:00
theme.ts Remove underline from lint range highlight (#20243) 2024-09-13 08:05:05 +00:00
third-party-extensions.ts Dispatch 'UNSTABLE_editor:extensions' event on 'editor:extension-loaded' (#16611) 2024-01-24 09:03:28 +00:00
track-changes.ts trackDetachedComments as separate extension 2024-08-26 08:04:56 +00:00
track-detached-comments.ts trackDetachedComments as separate extension 2024-08-26 08:04:56 +00:00
vertical-overflow.ts Add review panel context providers and components (#19490) 2024-08-13 08:04:20 +00:00
visual-line-selection.ts Merge pull request #13061 from overleaf/mj-cm6-translations 2023-05-16 08:04:11 +00:00
wait-for-parser.ts Merge pull request #15118 from overleaf/jpa-mj-remove-promise 2023-10-16 08:04:07 +00:00