Commit graph

4490 commits

Author SHA1 Message Date
Pedro Pinto Silva
ce0536eae5 Use the same tooltip style and framework for doc name & close button
Before this commit, in both cases we were not using tooltip
method (which is used everywhere) thus, resulting in inconsistent
tooltip styles, sizes and no animation (these ones were just native
browser tooltips)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If7f6213f507f5c439ceaaeb1c713c7680cf563d5
2024-04-22 12:23:17 +01:00
Pedro Pinto Silva
41063ceafb Fix unobutton's lack of pointer cursor
Before this commit buttons such as bold (in the notebookbar) or
sidebar button (in the top toolbar) would not change the cursor on hover

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ief075b4f4d187f6a5d87458d02077c0deaf69fe6
2024-04-22 12:23:17 +01:00
Henry Castro
f17bdc679f browser: preview: remove unused code
The code is old and it is not used anymore by
new changes did it.

..

Change-Id: Id163cba7f586e3a083bff4cbb169a5d16e4b0cce
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-22 11:10:47 +01:00
Shavazo
dd6760ca96 Translated using Weblate (Japanese)
Currently translated at 77.0% (451 of 585 strings)

Co-authored-by: Shavazo <pleasure.7010@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4ca32cd89ee8115aa9bc48db69f3122755017d9e
2024-04-22 08:21:16 +02:00
Ettore Atalan
861da42d71 Translated using Weblate (German)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (German)

