Commit graph

3765 commits

Author SHA1 Message Date
Gökay Şatır
147275ddbd Core side handles the right click with mouse down event.
It internally handles the mouseup. So we don't send it again.

Without this change, context menus can't behave normal. Because mouse pointer is set to somewhere else with the mouse up event.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I719565b1ce192045250f9217e971725d8cc1003b
2024-01-03 18:15:35 +03:00
Hubert Figuière
738505c4de framed.doc: Added postmessage for Get_User_State
This was introduced in https://github.com/CollaboraOnline/online/pull/7514

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I98b9b5b04742541904afa2361ac961498a54c29d
2024-01-03 15:55:37 +01:00
Michael Meeks
7b20e351ae spdx: improve machine and human readability of headers.
Change-Id: I474287bd87d07b9e4a63f0afdfccb40d73e40e1b
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-03 14:42:02 +00:00
codewithvk
9179f0d2f3 Mobile: Insert comment layout is too narrow and doesn't occupy full height
Change-Id: Ibb6beff5659f5240ff2b49897e8a491f08933691
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
2024-01-03 15:01:05 +01:00
Michael Meeks
dbc4227fa3 debug menu: initialize state on enabling debug.
Maintaining the state is cheap & easy compared with rendering it,
so toggle rendering - but maintain state in debug mode as now.

Change-Id: I06b29c8a2a8652a63e9ca1e4b7dc31bfe7cafc1e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-02 16:32:14 +00:00
Michael Meeks
63d43baee1 traceevent: remove redundant code.
Change-Id: Ib4bf216d191220979d99b78efbd6d84838d42ed4
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2024-01-02 16:32:14 +00:00
Michael Meeks
4b12e22e68 traceevent: re-factor and cleanup trace event emission.
Share a single emission function. Events are re-parsed and
emitted and adjusted in ClientSession; JSON escape event names.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: If489d516bf20d5ec34cfe61f7e4fb09cf2e14bf2
2024-01-02 12:05:01 +00:00
codewithvk
6d0b8e7bb1 Make 'File > Repair' date and time human-readable
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
Change-Id: Ib8b745fd10aca2eea2e829ad42cf1d91f7ff2129
2024-01-02 11:55:49 +01:00
Darshan-upadhyay1110
365689f804 Refresh tollbar only if editbar and actionbar object exists
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ie6eeb45f31b855443288829105df7a7a4cadd76d
2024-01-02 14:25:01 +05:30
Patrick Luby
bb6fea0bea Set window.savedUIState to false in iOS app
When building the iOS app, the %SAVED_UI_STATE% does not get
replaced with a quoted string during the build and the resulting
unquoted string causes document loading to stop.

Also, eliminate warnings when running in Xcode by adding missing
CFBundleTypeRole entries in the iOS app's Info.plist.

Signed-off-by: Patrick Luby <guibomacdev@gmail.com>
Change-Id: Ie398955241a078be45af28e54c49387ff673870b
2024-01-01 09:59:40 +01:00
Neil Guertin
30480c53db Debug menu improvements
Split tools into categories,
Make Tile Overlay toggleable,
Adjust which tools start enabled,
Comment out non-functional tools,
Adjust some names

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ic973671a3c323f10d7f95918459ffc91a2f5c35d
2023-12-28 13:26:19 -05:00
Gökay Şatır
9fdbe7eec8 Don't send mouseup for right mouse button.
Core side seems to handle the mouseup event automatically for the right mouse button.
When we send another mouseup event, selected text can get unselected and context menu can't find a selected text.

Issue is:
* In Impress, select a text in a textbox and right click.
* Context menu cut operations doesn't work.

