overleaf/services/web/frontend/stylesheets/app
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
..
editor Implement a floating "Add comment" button for the redesigned review panel (#19891) 2024-09-17 08:04:58 +00:00
list
plans Fix sticky header is terminated earlier than it should because of the margin in the header element (#20275) 2024-09-06 08:05:20 +00:00
about-page.less
about.less
account-settings.less Merge pull request #19472 from overleaf/rd-stylelint-ci 2024-07-23 08:04:09 +00:00
add-secondary-email-prompt.less Merge pull request #18320 from overleaf/dp-add-secondary-prompt-ui 2024-05-27 10:22:40 +00:00
admin-hub.less
base.less Merge pull request #19722 from overleaf/jel-green-50 2024-08-02 08:05:44 +00:00
beta-program.less
blog-posts.less
blog.less
bonus.less
change-plan-modal.less Merge pull request #17479 from overleaf/mf-clean-up-plans-styling 2024-05-15 08:05:20 +00:00
cms-page.less Merge pull request #19992 from overleaf/jel-cms-quote 2024-08-22 08:05:30 +00:00
confirm-email.less Merge pull request #18320 from overleaf/dp-add-secondary-prompt-ui 2024-05-27 10:22:40 +00:00
contact-us.less
content_page.less Merge pull request #10830 from overleaf/jel-remove-test-show-unified-navigation 2022-12-13 09:04:28 +00:00
editor.less Add review panel context providers and components (#19490) 2024-08-13 08:04:20 +00:00
error-pages.less Merge pull request #8426 from overleaf/ta-error-pages-style 2022-06-23 08:02:34 +00:00
features.less
front-chat-widget.less
grammarly.less Merge pull request #9747 from overleaf/ii-cm6-grammarly-dark-theme-css-fix 2022-09-28 08:06:08 +00:00
group-subscription-modal.less Merge pull request #17479 from overleaf/mf-clean-up-plans-styling 2024-05-15 08:05:20 +00:00
homepage.less Merge pull request #19722 from overleaf/jel-green-50 2024-08-02 08:05:44 +00:00
import.less
institution-hub.less
invite.less Add new interstitial 'Join project' consent page for existing link sharing editors when opening a project (#19066) 2024-06-26 11:12:42 +00:00
login-register.less Tear Down - Tearing down of registration and login pages redesign tests (#19750) 2024-08-21 08:05:03 +00:00
metrics.less
ol-chat.less
ol-style-guide.less
open-in-overleaf.less
portals.less Merge pull request #16604 from overleaf/mf-implement-hero-image-website-redesign 2024-01-23 09:03:20 +00:00
primary-email-check.less Merge pull request #17833 from overleaf/dp-add-secondary-prompt 2024-04-11 08:04:20 +00:00
project-list-react.less Fix tag name overflow in projects list (#20120) 2024-09-04 08:04:57 +00:00
project-list.less Merge pull request #19366 from overleaf/ii-bs5-projects-list-search 2024-07-17 08:05:10 +00:00
project-url-lookup.less
publisher-hub.less
recurly.less Merge pull request #15901 from overleaf/tm-design-system-updates-teardown 2023-11-28 09:04:06 +00:00
register.less Tear Down - Tearing down of registration and login pages redesign tests (#19750) 2024-08-21 08:05:03 +00:00
review-features-page.less Merge pull request #17525 from overleaf/ae-upgrade-prettier 2024-03-26 09:04:05 +00:00
sidebar-v2-dash-pane.less fixing white color of x button (#16100) 2023-12-08 09:04:11 +00:00
sprites.less
subscription.less Merge pull request #17479 from overleaf/mf-clean-up-plans-styling 2024-05-15 08:05:20 +00:00
templates-v2.less Merge pull request #16859 from overleaf/jpa-sharelatex-cleanup 2024-02-09 09:04:11 +00:00
templates.less
translations.less
website-redesign.less Merge pull request #19909 from overleaf/jel-link-icon 2024-08-15 08:05:33 +00:00
wiki.less