Currently translated at 98.6% (577 of 585 strings)

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/de/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I98466f744ddb6f459c86b0163684e742fc9f2470
2024-04-22 08:21:16 +02:00
Hubert Figuière
46f32423da impress: Allow presentation in read-only mode
- We allow the slide menu and the few presentation commands

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: If2533450a3b2af365a89f780dca32daf87c0758a
2024-04-20 10:36:12 +01:00
NamelessGO
a4db9b7a65 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: NamelessGO <66227691+NameLessGO@users.noreply.github.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I566f62d87df721abcd9ebb2fc780a9df71f232ed
2024-04-19 16:08:46 +02:00
Sebastiaan Veld
b4a949c66f Translated using Weblate (Dutch)
Currently translated at 100.0% (585 of 585 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I424b6e2dba4947073c21b20975458a6be4365a5e
2024-04-19 16:08:46 +02:00
Yaron Shahrabani
937cb0079e Translated using Weblate (Hebrew)
Currently translated at 53.1% (254 of 478 strings)

Translated using Weblate (Hebrew)

Currently translated at 52.9% (253 of 478 strings)

Translated using Weblate (Hebrew)

Currently translated at 100.0% (585 of 585 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/he/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I45cf1906cca418011e62178e2d6064949707c63b
2024-04-19 16:08:46 +02:00
Oğuz Ersen
d26428d250 Translated using Weblate (Turkish)
Currently translated at 100.0% (585 of 585 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iaa3fa75a694e85196e81b080e27a531a806936a1
2024-04-19 16:08:46 +02:00
Matthaiks
fd3d39e484 Translated using Weblate (Polish)
Currently translated at 100.0% (585 of 585 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id8aa995f80f4331406b7030d58c42e25a7e84bda
2024-04-19 16:08:46 +02:00
Andras Timar
da532b947a Translated using Weblate (Hungarian)
Currently translated at 100.0% (585 of 585 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia6b0c2ceea1bfd5ab791d56c051ab1c579fe89a4
2024-04-19 16:08:46 +02:00
Pranam Lashkari
77f71b3b0b annotation: do not scroll to root comment while editing
problem:
if comment thread is very long and some action is
performed to the last comments which puts root comment out of view,
entering modify or reply mode will make scroll to root comment.
This makes editing comment/reply go out of view

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I99f8df6886a69242b3db92674516678a61d2904f
2024-04-19 14:45:52 +01:00
Pedro Pinto Silva
d84e76a841 Writer, Impress Insert tab: Annotation & Remotelink to similar place
- Make the Insert tab : insert annotation in similar place between
apps
- Use the same accesskey (accessibility, shortcut) in between apps and
the same as the one used inside of Home tab
  - Writer: Insert tab
    - Insert annotation: Add missing DE accesskey
    - Insert remotelink: Add missing accesskey
- Make both insert tabs more compact by making sure hyperlink and
remotelink stacked on both apps

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icb8c512d437a8c328e6acf2cc41fc335d660af26
2024-04-19 14:03:36 +01:00
Pedro Pinto Silva
0bc4daa15c Writer, Impress Home tab: Promote insert annotation to bigtoolitem
- Promote to big button
  - Use the same from the previous position to make the whole tab more
  - compact by changing the insert image to a simple toolitem
- Change location in the home tab so it's easier to reach and it's
more consistent between writer and impress
- Use the same accesskey (accessibility, aka shortcut) between both apps

Cypress top_toolbar_spec.js needed to be updated to make sure scroll
indicator do not cover when attempting to access it

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0b3f3b83772317263c9d5d3d0e7f35d831eaa1ed
2024-04-19 14:03:36 +01:00
Skyler Grey
914e3575d1 Use existing viewId in commentListSection avatar
In 79028c6f881dd19ecbffa2c0653634879dd35496 I replaced an instance of
using this.map._docLayer._viewId as if the user is not in the document
this becomes your own view ID and shows the wrong avatar. Unfortunately
I missed CommentListSection which has the same code.

As we already have a viewId fetched a little later down, I opted to use
it rather than get another myself

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ieda06e03902effe9be8fef3623b73d3caeef6f65
2024-04-19 14:58:32 +02:00
Miklos Vajna
00370c247b cool#8806 clipboard: don't assume that navigator.clipboard is always defined
Trying to paste from the notebookbar in a setup which is not localhost
but uses http resulted in a JS exception:

> Clipboard.js:863 Uncaught TypeError: Cannot read properties of undefined (reading 'read')

We assumed that navigator.clipboard is always defined, but then its
'read' and 'write' properties may be undefined.

Fix the problem by abstracting this, and check for navigator.clipboard
as well in global.js.

Can be tested by disabling https in coolwsd.xml and changing localhost
to the real local IP in the make run URL.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I1dab14e311066fa640dbba65dfcc35526a6886d7
2024-04-19 13:49:53 +01:00
Skyler Grey
f8f15a139a Fix broken frozen columns mid-pinch-zoom
Previously the following issues were present when columns were frozen
- The frozen column was allowed to move, this was exacurbated when I
  made it easier to move in my 'calc: pinch-zoom:' commits,
  (3ba8257c64 to
  b378a0fd77). This is now fixed
- A regression was also introduced in that range where the selected cell
  marker would become offset if you placed it in a frozen section then
  pinched to zoom. This is also fixed

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I07f70a32e5cb68aeb759fd6cad626b2d4c0eed72
2024-04-19 09:42:52 +00:00
Pranam Lashkari
0cd7498e64 notebookbar: event prevent default for theme toggle button
problem:
if calc->view tab-> dark theme button is clicked,
if button is clicked from icon it works fine,
but if button is clicked on label event is triggered twice,
which means theme would be restored to first

reproducible only in firefox

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie645df86651a7507582de44147885a2b62384ddb
2024-04-19 11:17:42 +02:00
Pranam Lashkari
35aa8572c1 annotation: enable comment insertion from context menu
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If5b949c36851664d5720042d3ff5c8394b2d3961
2024-04-18 22:03:11 +01:00
Pranam Lashkari
17a1db2005 annotation: fixed comments not inserted in calc
problem:
could not insert more than one comment in calc

regression from fcb6367

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I30b52569a48d5f1d0bb2a3fe9f6f6e7c6bd43c80
2024-04-18 22:03:11 +01:00
Pedro Pinto Silva
bd6d48b022 Add missing icons for accept and reject change and go to the next
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic64c6e640209c150891c7f677d05af2151a6ba06
2024-04-18 17:13:40 +01:00
Darshan-upadhyay1110
4690d8ec28 Hide outline format button for mobile
- Hide `Set outline format` uno button
- we will add this option again after fixing the dialog issue on mobile view for Outline option in `Bullets and numbering`
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I270b78b7b9f00fd7b0f12c348794e3d3da3e653e
2024-04-18 16:35:47 +01:00
Caolán McNamara
b95395434e if a sheet is removed or moved, re-request comment positions
a problem since:

commit 72b2ce4bb6
Author: Caolán McNamara <caolan.mcnamara@collabora.com>
Date:   Wed Oct 25 19:19:08 2023 +0100
    we don't need to round-trip through core to reposition notes

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If00ae17a8e80ca3f8d2a530efa6cdba90207be56
2024-04-18 17:08:28 +02:00
Gökay Şatır
9eeed4d950 Add splitCoordinate to global variables.
Fix getViewRectangles function - it's used now.
Remove "_cellCursor" usage from CalcTileLayer.
Modify tests for the new changes.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ia5ec5a6e89d7d64df2041112936a16ec06c4da93
2024-04-18 16:30:27 +03:00
Gökay Şatır
ce36339b35 Turn _cellcursorTwips into a local variable.
Remove an unused function.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ic60d088cceb67c836ead24b84d94064272516d37
2024-04-18 16:30:27 +03:00
Gökay Şatır
05e231b93c Improve geometry classes.
Add CellCursorSection - not used yet.
Start using app.canvasSize variable.
Use simpleRectangle more.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I2cd4e23897c918679a0a385e1ca2d04117fd71c6
2024-04-18 16:30:27 +03:00
Aron Budea
a4671ba059 browser: Convert MobileTopBar.js to TypeScript
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Ibced15ed3ebec2c7a7b07539f25270b19d615a1f
2024-04-18 08:35:25 +00:00
Bayram Çiçek
99cb267661 Calc: fix drop zone indicator regression
with cbf452b03d drop
indicator was not shown if the cursor is over the <div> elements
that inside the tabs

- fix by using e.currentTarget instead of e.target
and do some checks while on _handleDragLeave

Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: Iec8e246f18e553487b0eb0d9264cff8bb37b6305
2024-04-18 09:25:39 +01:00
Szymon Kłos
b878363899 statusbar: use ui-badge for items
Statusbar items which are not active previously were grey.
Recover that styling and do cleanup to not specify CSS in the
JS code.

We use that only for items which are active/inactive - not
for just labels

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic5beb7b2fa398d594cfa035d4cbcfe6f40cae787
2024-04-18 08:00:15 +01:00
Szymon Kłos
c7dd10a877 statusbar: better strings formatting
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7c5d5cbd2e36e6391610f8d4b18a87bf32c9dde2
2024-04-18 08:00:15 +01:00
Pranam Lashkari
81b00e7376 annotation: scroll to comment after resize comment list section
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Icbabf5dcdb6f1e01ca0271b2898df28f11810f35
2024-04-18 07:57:22 +01:00
Pranam Lashkari
bac4161583 annotation: resize comment list section on view size change
problem:
in writer when comment is added at the end of document,
it may go out of view and covered by the status bar and can't scroll any further

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ia40ea128cd36a904ee5030bb7399da183e21f44d
2024-04-18 07:57:22 +01:00
Skyler Grey
d5f902de9f comments: fix avatar when author is not in document
In e855aa6114bda90fdd64fbcbb32a77adcf7938f4 a regression was introduced
where a comment avatar was set to your avatar if the user was not in the
document

This commit returns it to the previous behavior, which had a "default"
avatar instead. It might instead be nice to embed avatars in the
document to avoid the avatars being missing, however the previous
behavior is far less confusing than the regressed behavior and is far
easier to get to than embedding avatars in the document

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I82834089062b1e7c2570d9fd78c7e1a3077f4c96
2024-04-17 15:02:38 +00:00
Rashesh Padia
9202365fc6 fix: duplicate You on reconnect
- it might happen viewinfo message arrives before status message,
viewinfo message update view list with old _viewId because new _viewId
after reconnection is not avaialable yet
- this patch fixes this by reseting the _viewId on socket close and call
updateviewlist event after client gets new _viewId from status message

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: I88a6ade574faa1368b1635db891fe87f89fa080e
2024-04-17 11:09:43 +01:00
Rashesh Padia
1aead601b3 fix: bogus cellviewcursor on reconnect
- also might fix the duplicate user on reconnect

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: Id302d79dd664d2e4efd6b4ba49972b3634b19569
2024-04-17 11:09:43 +01:00
Gökay Şatır
a25a8e0ee0 Rename forgotten variable.
In PR https://github.com/CollaboraOnline/online/pull/8700

We renamed some variables and removed usages of cellCursorXY.
One was forgotten and causing null ptr reference.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I840cc711076e4473dee8b6a1b823a362e0eecd84
2024-04-17 11:26:36 +03:00
Henry Castro
a80477a16c browser: assert preview queue length
Ensure all preview tiles array is equal length of preview queue
to be processed.

Change-Id: I37a8109a1d02d7dd761c9fbd36a7d0aa8102f7c3
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro
013b4c7d56 browser: update preview layout part
The function '_processPreviewQueue' it request only
visible preview parts, it was an old code that it
needs to be updated.

Change-Id: I56519c328fb3bec70ca1fce2730f5146dc254fa5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro
e927ea7286 browser: logging fetched preview parts
Change-Id: I4ebc3e17c9270f61fb430729b2fdcf34e0148ab0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro
67f9afe4a7 browser: logging to check request preview parts
Change-Id: Ie6971ffc972e2e3616461a07b8a8f51991ed28f5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro
626d2acd2c browser: logging warning if empty rects
Change-Id: I6fa4d760d1ec8cc0dd6060aeb9d19939572c629d
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro
385d3790a7 browser: fix queue preview part duplicate
Change-Id: Iefc364964ec916f8e230d35c9432f72cf5466ad0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Hubert Figuière
6a8e00c1af permission: Don't show the edit button if read-only
If wopi.UserCanWrite tells us we can't write the file no reason to show the edit button
that would do nothing anyway.

Fix https://github.com/CollaboraOnline/online/issues/8686

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I4f6d1f8d8be520e422e260f2e532cb86541e8d0f
2024-04-16 16:44:50 +01:00
Szymon Kłos
a142cd9161 css: use variable for separator color
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id9f07bac4f653c1f51bade1124cfee730247d6fd
2024-04-15 16:44:45 +02:00
Szymon Kłos
aeaba960db jsdialog: don't focus separators
Don't allow separator and spacer (placeolder which expands)
to be target of a focus when we use tab key.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I724604eb299c65e4709d3e7708f514c312188393
2024-04-15 16:44:45 +02:00
Miklos Vajna
e733accdac browser: fix merge conflict in Widget.Combobox.js
eslint now forces single quotes.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ia462bc21bc720b64caf5d535eb46e637e24b9f4a
2024-04-15 14:34:32 +02:00
Patrick Luby
aedfd864d4 Enable new paste handler on mobile platforms
At least on iOS, the new paste handler needs to send an uno message to
the LibreOffice code.

Also, completely remove fix for GitHub issue #5839. It no longer worked
and will be handled in a patch to LibreOffice's native iOS clipboard
handling code. Ultimately, GitHub issue #5839 was caused by the iOS
clipboard code's failure to never fire a "clipboard content changed"
event. So, the LibreOffice application layers never updated their
pasting enabled state.

Signed-off-by: Patrick Luby <guibomacdev@gmail.com>
Change-Id: I4e198a45d863e3ecaf1dd04e85ce9d0d9b1a0894
2024-04-15 13:56:51 +02:00
Szymon Kłos
a5e20a4943 Revert "eslint: introduce strict rules"
It didn't work: prettier still used double quotes as a standard
so it was not possible to pass make check

This reverts commit 7c5c5bd47b.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic04f1591dc39bbfe522ed2b840c543ec42b3ffa3
2024-04-15 12:23:26 +02:00
Pranam Lashkari
7c5c5bd47b eslint: introduce strict rules
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2cb0f61d3b159c78e67d99f163b828f60cb0f5e2
2024-04-15 11:48:17 +02:00