Cause:
* We send the right mouseup twice, the second event unselects the text and sets the cursor position to somewhere else.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Idae749da42443ccdd7ef2fc795b042536fae0db6
2023-12-28 17:25:07 +03:00
Gökay Şatır
39bebfacbe Save the cursor rectangle and visibility variable into app.file variable.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I9c0529984cd01a14565b882b68baae4f74e245e0
2023-12-28 17:25:07 +03:00
codewithvk
5fa0d9b69a Android: Insert Cells Menu Misaligned Radio Buttons
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
Change-Id: Ie6bdb2423f92b5959a2233ee0dccc6f8e2e5dc35
2023-12-28 15:23:25 +03:00
Rash419
d4918c7998 improve error message on invalid WOPI host
- before this patch when socket connection failed, we used to show the
  same error for socket connection failure and send the
  'Action_Load_Resp' with same errorMsg
- now we show/send different message for unauthorized and loading
  failure

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I71b1b7f8e2eca93790d068583370787825911a41
2023-12-28 16:50:04 +05:30
Szymon Kłos
a4add51e93 calc: avoid jumping on large cell selection
If we had very long or tall cell - maybe bigger than a screen
on every selection we tried to show it on the screen what
caused view to jump. If cell is bigger and partially visible
left view at the same position to avoid "jumping".

Steps to reproduce:
1. merge many cells - longer than one screen width
2. scroll in the middle of merged cell
3. select the cell
Result: jump to the begining
Expected: no jump if it is paritally visible

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I04da5cd346f175728222888a039a796b271e00d1
2023-12-27 20:09:27 -05:00
Szymon Kłos
74d78d287a Calc: don't stop dragging the selection on quick move
This fixes view jumps in the Calc when some user tried
to drag a selection but did it very quickly so it was
interrupted by the _mouseOverTimeout callback.

Timer was introduced in commit 72c407e0ed
loleaflet: support mouse cursor calback

But we noticed the issue recently. I remember that dragging
the selection was not working some time ago, it is
possible that it was fixed and because of that we experience
this bug.

What it does is that it stops dragging mode in half-done state
so then other views sometimes use the leftover data.
To be 100% fixed it should be also protected on the core side.

Steps to reproduce:
1. Open calc in 2 sessions
2. A selects some range of cells (for example 3x3)
3. A clicks inside selected range and holding the mouse
   button does rapid move to drag the selection (move
   the content of cells) - it has to be done very quickly
   < 100 ms after initial click
   It is done properly when you see on the screen selected
   range and cell selection, but the two are not overlapping
4. User B goes somewhere far in the sheet and:
   - changes font size
   - or selectes some rows, deletes them, then opens right-click
     "row height" dialog, press ok
Result: User B jumps to the selection of user A
Expected: no jump

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia35377771df6b04584eebb76c25290482b7a4b93
2023-12-27 20:08:03 -05:00
Neil Guertin
6dcfc85f4f Refactor debug menu
Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: I6e2520035d54b9de2b4cf8e015741aaae517fee1
2023-12-27 16:45:54 +00:00
Gökay Şatır
924f13f106 Changes for handling readonly mode click events:
* These changes are made primarily for reading the hyperlink data from the document in readonly mode.
* Added readonlyclick event.
* Added readonlyhyperlinkclicked event.
* And the handlers for these.

When user clicks on document in readonly mode, a readonlyclick event is sent to the server.
Childsession checks if there is a hyperlink at the clicked location.
If so, the information of the hyperlink is sent to the client.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I9c104a1ec770491725337b9bbb1e2d1c2851321b
2023-12-27 09:24:28 +03:00
Pranam Lashkari
fbf22535a0 annotation: remove redundant condition
it did not make sense to check for selection if we are unselecting before selecting

