Commit graph

15881 commits

Author SHA1 Message Date
Pedro Pinto Silva
07bb8dbad6 Feedback: Fix timer value
Increase timer value which avoids
user being prompted immediately after opening the app

to do---------
Nevertheless an additional commit should be implemented: If in presence
of a shouldWelcome() instance do not show
feedback dialog until user closes it
  - Upon closing it Feedback dialog should not be shown instantly
	, instead it should start a new timer and then show it.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I47f980fc4e86a480f70337c685cc639d78be4509
2021-08-06 17:21:18 +02:00
Pedro Pinto Silva
668cbbb608 Feedback: passing WSD hash
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8a61e3aeef5605c751cd6a70f808a97e102dee5a
2021-08-06 17:21:18 +02:00
Henry Castro
6f92adb8d3 loleaflet: prefix 'feedback-' messages
In order to not conflict with other
registered listeners.

Change-Id: I2fa15f4d5a04f0365ae4e940afa847dcb6e375cd
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-08-06 17:21:18 +02:00
Pedro Pinto Silva
9b9eb54dd3 Add Feedback: only if feebackLocation is defined and not empty
To ensure that feedback dialog is not shown for builds where
it's not supposed to appear. This is just a cautionary measure since
Map.Feedback.js is included only when feedback is enabled

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I378361d644dd76666ae3339a3d4f697a0a032e5f
2021-08-06 17:21:18 +02:00
Henry Castro
67bbb9b9c9 loleaflet: fix variable "feebackLocation"
Define the "feedbackLocation" variable only if it is enabled

Change-Id: I75ab9eec9f2f074eefe8551e876bb7dc07a30b4c
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-08-06 17:21:18 +02:00
Pedro Pinto Silva
3112c1acdd Feedback: Use proper location properties and pass isMobile
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic1e46c1722efa416d7fffb55cbf71e5efa9e9a31
2021-08-06 17:21:18 +02:00
Pedro Pinto Silva
a1c0a9e43d Feedback: Add mobile layout and fix desktop dialog position
- Desktop: Do not rely on margin to position dialog instead,
use percentage to find the center of the screen and account
for dialog width in that.
- Mobile:
  - Add layout, styles, fonts etc
	- Fix containers and wrapper dimensions

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7e2bf9d7ed015ea7ec96c3c36213802276e7f778
2021-08-06 17:21:18 +02:00
Pedro Pinto Silva
f571972d98 Feedback: Passing CSS Var as hash and fix height
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic15d30d4bccab4ff8b75e51b106d35021b0c4ac8
2021-08-06 17:21:18 +02:00
Henry Castro
57d454436b wsd: fix url redirect
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I09fda6618c35147b12f8e25204290a7d61cd766b
2021-08-06 17:21:18 +02:00
Pedro Pinto Silva
7b1969f4ac Feedback: Style iframe
- Following the same style as the other dialogs
- Pass cssvar via url

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7ef0b9e0249939028163b6bf93f7083636f1dd1e
2021-08-06 17:21:18 +02:00
Henry Castro
9266fa5793 add option --with-feedback-location
Change-Id: I2f5b1556f0b976e9c3cb1f78383d2d05e6aef892
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-08-06 17:21:18 +02:00
Henry Castro
c807f00442 loleaflet: handle iframe load error
Change-Id: I4b375cbafd0b89877066719004f0668b3ea86cd5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-08-06 17:21:18 +02:00
Henry Castro
8a9345e871 loleaflet: add feedback handler
Change-Id: I8ef2c1afe4093e9ee867cd3130c82cbd93362eb9
Signed-off-by: Henry Castro <hcastro@collabora.com>
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
2021-08-06 17:21:18 +02:00
Henry Castro
22f06b6a5b loleaflet: add initial iframe dialog
Change-Id: If97f4ec39e1daac7eefc221bb222979de544a260
Signed-off-by: Henry Castro <hcastro@collabora.com>
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
2021-08-06 17:21:18 +02:00
Henry Castro
c8e2d25d24 add initial feedback option
Change-Id: I9357f556474e5ada881e27983c95f7527b284efc
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-08-06 17:21:18 +02:00
Pranam Lashkari
af54c49538 freemium: added missing freemium bits for the mobile bottom bar
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I643e6e6373643798df3e875ee696b4fb56bcfa8c
2021-08-06 17:21:04 +02:00
Pranam Lashkari
dcd6795e57 use pragma instead of header guards in freemium header files
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I5b55c2de4a2467503108e4172de84a27e207ba3c
2021-08-06 17:21:04 +02:00
Andras Timar
24214ef955 Android: add common/Freemium.cpp to CMakeLists.txt.in
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ibdfe445d0085fe26f74655a265cb2e9208157f7b
2021-08-06 17:21:04 +02:00
Pranam Lashkari
a7b7118b39 cypress: fixed broken mobile annotation tests
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I9d467a0d35c7e57e3737c8175537f9dddcdaad1e
2021-08-06 17:21:04 +02:00
Pedro Pinto Silva
001acdb8c0 Freemium: Mobile: Fix overlay on primary buttons
Does not need to be a badge in this particular case since it's above
a physical primary button; also make it completely white to be consistent
with the button's theme.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8c85fbe33d1b3897f0fddd44dd7a5d0517f92e93
2021-08-06 17:21:04 +02:00
Pedro Pinto Silva
ee6b8c24f7 Freemium: Mobilewizard: Increase difference between locker and its element
Changes to mobilewizard (not mobilewizard.menuwizard)

