Bug 167559 - Tabbed Notebookbar's "Edit Comment" button shown when no comment exists in selected cells, and "Comment" button not hidden on selected cells with existing comment
Summary: Tabbed Notebookbar's "Edit Comment" button shown when no comment exists in se...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Notebookbar Comments
  Show dependency treegraph
 
Reported: 2025-07-18 02:59 UTC by Jeff Fortin Tam
Modified: 2025-07-18 03:07 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Demonstration video (489.25 KB, video/mp4)
2025-07-18 02:59 UTC, Jeff Fortin Tam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Fortin Tam 2025-07-18 02:59:35 UTC
Created attachment 201857 [details]
Demonstration video

Actual behavior:

When using the "Tabbed" notebookbar UI layout type, in Calc, in the "Review" tab, both the "Comment" and "Edit comment" buttons are shown at all times, which is wasting precious horizontal space in the toolbar, because those two actions are mutually exclusive, particularly when a single cell is selected (but even if multiple cells are selected, you can only insert a comment in one cell at a time, and you can only edit a single comment at a time, both of which behave unpredictably wrt the selection).


Expected behavior, when a cell is selected:

* If the cell doesn't have an existing comment: only show the "Comment" button
* If the cell has an existing comment: only show the "Edit comment" button


---

This was observed with:

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 1 Jeff Fortin Tam 2025-07-18 03:07:39 UTC
The potentially simpler alternative to playing whack-a-mole (always toggling the statuses of those two buttons from that pair) might be to have only one button that does both functions, i.e.:
* Automatically create the comment when there is none;
* Edit the comment when there is an existing one.

With that, I believe it would also make sense to disable the button entirely when a selection comprises more than one cell, since comments apparently can't be applied to regions in practice, only single cells.