mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
a323f3af75
* 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 |
||
---|---|---|
.. | ||
changes | ||
spelling | ||
toolbar | ||
visual | ||
add-comment.ts | ||
annotations.ts | ||
auto-complete.ts | ||
auto-pair.ts | ||
bracket-matching.ts | ||
browser.ts | ||
bundle.ts | ||
class-highlighter.ts | ||
command-tooltip.ts | ||
cursor-highlights.ts | ||
cursor-position.ts | ||
doc-name.ts | ||
draw-selection.ts | ||
editable.ts | ||
effect-listeners.ts | ||
empty-line-filler.ts | ||
figure-modal.ts | ||
file-tree-item-drop.ts | ||
filter-characters.ts | ||
folding-keymap.ts | ||
font-load.ts | ||
geometry-change-event.ts | ||
go-to-line.ts | ||
highlight-active-line.ts | ||
highlight-special-chars.ts | ||
indentation-markers.ts | ||
index.ts | ||
inline-background.ts | ||
keybindings.ts | ||
keymaps.ts | ||
language.ts | ||
line-numbers.ts | ||
line-wrapping-indentation.ts | ||
linting.ts | ||
math-preview.tsx | ||
phrases.ts | ||
ranges.ts | ||
realtime.ts | ||
scroll-one-line.ts | ||
scroll-position.ts | ||
search.ts | ||
shortcuts.ts | ||
symbol-palette.ts | ||
theme.ts | ||
third-party-extensions.ts | ||
track-changes.ts | ||
track-detached-comments.ts | ||
vertical-overflow.ts | ||
visual-line-selection.ts | ||
wait-for-parser.ts |