overleaf/services/web/frontend/js/features
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
..
algolia-search Merge pull request #19126 from overleaf/td-bs5-contact-modal-react 2024-08-14 08:04:37 +00:00
autoplay-video
bookmarkable-tab
chat Merge pull request #20137 from overleaf/jpa-fix-e2e 2024-08-30 08:04:46 +00:00
clone-project-modal/components Merge pull request #19466 from overleaf/ii-bs5-projects-tags 2024-07-25 08:05:20 +00:00
compromised-password/components
contact-form Merge pull request #19126 from overleaf/td-bs5-contact-modal-react 2024-08-14 08:04:37 +00:00
cookie-banner
dictionary
editor-left-menu Merge pull request #20231 from overleaf/ii-bs5-ide-header-light 2024-09-09 08:05:10 +00:00
editor-navigation-toolbar/components Merge pull request #20231 from overleaf/ii-bs5-ide-header-light 2024-09-09 08:05:10 +00:00
event-tracking Merge pull request #20024 from overleaf/mf-plans-page-click 2024-09-02 08:05:39 +00:00
fallback-image
faq-search
file-tree Merge pull request #20057 from overleaf/jpa-readonly-tuning 2024-08-23 08:04:48 +00:00
file-view Merge pull request #20057 from overleaf/jpa-readonly-tuning 2024-08-23 08:04:48 +00:00
form-helpers
group-management
header-footer-react Merge pull request #20140 from overleaf/rd-footer-react 2024-08-30 08:04:29 +00:00
history Merge pull request #20233 from overleaf/mj-restore-promo 2024-09-09 08:05:01 +00:00
hotkeys-modal/components
ide-react Merge pull request #20272 from overleaf/revert-20268-revert-19885-mj-resizeable-panels 2024-09-06 08:05:28 +00:00
link-helpers
mathjax
multi-submit
outline/components Merge pull request #20172 from overleaf/rd-ide-fileoutline 2024-09-04 08:05:12 +00:00
pdf-preview feat: making highlighting of errors more specific (#19963) 2024-09-04 08:04:48 +00:00
plans Merge pull request #19942 from overleaf/mf-group-dropdown-connect-button-cta 2024-08-16 08:04:53 +00:00
preview
project-list Fix tag name overflow in projects list (#20120) 2024-09-04 08:04:57 +00:00
review-panel-new Implement a floating "Add comment" button for the redesigned review panel (#19891) 2024-09-17 08:04:58 +00:00
settings Merge pull request #20256 from overleaf/jdt-enable-writefull-unset 2024-09-06 08:05:52 +00:00
share-project-modal Merge pull request #20080 from overleaf/rh-lost-edit-access-modal 2024-08-28 08:04:34 +00:00
source-editor Implement a floating "Add comment" button for the redesigned review panel (#19891) 2024-09-17 08:04:58 +00:00
subscription Implement free trial limits (#19507) 2024-08-08 08:05:05 +00:00
token-access/components Merge pull request #19747 from overleaf/ab-v1-project-import-module 2024-08-06 08:05:11 +00:00
ui/components Add "For government" link to fat footer react 2024-09-05 08:06:02 +00:00
utils Merge pull request #18996 from overleaf/td-bs5-nav-react 2024-08-22 08:05:03 +00:00
word-count-modal