Commit graph

1000 commits

Author SHA1 Message Date
Asaad Mahmood
35f51d2999
1112 - Updating button active state in viewHeader (#1138)
* 1112 - Updating button active state in viewHeader

* Updating UI for buttons
2021-09-02 21:22:43 +05:00
Scott Bishel
94e6e8a9f7
Plugin telemetry (#1069)
* implement webapp telemetry

* cleanup

* remove imports, update events

* change event title

* update for lint

* add test, update filename

* linter fix

* fix field name

* revert changes

* fix test

* update builds

* fix workflows

* fix workflows

* fix workflow

* temp checkin

* remove log lines

* updates from peer review
2021-09-01 15:53:27 -06:00
kamre
58f9c7e42f
Merge branch 'main' into gh-1059-fix-empty-placeholder-in-card-dialog 2021-09-01 13:13:31 +07:00
Miguel de la Cruz
583d9f8a10
Add retry mechanism when opening WSClient in plugin mode (#1135)
* Add retry mechanism when opening WSClient in plugin mode

* Fix linter

* Add return when sending command
2021-08-31 12:01:17 +02:00
Julien Fabre
3baa44a25f
[GH-826] Add unit test for blockIconSelector (#1063)
* [chore #826]: add unit test for blockIconSelector

* refacto: review mutator mock

* refacto: add data-testid on menuwrapper and change query

* fix: snapshot on table and data-testid

* fix: add snapshot on test

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-30 13:53:49 -06:00
Julien Fabre
e34d6c1b7d
[GH-824] Add unit test for addContentMenuItem (#1073)
* chore #824: add test unit addContentMenuItem

* fix: format test correctly

* fix: add snapshot test

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-30 13:25:22 -06:00
Weblate (bot)
5715bc8374
Translations update from Weblate (#1128)
* Translated using Weblate (Occitan)

Currently translated at 100.0% (165 of 165 strings)

Co-authored-by: Quentin PAGÈS <quentinantonin@free.fr>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/oc/
Translation: Focalboard/webapp

* Translated using Weblate (French)

Currently translated at 98.1% (162 of 165 strings)

Co-authored-by: Nathanaël <contact@nathanaelhoun.fr>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/fr/
Translation: Focalboard/webapp

* Translated using Weblate (French)

Currently translated at 98.1% (162 of 165 strings)

Co-authored-by: jellium <jellium@protonmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/fr/
Translation: Focalboard/webapp

Co-authored-by: Quentin PAGÈS <quentinantonin@free.fr>
Co-authored-by: Nathanaël <contact@nathanaelhoun.fr>
Co-authored-by: jellium <jellium@protonmail.com>
2021-08-30 13:29:10 +05:30
Harshil Sharma
7f8dc816cd
Made calculation options hidden when empty: (#1076)
* Made calculation options hidden when empty:

* WIP

* Made calculation row visible on hover

* Updated tests

* Fixed issue with plugin mode

* Fixed a bug where options didn't hide after selecting an option

* Updating opacity

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-08-30 11:43:21 +05:30
Miguel de la Cruz
e10229031f
Add a plugin adapter to reuse MM websocket in plugin mode (#1079)
* Add a plugin adapter to reuse MM websocket in plugin mode

* Remove development replace

* Switch all go.mod files to use 1.16

* Fix linter issues

* Fix linter

* Update server version to contain the new hooks
2021-08-27 10:59:14 +02:00
kamre
bd13e8f1e5
Merge branch 'main' into gh-1059-fix-empty-placeholder-in-card-dialog 2021-08-27 15:37:31 +07:00
Chen-I Lim
c3f5993126
Fix #1106. Hydrate blocks on sync. (#1107)
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-26 18:33:51 -07:00
Scott Bishel
10275e0339
GH-1090 - move center align to table-row-container (#1099)
* move center align to table-row-container

* fix lint
2021-08-26 16:28:18 -06:00
Andrey Eremchenko
e299940cad Unit test for DateRange fixed. Snapshots updated. 2021-08-26 23:04:01 +07:00
Andrey Eremchenko
5e1115c1f2 Show placeholders with 'Empty' text for empty fields in the card dialog. 2021-08-26 19:58:38 +07:00
Jesús Espino
964cc1a0b8
Fix card insertion order (#1030)
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-26 11:29:19 +02:00
Jesús Espino
171164ec6d
Use card id in the url (#1050)
* Use card id in the url

* Fix linter error

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-26 11:27:06 +02:00
Jesús Espino
55e506bd0e
Add stylelint to the CI (#1078)
* Add stylelint to the CI

* remove duplicated line

* remove more duplicated lines

* Adding extra rule to avoid duplicated properties
2021-08-26 11:25:25 +02:00
Harshil Sharma
609b69ec53
Don't update the card if the property or description didn't change (#1092)
* Not updating card when property or discription is not changed

* Added tests

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-26 11:19:32 +05:30
Jesús Espino
8c9a7f21b7
Fix chrome drag and drop preview (#1097) 2021-08-25 16:46:01 +02:00
Jesús Espino
dd8083a915
Fixing property name text select on plugin mode (#1094) 2021-08-25 15:01:22 +02:00
Jesús Espino
dfb34d81a2
Automatically add the .focalboard-body class to all sass classes on plugin mode (#1068)
* Automatically add the .focalboard-body class to all sass classes on plugin mode

* Addressing review comment
2021-08-25 13:05:12 +02:00
Scott Bishel
a3fabc45a0
update share url (#1062)
* update share url

* add leading slash
2021-08-24 14:07:15 -06:00
Asaad Mahmood
a01dd25ecb
Updating cell alignment for table view (#1084) 2021-08-24 20:59:12 +05:00
Asaad Mahmood
b098353898
1061 - Updating date picker (#1070) 2021-08-24 18:47:03 +05:00
Hossein
8de9ec8234
fix image paste messing with content stuffz (#1075)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-08-24 09:20:24 -04:00
kamre
e4e1f2d94a
Always stop event propagation for click on the link generated from markdown. (#1039)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-08-24 09:11:48 -04:00
Johannes Marbach
0291052c1c
[GH-912] Discard (milliseconds) when counting create/update dates (#981)
* [GH-912] Discard (milliseconds) when counting create/update dates

Card creation and update dates are displayed with hours and minutes only on
the UI. When the full timestamp is used for counting unique values, this
leads to a discrepancy because the (milli)second parts impact the count
but are not visible to the user.

This commit fixes creation and update timestamps to minutes accuracy
before their values enter any calculation.

Closes: #912

* Add parentheses to please the linter

* Add 1s to test fixtures to cover bug scenario

* Add dedicated unit tests for creation / update 1s and 1m apart

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-08-24 15:00:51 +05:30
kamre
22bfe2da13
Support readonly flag in URLProperty. (#1041) 2021-08-24 12:02:42 +05:30
Julien Fabre
fb2410f430
[GH-967] fix overflow URL property in cell (#982)
* (fix GH-967): add css property to fix width

* fix: review test link

* feat: review link scss on hover

* fix: add width inherit in url to occupy the whole space

* fix: merge error

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-23 19:08:50 -04:00
DeviousLab
f8176abd27
Updated date range arrow to single character #1058 (#1064) 2021-08-23 18:22:03 -04:00
Asaad Mahmood
a6cd2c9272
1010 - Updating text and link property (#1047) 2021-08-23 20:36:25 +05:00
Asaad Mahmood
63c2a908df
1005 - Updating padding on the share popup (#1048) 2021-08-23 19:31:05 +05:00
kamre
6bf4008199
[GH-1053] Fix table horizontal lines (#1054)
* Set width to fit content for table header and row container.

* Horizontal line for table footer fixed:
  use div wrapper to make the width of the footer equal to the width of header and rows.

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-23 09:25:39 -04:00
Jesús Espino
9bfdc7b93a
Fix border cut on kanban and gallery views (#1044) 2021-08-23 12:19:56 +02:00
Weblate (bot)
4c2563e10a
Translations update from Weblate (#1066)
* Translated using Weblate (Russian)

Currently translated at 97.5% (159 of 163 strings)

Co-authored-by: calipzo <a.kruglenko@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ru/
Translation: Focalboard/webapp

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/
Translation: Focalboard/webapp

* Translated using Weblate (German)

Currently translated at 100.0% (165 of 165 strings)

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/de/
Translation: Focalboard/webapp

* Translated using Weblate (Dutch)

Currently translated at 100.0% (165 of 165 strings)

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/nl/
Translation: Focalboard/webapp

* Translated using Weblate (Turkish)

Currently translated at 100.0% (165 of 165 strings)

Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/tr/
Translation: Focalboard/webapp

* Translated using Weblate (Japanese)

Currently translated at 100.0% (165 of 165 strings)

Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ja/
Translation: Focalboard/webapp

* Translated using Weblate (Chinese (Simplified))

Currently translated at 99.3% (164 of 165 strings)

Co-authored-by: aeomin <lin@aeomin.net>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/zh_Hans/
Translation: Focalboard/webapp

Co-authored-by: calipzo <a.kruglenko@gmail.com>
Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: aeomin <lin@aeomin.net>
2021-08-23 10:46:17 +02:00
Asaad Mahmood
a938fbeddf
1004-add-board-menu (#1045) 2021-08-20 15:43:04 -06:00
Asaad Mahmood
e8eeb51046
GH-966 - Removing empty placeholders (#1008)
* GH-966 - Removing empty placeholders

* Updating test

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-19 17:54:43 +05:00
kamre
2520d2fa4b
Prevent opening card dialog when link for URL is clicked. (#1037)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-19 12:31:15 +02:00
Jesús Espino
b5d58060cf
Fixing some color variables (#1038) 2021-08-19 12:26:26 +02:00
Scott Bishel
e5692c9e7e
Show error if Read-Only board is not available (#1022) 2021-08-18 17:36:27 -06:00
Scott Bishel
663ff4c8da
GH-989 add boards to shared component link (#1023)
* add boards to shared component link

* use Utils.getFronendBaseURL
2021-08-18 11:44:21 -06:00
Jesús Espino
727641f3db
Add paste/drop images on cards (#987)
* Add paste/drop images on cards

* Fix eslint
2021-08-18 12:14:50 +02:00
Jesús Espino
249a8c23a4
Fixing text selection in all inputs for Firefox (#1025) 2021-08-17 18:41:55 -06:00
Jesús Espino
83a45ae706
Fixing favicon changes on other browsers (#1017) 2021-08-17 22:50:49 +02:00
Hossein
7bc168ad84
Fix Problem (#1019) 2021-08-17 16:36:10 -04:00
Asaad Mahmood
0675c7e502
GH-965 - Updating global nav right sidebar buttons (#983)
* GH-965 - Updating global nav right sidebar buttons

* Updating test
2021-08-16 23:26:32 +05:00
Asaad Mahmood
7b5a45dc6c
GH-959 - Fixing board headers on scroll (#984) 2021-08-16 23:00:55 +05:00
Jesús Espino
969ceeb93e
Adjust image size to content column size (#1000) 2021-08-16 18:26:03 +02:00
Shahzaib
712c18efce
[GH-858] Add test cases for the multi-select component (#906)
* test(multiSelect): Add test cases for multi-select

* Remove `creatable-selector-parent` test id

* test(multiSelect): Make elements more accessible

* Update all snapshots that renders the `multiSelect`, `iconButton`, and `textOption` components

* Add the internationalized messages for the `aria-label` attributes

* cleanup(multiSelect.test.tsx): Remove the `DndProvider` from the `Wrapper` component

* Change the `ids` of `intl.formatMessage` arg

Co-authored-by: Shahzaib <shahzaib@placemarktechnologies.com>
2021-08-16 18:03:33 +02:00
Weblate (bot)
2cecf640b2
Translations update from Weblate (#986)
* Translated using Weblate (Swedish)

Currently translated at 100.0% (163 of 163 strings)

Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/sv/
Translation: Focalboard/webapp

* Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (163 of 163 strings)

Co-authored-by: leandro-costa <leandro.costa@ifba.edu.br>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/pt_BR/
Translation: Focalboard/webapp

* Translated using Weblate (Occitan)

Currently translated at 100.0% (163 of 163 strings)

Co-authored-by: Quentin PAGÈS <quentinantonin@free.fr>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/oc/
Translation: Focalboard/webapp

Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Co-authored-by: leandro-costa <leandro.costa@ifba.edu.br>
Co-authored-by: Quentin PAGÈS <quentinantonin@free.fr>
2021-08-16 10:13:45 +02:00
Asaad Mahmood
6e1b784c78
GH-894 - Removing uppercase from label (#985) 2021-08-16 08:31:48 +02:00
Johannes Marbach
b6d32da68c
[GH-314] Export native app user settings on change (#380)
* [GH-314] Export native app user settings on change

This switches from exporting the native app user settings on window close to exporting
on settings change. This way the settings export remains independent of native application
life-cycle events.

This is a stop-gap towards enabling settings export on the native Linux app. The latter
does not have an easy way to catch window close events.

Relates to: #314

* Disable no-shadow rule to prevent false-positive

* Verify allowed localStorage keys

* Fix import order/spacing

* Treat JSON parsing errors as failed import

* Read known keys from the correct type 🤦

* Extend logging with imported keys and always include _current_ user settings

* Fixing eslint

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-15 12:51:19 +02:00
Jesús Espino
f983a59973
Fix redirect problems on product switch (#972)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-14 17:26:53 +02:00
Chen-I Lim
63e94e090e
Fix #977. Show uncollapse button even with global nav. (#979) 2021-08-13 15:25:45 -07:00
Hossein
27ff092e28
Fix GH-955 and GH-936 (#971)
* Fix some major bugs BOSS BOSS

* fix variable name

* Fix RGB and Hex Mismatch
2021-08-13 10:51:18 -04:00
Jesús Espino
9d4da24e6c
Cleanup the store on the initial load call (#970) 2021-08-13 15:39:57 +02:00
Scott Bishel
1f36db5579
fix for wrong filter deletion (#961)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-13 14:01:29 +02:00
Scott Bishel
0525bfcb3b
allow overflow in Gallery View (#968)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-13 11:09:06 +02:00
Chen-I Lim
9403fb91c6
Fix #934. Sidebar hide-unhide as plugin. (#962) 2021-08-12 11:59:56 -07:00
Harshil Sharma
eca18c0660
Avoided double horizontal scrollbars (#954) 2021-08-12 19:09:44 +05:30
Harshil Sharma
34e772414a
Added ability for calculation menu to open wherver there is available space (#952)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-12 16:16:22 +05:30
Scott Bishel
ee77fad020
add overflow: none to prevent scrolling (#939)
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-12 12:07:47 +02:00
Harshil Sharma
3a7747b7dd
Fixed missing CSS vars (#949)
* Fixed missing css vars

* Updated snapshots
2021-08-12 15:29:57 +05:30
Jesús Espino
aaa0b0dccc
Moving logo and title to the global header (#947)
* Moving logo and title to the global header

* Fixing problems with the new header

* Fixing lint problems
2021-08-12 11:40:09 +02:00
Chen-I Lim
9e70a41ac6
Fix #945. Hydrate blocks on get (#946) 2021-08-12 11:39:02 +02:00
Chen-I Lim
994ed01b49
Move version label to top right for plugin (#941) 2021-08-11 16:55:19 -07:00
Jesús Espino
a60f770832
Fix flaky test (#932) 2021-08-11 12:56:20 -04:00
Jesús Espino
362b0c601a
Fix simplified chinesse language (#929) 2021-08-11 16:58:10 +02:00
Jesús Espino
ea140ba99b
Picking the default theme from the user preferences on reload when it is a plugin (#923)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-11 11:53:53 +02:00
Shahzaib
f01e7804d0
fix(dialog): Always show the close button in the Dialog component toolbar (#915)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-11 10:20:30 +02:00
Scott Bishel
51739672c3
fix css for theme name changes (#926)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-11 10:07:49 +02:00
Jesús Espino
92fdd97e16
Fixing focalboard personal server icon (#921) 2021-08-11 00:16:57 +02:00
Harshil Sharma
0d97b6e281
Table calculations (#761) 2021-08-10 14:19:00 -04:00
Asaad Mahmood
8c76d86a0c
Updating focalboard icon and text (#913)
* Updating focalboard icon and text

* Updating comment
2021-08-10 22:50:16 +05:00
Jesús Espino
8fff482daa
Replacing put with patch in other mutator methods (#899) 2021-08-10 11:55:47 +02:00
Weblate (bot)
0419e563a1
Translations update from Weblate (#910)
* Translated using Weblate (German)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/de/
Translation: Focalboard/webapp

* Translated using Weblate (French)

Currently translated at 94.8% (167 of 176 strings)

Co-authored-by: C138 <cabernet138@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/fr/
Translation: Focalboard/webapp

* Translated using Weblate (Turkish)

Currently translated at 100.0% (163 of 163 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/tr/
Translation: Focalboard/webapp

* Translated using Weblate (Swedish)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/sv/
Translation: Focalboard/webapp

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/
Translation: Focalboard/webapp

* Translated using Weblate (German)

Currently translated at 100.0% (163 of 163 strings)

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/de/
Translation: Focalboard/webapp

* Translated using Weblate (Japanese)

Currently translated at 100.0% (163 of 163 strings)

Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ja/
Translation: Focalboard/webapp

* Translated using Weblate (Dutch)

Currently translated at 100.0% (163 of 163 strings)

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/nl/
Translation: Focalboard/webapp

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (163 of 163 strings)

Co-authored-by: aeomin <lin@aeomin.net>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/zh_Hans/
Translation: Focalboard/webapp

* Translated using Weblate (French)

Currently translated at 93.8% (153 of 163 strings)

Co-authored-by: jellium <jellium@protonmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/fr/
Translation: Focalboard/webapp

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Co-authored-by: C138 <cabernet138@gmail.com>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: aeomin <lin@aeomin.net>
Co-authored-by: jellium <jellium@protonmail.com>
2021-08-10 10:57:47 +02:00
Asaad Mahmood
d816af323e
MM-37087 - Updating heading fonts (#908) 2021-08-10 00:34:48 +05:00
Hossein
cdc72c31f8
Write Test for cardDetailContents (#884)
* LETS WRITE SOME TESTS WOOHOO!!!

* fix up testing

* update snapshot

* use mockDOM

* fix linting

* use querySelector

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-09 08:24:36 -04:00
Jesús Espino
1914b5a921
Making theming compatible with mattermost on plugin mode (#883)
* Making theming compatible with mattermost on plugin mode

* Fixing some variables

* Adding isFocalboardPlugin function

* Fixing some styles

* Improving styles for boards icon in the global switcher
2021-08-06 19:58:28 +02:00
Chen-I Lim
38e71d8b18 Merge branch 'main' of github.com:mattermost/focalboard 2021-08-06 10:37:43 -07:00
Chen-I Lim
7d2a58081c Update version to v0.9.0 2021-08-06 10:37:28 -07:00
Scott Bishel
383723a128
Implement Date ranges (#660)
* initial commit

* update to work around state issue

* update comments

* temp commit

* add unit tests, cleanup

* language extract, lint fix

* update stored object to be same as state object

* fixing merge issues

* update dates to use locale

* linter fixes, test cleanup

* self review

* add unit test, fixes

* fix linter

* remove dateFormat from calls

* move DateRange to components

* update translations

* spacing fix

* update tests, fix some hour inconsistencies

* remove logging

* more updates

* more cleanup

* update to disply mm/dd/yyyy when editing

* update to disply mm/dd/yyyy when editing

* input date use locale

* update css to make selection round

* update css to make begin/end round
2021-08-06 10:44:01 -06:00
Jesús Espino
c734cfb8d1
Adding support for patch blocks (#877)
* Adding support for patch blocks

* Adding some improvements

* Adding api integration test for patch

* Adding SQL store tests

* Regenerating autogenerated code

* Fix linter errors

* Remove wrong update of the swagger file

* Update server/model/block.go

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>

* Fix gofmt

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>
2021-08-06 14:10:24 +02:00
Scott Bishel
2eb3f59ddc
[Gh 684] Autosize fix for multi-select columns (#882)
* temporary commit

* cleanup code

* final fixes

* remove setting perItemPadding where not necessary

* Update webapp/src/octoUtils.tsx

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>

* Update webapp/src/components/table/table.tsx

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-05 09:24:01 -06:00
Harshil Sharma
578b91fd2e
Fixed comments not displaying in readonly view (#820)
* Fixed comments not displaying in readonly view

* FIxed some tests

* Updated tests

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-05 18:52:15 +05:30
Scott Bishel
beebf70cbc
update text for shared board (#880) 2021-08-04 17:22:55 -06:00
Christopher Speller
515edb9dcf
Global header support (#736)
* Adding global header support.

* Set the landing URL for the global header to /dashboard

* Redirecting directly to the current channel on open Boards

* Some improvements on global header

* Adding missed file

* Removing theme selector from the global header and fixing a style bug on the channel header icon

* Adding global header tests

* Adding missed file

* Fix global header icon

* Adding isFocalboardPlugin function

* Fixing unit tests

* Fixing problem with header menu styles

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-04 16:57:56 +02:00
Jesús Espino
fb75ad2789
Show add content button on hover or focus of content block (#876)
* Show add content button on hover or focus of content block

* Updating UI to make the overlay textarea to be consitent

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-08-04 16:12:58 +02:00
Jesús Espino
caedc771b4
Fix problems with no refreshed data on handlers (#872)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-03 15:49:09 +02:00
Jesús Espino
81166b56e4
Keeping the visible and hidden options when you change the grouping (#873) 2021-08-02 23:08:26 +02:00
Jesús Espino
e481ba7170
Add clear button to value selectors (#823)
* Add clear button to value selectors

* Only show the clear button on not-readonly cases

* Updating the test snapshots

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-02 21:33:07 +02:00
kamre
3c41630af5
Fix usages of element's computed style in Firefox: (#822)
- don't use shorthands like `borderLeft` or `font` because they are empty strings
  - construct font string that is required for setting into canvas context from
    individual font properties if `font` property is empty string

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-02 21:31:17 +02:00
kamre
d53c79772e
Fix kanban board height. (#825)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-02 21:14:08 +02:00
Jesús Espino
b2206f0b7e
Match the user settings for icon prefill on card for template (#870) 2021-08-02 20:18:31 +02:00
Jesús Espino
be28b7dad5
Migrate webapp global state to redux (#737)
* Migrating workspace tree to redux

* More changes for use the redux store for boads and views

* Taking into account the templates on websocket event updates

* Fixing bug on boardTree maintenance

* Websocket client now connects once and subscribe/desubscribe on the fly

* Including usage of the new websocket client

* More work around migrating to redux

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Fixing some things

* WIP

* WIP

* Another small fix

* Restoring filtering, sorting and grouping

* Fixing some other bugs

* Add search text reducer

* Fixing another drag and drop problem

* Improve store names and api

* Fixing small bgus

* Some small fixes

* fixing login

* Fixing register page

* Some other improvements

* Removing unneeded old files

* Removing the need of userCache

* Fixing comments and fixing content ordering

* Fixing sort

* Fixing some TODOs

* Fixing tests

* Fixing snapshot

* Fixing cypress tests

* Fix eslint

* Fixing server tests

* Updating the add cards actions

* Fixing some tiny navigation problems

* Mocking the api calls to pass the tests

* Migrating a new test to redux

* Adding the card right after the insert of the block (not wait for ws event)

* Showing the ws disconnect banner only after 5 seconds of disconnection

* Fixing share view

* Fix eslint

* Fixing problem with sort/groupby modifications

* Fixing some details on redirections and templates creation

* Fixing small bugs around undo

* Fix update properties on click outside the dialog

* Improving the column resize look and feel

* Removing the class based objects from the store (now they are all plain objects

* Fix eslint

* Fixing tests

* Removing unneeded code
2021-08-02 17:46:00 +02:00
kamre
9b5530af5e
Don't do anything when the card is dropped on itself. (#813)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-02 12:12:01 +02:00
kamre
ae29ae105c
Proper computation of total horizontal padding for svg element. (#802)
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-02 11:47:55 +02:00
Weblate (bot)
fc01e65fbf
Translations update from Weblate (#818)
* Translated using Weblate (German)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/de/
Translation: Focalboard/webapp

* Translated using Weblate (Russian)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: Alexey Napalkov <flynbit@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ru/
Translation: Focalboard/webapp

* Translated using Weblate (Turkish)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/tr/
Translation: Focalboard/webapp

* Translated using Weblate (Japanese)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ja/
Translation: Focalboard/webapp

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: aeomin <lin@aeomin.net>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/zh_Hans/
Translation: Focalboard/webapp

* Translated using Weblate (Dutch)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/nl/
Translation: Focalboard/webapp

* Translated using Weblate (Swedish)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: Peter Krantz <peter.krantz@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/sv/
Translation: Focalboard/webapp

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Co-authored-by: Alexey Napalkov <flynbit@gmail.com>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: aeomin <lin@aeomin.net>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Peter Krantz <peter.krantz@gmail.com>
2021-08-02 09:24:10 +02:00
Jesús Espino
2f827ba5b4
Fix bug on save on unmount (#811)
* Fix tiny code order problem

* Fixed #809
2021-08-02 08:06:38 +02:00
Jesús Espino
6bbbecf366
Fix update properties on click outside the dialog (#807) 2021-07-30 21:07:10 +02:00