- Present locker as a floating badge
  - Add shadow to communicate that it's different from the button
	underneath and that it's clickable
- Locker and the icon underneath shouldn't be confused
  - Make that difference clear
	- Change position to it is more deliberated abode the icon but not
	centered, so to not cover the feature
	- Alight to top left since there are many icons using accent elements
	on the top and bottom right

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idf19ddb3965efefdafd4d4be042bc7e47022208c
2021-08-06 17:21:04 +02:00
Pedro Pinto Silva
a660a98184 Mobile: Fix vex to follow latest changes on canvas and positions
With latest changes on positions, Vex on mobile needs now to be set
to fix and additional rules are now not needed. Inherit from main
CSS file.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I2b67c0990d625d84077f0114ab198c9fe704a88a
2021-08-06 17:21:04 +02:00
Pedro Pinto Silva
675440ab21 Freemium: Mobile: Fix menuwizard
- Distinguish menuwizard from normal mobilewizard
- Avoid using percentages so we are sure where the things are being
positioned
- When on mobilewizard (not menuwizard) avoid showind two lockers
  - Also do not replace icons, let them be and add additional locker
	so the user can still see which feature is supposed to be unlocked

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I4d3d5f331162d16c63cf5cad667f0d5fab4dd9bc
2021-08-06 17:21:04 +02:00
Pedro Pinto Silva
c5eab84ab8 Freemium: Fix sizes for Classic and Mobile
When on mobile do not rely on background position and instead add
img element so we can properly resize it and adjust it:
- Less in your face
- To not disturb or overshadow the actual active elements

When on Classic mode:
- Hamburger items: Use smaller lockers so to do not get in the way
of reading the actual item label

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I46218254a975b3a70d1e4c03eb1795d87f3861c9
2021-08-06 17:21:04 +02:00
Pranam Lashkari
fc9705f0d0 final freemium patch to cover all the UI elements,
specifically more focus on the top toolbar in classic mode

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I33eebe79addebe3acfcea4d20912cc31b759ffce
2021-08-06 17:21:04 +02:00
Pedro Pinto Silva
22b4595e46 Toolbar-up: avoid adding extra padding on the left
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7a36f0a50b2e8867e18744270bb6d84d6c5a917b
2021-08-06 09:48:00 +02:00
Pedro Pinto Silva
3d8507fab4 Busypopup: Center SVG spinner
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I79e15a80efc54549875a8736846853afa53e230d
2021-08-06 09:47:14 +02:00
Pedro Pinto Silva
3e38ec9b7d Synchronize map with TilesSection: Fix CSS
- Fixes map z-index so annotation can be have higher z-index
- Now map and due to the latest changes introduced in:
8ca57fad3344f6da1b42158944bf9903f0ac528b we cannot use
container's border-top as our bezel divider
  - Elements such as annotation need to go under
  - So Fix toolbar-wrapper to use bottom border
- Notebookbar: Fix toolbar-wrapper background-Color which
was being set as transparent and thus elements passing under
were being visible
- Ruler: fix cropped ruler (was not going full width)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I8778619da43c51d1994dbb12d1112d4f1d42ff43
2021-08-05 11:09:11 +02:00
Pedro Pinto Silva
189fa6af7f Mobile: jsdialogs: Text import: Fix separator btn position
Depends on: https://gerrit.libreoffice.org/c/core/+/116265

Fixes checkbutton (Use separators) position by placing it
before divider label ('separatoroptions') thus, improving readability. User
can now see it clearly that all those separator options are related
and hierarchically under a main option: #toseparatedby.checkbutton.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I97b133e3e873a76ca75290728adaf1a45c9bcece
2021-08-05 10:39:00 +02:00
Pedro Pinto Silva
af827bae42 Document: Scrollbar: Increase affordance
- Make it thicker
- Make it visible by default
- Hide it only when there is nothing to scroll

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ibffead10c09eda979ef8d3d2201173aca3553503
2021-08-05 09:29:42 +02:00
Pedro Pinto Silva
a39a16cc24 Make it clear when unotoolbutton is disabled
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I666978fa301ba977b4cc3fa8a57a56754d206f6a
2021-08-05 09:29:09 +02:00
Pedro Pinto Silva
2d5d34be2d JS Sidebar: Fix textorientbox (calc)
Do not show radio buttons in this case since we have images
for each option (radio images and  textorient options images
were overlapping ) also fix width and add hover state

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7e3d8ef4da400024137d0c9207c67807ded281c5
2021-08-05 09:29:09 +02:00
Pedro Pinto Silva
6d13b5f080 JS Sidebar: Do not add extra margins to pushbuttons
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I72ea2b2b6ee711842128590d9bf096810d16ffca
2021-08-05 09:29:09 +02:00
Pedro Pinto Silva
95ee1373a0 JS Sidebar: Impress: Fix drawing-area width
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9b0a59a2da75262ec0b89c978d990fc4759a835a
2021-08-05 09:29:09 +02:00
Michael Meeks
4b76b23797 Allow pause & resume section updates to stack.
Use the topLevel flag to keep us safe, and avoid problems when
constructing too.