problem:
when already selected comment try to modify,
it will not rearrange replies in the thread this caused
overlapping of the comments and bad user experience

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I276c34301b45951a7051018770e21b4970603861
2023-12-26 13:00:24 +03:00
Pranam Lashkari
4ee246a336 typescript: use defined types for CommentSection properties
use strict datatypes for the properties where possible,
also allow to add new properties dynamically

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ia2eb850f61031f91b0e37339475e1ca4e768dad1
2023-12-25 16:45:08 +05:30
Pranam Lashkari
1bd26addd1 annotation: if comment is not initialised its not in editing mode
this caused problem when new doc is loading and we are settings up comments,
but they are not initialised and marked as being in editing.
i.e: this will cause problem with showing reply count(in collapsed view) initially

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ia688ca0bfc37dd925bd74dc5826d43fdb37c81db
2023-12-25 13:35:50 +05:30
Darshan-upadhyay1110
434fffa5bb Fix text in font and style dropdown types dark in Dark mode
- in Compact/Classic mode typing text are dark in darkmode

To reproduce:

- change to dark mode and select Compact mode
- type in input field of Font or in Font size
- without this patch color will be dark in dark mode
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I4510001cfdf26acf8419eb0aa4ee3611b0a51b09
2023-12-22 16:12:28 +03:00
Andras Timar
05fa3f35d0 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1cfac01456a62a09068397d6ff6ff6506acf31ae
2023-12-21 21:05:09 +01:00
Rob Pearson
050adfdbaf Translated using Weblate (English (South Africa))
Currently translated at 100.0% (539 of 539 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (539 of 539 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (539 of 539 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (539 of 539 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id596babd7d044968f14ea47136600f8c273ccbb5
2023-12-21 20:51:19 +01:00
Szymon Kłos
78a4ed13ff calc: don't make app inactive on drag and drop
When Pivot table dialog was used and we drag and drop
elements from list to other list in Firefox - then
we sent userinactive message because we lost focus of
a window. Don't do that.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I03f1b8a72e4f318034569d4fffe496f32c5a8a51
2023-12-21 14:16:13 +01:00
Szymon Kłos
6961f16539 Add warning for blocked external image insertion
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8d7456b0cef68a086aae854c9828d83a29f1b3b6
2023-12-20 15:55:12 +01:00
Szymon Kłos
394ab1f6f3 Add explanation for invalidatecursor with different viewId
I noticed that it directly modifies this._visibleCursor
which should be our own cursor. So it was not clear if
modifierViewId === this._viewId check if something left
from the past or that message can be received with
different viewId...

It seems that received viewId only tells us who "triggered"
the cursor movement, but position in the message is still "our".
It is used with different viewId in Writer but not in Calc.

protocol.txt comment about the message:
The payload contains a rectangle describing the cursor position
and the id of the view which triggered the invalidation. JSON payload.

and seems to be introduced in:
commit ffd7151443
Date:   Sun Apr 8 00:00:53 2018 +0200
Writer: View jumps to cursor position even if it is moved by an other view.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idf2598221845e15effe576a94bb1d39759ae7d58
2023-12-20 13:10:33 +00:00
Darshan-upadhyay1110
330033076b Filter by color options should have radio buttons insted of Checkboxes
- Fixed filter by color options which had Checkboxes
 - it should have radio buttons same as we have in LO core
 - it also makes sense because we only need to apply on filter by setting at a time

Steps to check patch

    - Open .ods file
    - add some dummy data in diffent rows but column should be the same
    - click on the top cell of dummy data
    - got to `DATA` tab and apply `AutoFilter`
    - open auto filter popup and select filer by color
    - compare previous version with the current patch
    - check same thing in LO core
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I00b4d84e5117b3c1f05fbc37c61331d2c3bc2a31
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
2023-12-20 12:32:48 +01:00
Darshan-upadhyay1110
5403d885a3 Fix view pushed up in Calc for autfilter popup
- fix view jump by display hidden for auto-filter popup
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I4e48fd2d7363db53d4bf3a1d85f9897de3b1e91a
2023-12-20 10:16:28 +01:00
Pranam Lashkari
eb1925f140 annotation: refresh annotation on part updates
problem:
1. Duplicating slide with comment will not have any comment
2. Rearranging slides, causes comments to stay with its previous slide location,
i.e: if earlier comments were on the first slide and they are rearranged to be nth slide,
comments will be displayed on the first slide
3. Deleting slide, displays comment on the next slide

all these problems are just display problems in online, if you reload the document,
comments are displayed correctly.

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie494761802f133f5f433053456edfd7d55d1312a
2023-12-20 06:35:57 +05:30
Skyler Grey
1adece89d6 Make eslint in make check fail on eslint warnings
As discussed [on Matrix](https://col.la/suppresseslintindevelopment) the
set of things we want to pick up in CI and development are different.
Specifically, there are some things that only get in the way during
development but should not be allowed in merged code. Examples are
'debugger' statemens, dead code (e.g.  resulting from 'if (false)') and
unused variables.

After #7822 there are no more eslint warnings, so we can use it as a
separate state for these issues that should only block in CI.

This commit make make check run eslint and fail if it receives any
warnings, and changes those 3 errors so that they only emit warnings.

It's expected that there are more annoying warnings which I've missed,
if you have any please make a followup change!

This commit explicitly does not deal with formatting-related
issues (e.g. requiring single quotes for strings in eslint) as though
they can be annoying there's no reason why they should change between
development and master... another followup to improve linting experience
could be to use an autoformatter so the computer fixes the formatting
for you, however that's out-of-scope for this commit

Change-Id: I036afac5ef5056a9cc2effc21e31165aa1436ad2
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
2023-12-19 20:25:43 +00:00
Bayram Çiçek
07da51cc55 Calc tabs: remove drop zone indicator after drop
- we need to remove 'tab-drop-area-active' class
after a sheet tab is dropped, otherwise drop
zone indicator will still be shown after dropping

- this fixes the bug from f8433d323d2f49852501961c7949300b4a59a512
Calc: improve drag&drop functionality of sheet tabs #7846

Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: Iff7ea455452c431907cc7534cbd111e7b4f037d8
2023-12-19 18:51:54 +01:00
Skyler Grey
a31e6597cc Stop onscreen keyboards closing when used to move
This relies on core change I5e6c93c64af0d201a8ec045fea5546e189baca74
(https://gerrit.libreoffice.org/c/core/+/160313) as the logic to keep
the cell focused is from there.

Here we set the new option when there is an onscreen keyboard hint given
by ui_defaults or a postmessage. As ui_defaults are set at page load, we
need to wait to send our message until we're initializing everything
else to set our options. Additionally, we need to use the socket
directly rather than sending this through the map so that this bypasses
things like readonly mode

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ie6d80c0e1ebca607b9d705b673ab8008fae39260
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
2023-12-19 10:50:52 +00:00
Pranam Lashkari
039283733e formulabar: trigger mouseleave event only after mousedown event
problem:
mouseleave was triggered by hovering and leaving formulabar,
this caused formulabar gabbing focus unwanted

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I0c0e75b2025e69d425351d9ff75ceccf385d6326
2023-12-19 10:32:57 +01:00
Bayram Çiçek
a72a8536c6 Calc: improve drag&drop functionality of sheet tabs
- drop zone indicator added to the left of all tabs
- additional drop zone indicator added to the right
of the last tab
- added drop zone container at the end of tabs
for the last drop zone indicator

- div#drop-zone-end-container element also adds
a space to the end of the tabs so that the last
tab can be seen easily after scrolling to the end

Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: I25a87bc1798b94c5f294532d308cd46292ef1795
2023-12-18 21:11:06 +01:00
Julius Härtl
9db5f421cf fix: Use proper command + c keyboard shortcut for copy actions on snackbar
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Change-Id: I24d9e01bc23a1dc32a1362f48775c6890f5a77c8
2023-12-18 17:01:27 +01:00
Skyler Grey
61aa037ad9 Fix several regressions from touch unification
Touch unification (b3bff28bede07a48cdecefcda14a6fc9da86e4bb, change ID
I9016fc15ad3ccb3664af348fdcdca006495b0778) was a rework of the input
system to better support touch devices, but unfortunately it caused some
fairly serious regressions. This commit fixes the following:
- Triple/Quadruple clicking was no longer recognized on non-touch
  devices.
- There were some issues recognizing wrapped events
- Pens were considered to be touch devices, but this broke some
  remote/virtual machine setups. It's possible that this change will
  cause a regression for apple pencil users. I plan to get an Apple
  pencil to test whether preventing pens from being touch devices breaks
  the Apple pencil workflow instead
- manualDrag was taken to mean "is on a touch device". This is only
  almost true, causing some input to be incorrectly ingnored when it was
  not
- manualDrag and _manualDrag were confused. They affect different
  things, and we now recognize this

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Iab0d3bcca588eaed14469597868a9c4e2dcf8488
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
2023-12-18 15:28:13 +01:00
Michael Meeks
c2e3a83001 spdx: improve machine and human readability of headers.
Change-Id: I84c93d81f0aea1f79e2ede9186b2864bf11f723a
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-12-16 19:49:05 +01:00
Hubert Figuière
85e36b3bb7 postmessage: Added Action_Fullscreen and Action_FullscreenPresentation
They allow respectively to switch to fullscreen, or to start the
presentation in impress in fullscreen
Action_FullscreenPresentation can get the following arguments:
- StartSlideNumber: the slide to start at
- CurrentSlide: start at the current slide
The options are exclusive to each other. StartSlideNumber takes precedence

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I4d97eadf8c119e70e5738df4063d209feb5db793
2023-12-15 09:47:54 -05:00
Pranam Lashkari
a85dd12e94 annotation: avoid exiting edit comment on autosave
show() can hide modify textbox, this broke comment autosave in impress,
but as precaution show doesn't need to be called on newly added autosaved comments

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I13fdeb265f46cb9b8786f62a2d6e7e5c4e492f00
2023-12-15 20:12:23 +05:30
Szymon Kłos
37079fb53c annotations: move auto saving properties into CommandSection
To not depend on external objects to store information.
Also use more typing.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I410b6679ef5e2a7c4f5e73217d5062864a73bc4c
2023-12-15 20:12:23 +05:30
Szymon Kłos
bc281382e7 annotations: revert animation change
This reverts part of commit 93bdcc349b
Annotation: revamp comment autosaving

Let's keep it less changed from the previous stable version.
This doesn't seem to have any impact.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5261b4c8e78a9310884017bf314d720265892fbd
2023-12-15 20:12:23 +05:30
Szymon Kłos
66b814e60b annotations: isAutoSaved helper
- we need to check if received comment is "our" autosaved one
- without that we were showing comments from others on the
  screen when we were in "autosaved mode"
- remove "interval" to make it more deterministic

This fixes regression from commit 93bdcc349b
Annotation: revamp comment autosaving

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0319de0eea16e715e799a6ac1163d78cc1a07654
2023-12-15 20:12:23 +05:30
codewithvk
367f618689 Fix: Many Icons Not Inverting Color In Dark mode cool-help
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
Change-Id: I3015e6a40030d40fe11d2db85703b8be1eefbed1
2023-12-14 15:16:34 +01:00
Szymon Kłos
842fb9b612 Update viewId also if equal 0
if (command.viewid) will not allow set to 0.

This is fillowup for commit f3baeb25b19d8a6200858ecaafe56314836ff73a
Update viewId in Writer after recover from idle

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4b8d40c2b7aa122e0f4710261d10314a25d521fe
2023-12-14 13:56:33 +01:00
Caolán McNamara
fe32aeffe4 Sometimes we only request two rows of tiles in writer on an initial load
Sometimes we only request and only get two rows of tiles in writer on an
initial load. Most frequently I see this with a non-debug online server
via nextcloud of the default "Welcome to Nextcloud" docx in firefox in
the 2nd or 3rd tab of opening the same document. While the page doesn't
visually resize there is a resize delivered after the initial request
of tiles.

clientvisiblearea x=-8160 y=0 width=28785 height=1575 splitx=0 splity=0 Socket.js:272:10
clientzoom tilepixelwidth=256 tilepixelheight=256 tiletwipwidth=1920 tiletwipheight=1920 Socket.js:272:10
tilecombine nviewid=0 part=0 width=256 height=256 tileposx=0,1920,3840,5760,7680,9600,11520 tileposy=0,0,0,0,0,0,0 oldwid=0,0,0,0,0,0,0 tilewidth=1920 tileheight=1920 Socket.js:272:10
...
tile: nviewid=1001 part=0 width=256 height=256 tileposx=0 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=72 ver=92 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=1920 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=73 ver=93 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=3840 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=74 ver=94 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=5760 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=75 ver=95 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=7680 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=76 ver=96 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=9600 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=77 ver=97 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=11520 tileposy=0 tilewidth=1920 tileheight=1920 oldwid=1 wid=78 ver=98 Socket.js:272:10
...
tileprocessed tile=0:0:0:0:1920:1920:1001,0:0:1920:0:1920:1920:1001,0:0:3840:0:1920:1920:1001,0:0:5760:0:1920:1920:1001,0:0:7680:0:1920:1920:1001,0:0:9600:0:1920:1920:1001,0:0:11520:0:1920:1920:1001 Socket.js:272:10
...
DEBUG: sizeincreased CanvasTileLayer.js:5702:11
...
tilecombine nviewid=0 part=0 width=256 height=256 tileposx=0,1920,3840,5760,7680,9600,11520 tileposy=1920,1920,1920,1920,1920,1920,1920 oldwid=0,0,0,0,0,0,0 tilewidth=1920 tileheight=1920 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=0 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=71 ver=99 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=1920 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=79 ver=100 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=3840 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=80 ver=101 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=5760 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=81 ver=102 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=7680 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=82 ver=103 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=9600 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=83 ver=104 Socket.js:272:10
tile: nviewid=1001 part=0 width=256 height=256 tileposx=11520 tileposy=1920 tilewidth=1920 tileheight=1920 oldwid=1 wid=84 ver=105 Socket.js:272:10
tileprocessed tile=0:0:0:1920:1920:1920:1001,0:0:1920:1920:1920:1920:1001,0:0:3840:1920:1920:1920:1001,0:0:5760:1920:1920:1920:1001,0:0:7680:1920:1920:1920:1001,0:0:9600:1920:1920:1920:1001,0:0:11520:1920:1920:1920:1001 Socket.js:272:10
...
clientvisiblearea x=-8160 y=0 width=28785 height=12075 splitx=0 splity=0 Socket.js:272:10
...
...no tile requests...

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id263adbbd98ad0a7c6143d241d0d91e1c28eaac5
2023-12-14 10:28:45 +00:00
Pranam Lashkari
c0527a2cea annotation: only don't hide comments which are editing
now as we only allow one comment to edit at a time,
we don't need to check if any comment is being edited,
we can hide all comment except the one being edited

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ibee2b61fc6ba873231a05e5e1d2dab210491c68f
2023-12-14 08:55:55 +01:00
Pedro Pinto Silva
094b2ce884 Dark mode: Fix icon's opacity and color on shortcuts component
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I992936919e26c135a05c29d44c62dc07e1c49d04
2023-12-14 08:47:52 +01:00
Rash419
4ea31bfebe jfix: tiles not updated after reconnection
from idle

The following scenario was affected:
- user A and B both goes idle
- user B starts typing
- user A reconnects, all tiles updated by user B were not getting
  reflected for user A

Mismatch of canonical ids was causing the issue. On reconnection,
tilecombine messages were sent before uno:ChangeTheme can update the
canonical id on server side, therefore the received tile cache from server were
from old canonical id 4a8974d107/wsd/ClientSession.cpp (L1379)
4a8974d107/wsd/TileCache.cpp (L482)

By reseting the previousTheme on connection we make sure there after
canonicalidchange we invalidate all the tiles

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I874bfe0bd71d176bacf0c7aa768e49613535ebd5
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
2023-12-13 21:20:33 +00:00