Change-Id: Ifba6f0204dac359b0b028b3295a7227576b03dd6
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-08-04 17:17:09 +01:00
Michael Meeks
c93b1c8ab2 Pause and resume drawing while clearing comment & redline sections.
Change-Id: Iecf59d48122c15e8baa4de0fbe2b486168b4de41
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2021-08-04 17:17:09 +01:00
Miklos Vajna
4cfbd6b65c kit: improve StringVector usage in ChildSession::getClipboard()
It returns a temporary.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I5a9df90a4e7dda05cc387e5dc11842ea8e237504
2021-08-04 17:02:16 +01:00
Pedro Pinto Silva
54d63c12af Vex dialogs: Close btn: Fix position
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I66ca8f579c622b19bf72293587ef8f6e660ef200
2021-08-04 14:44:21 +02:00
Pedro Pinto Silva
a8c118ca48 Notebookbar: Fix bigtoolitem size and keep ratio
Some bigtoolitem icons (namely About) were being skewed and others
were being set at a smaller size to what they were supposed to have.
Fix it by adding height value

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5ec375358e9dcf46a6b8b17570bea78963e188c8
2021-08-04 14:04:59 +02:00
Mert Tumer
238ef6182d perf-test: Performance updates
a) removed event firing for catching tile messages
    - injected socket onmessage function and made a middleware instead
    - the middleware can catch any socket messages
b) Replaced "fake sleep" and while loop for keystroke messages
   with setInterval function.
c) disabled processing incoming messages for multiple views
    - Optimizing the front end for JSDOM seems to be hopeless.
      the benchmark numbers for JSDOM and Real browser does not match
      and most of the time are unrelevant. In most cases where JSDOM is
      slower take almost no time for Real browser. These cases will not
      make real experience smoother if somehow fixed. In addition,
      rendering hundereds of socket messages makes nodejs use 100% of the cpu
      and benchmarking the loolwsd or loolforkit properly becomes impossible
      since nodejs cannnot handle messages in time and send keystroke messages
      with respecting the interval.
    - This way we can only focus on the backend performance and find the
      problems that "mesh the keyboard" events produce.
d) Recording stats will now count the num of socket messages received

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: If7d11ecea00ca175463a5d3b8bbe7c29a4b6b32e
2021-08-04 08:20:14 +03:00
Pedro Pinto Silva
cf0c6cc3a6 Snackbar: Remove unnecessary CSS important rule
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic1d91ae036f71902df3da03d8ed32533e7762949
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
ca992a5c35 Snackbar: label: padding and space between button
- Inherit common styles across mobile and desktop
- Set Different padding between Desktop and mobile

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iae158c83eb693ea5a77cb0e532f7db8a80567130
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
066b4d30c1 Snackbar: Fix border-radius on desktop
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ie3b56c30b942ea14cf029ed3e1db312b601084e2
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
2bd1ce2652 Snackbar: label: style it differently if there is no action
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I97c1f86fd4ff33cec165d37048cacb18c550e300
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
b7f64082fd Snackbar: make sure no text transform is applied
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7562acf27f76d3ebc5841596d4b126f4ce7d388d
2021-08-02 13:57:27 +02:00
Szymon Kłos
396d4d96fb snackbar: show when disconnected and on desktop
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib8e5a5f32dd04b34da7977fe5b5928a80e81f1f4
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
e3adfb77e5 Mobile: Snackbar: Shortened socket reload message
No need to have lengthily message on mobile in this case
since we already have the action button that clear
communicates that a action is needed from the user side

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I508fb348ef8037501e7f23db518f1477216e3c5d
2021-08-02 13:57:27 +02:00
Szymon Kłos
fb17494b3f snackbar: implemented for mobile
with example of usage: replaced alert when server was reconeccted

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia0f72b118a6ad7c7072bae41f452cc1a70b9aa84
2021-08-02 13:57:27 +02:00
Szymon Kłos
d3f3cf2cc5 Rename mobile popup to be more general busypopup -> popup
we will use it not only for busypopup

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I775d5af3838d2e6caf6bdbda9ff4864b919eb34b
2021-08-02 13:57:27 +02:00
Pedro Pinto Silva
55c98a414b Mobile: busypopup: Adding snackbar styles
Snackbar element is intended to replace all w2ui .lock
dialog (alerts) with or without button

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iad836d0dc094be01ad265492eaacf0a8dbf8a06d
2021-08-02 13:57:27 +02:00