Commit graph

1659 commits

Author SHA1 Message Date
Harshil Sharma
add57216a7
ADded submath support in one missed place (#1156)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-09-09 12:05:30 +02:00
CuriousCorrelation
d4dd403e48
[GH-1130] Fixes 'Today' button not selecting date and entered date not being selected in calendar (#1149)
* [GH-1130] Fix 'Today' button not selecting date

* [GH-1130] Fix entered day not selected in calendar

* [GH-1130] Add test for calendar Today button

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-09-09 10:57:15 +05:30
Chen-I Lim
7c65953ed9
Fix #1034. Update help link. (#1163)
* Fix #1034. Update help link.

* npm test -- -u
2021-09-08 16:49:08 -07:00
Chen-I Lim
33f7b246be
Fix #1161. Add Give Feedback link. (#1162)
* Fix #1161. Add Give Feedback link.

* Pass version to feedback link

* npm run i18n-extract
2021-09-08 16:34:02 -07:00
Harshil Sharma
08db4fed61
Workspace switcher (#1052)
* API WIP

* WIP

* Finished changes

* Fixed colors:

* Don't enforce charset adn collation in migration, pick from database DSN

* Added MySQL query

* Updated mocks

* Added tests

* Lint fixes

* Fixed typo and removed unsed style

* Checked in a snapshot

* Updated snapshot

* Updated Cypress test

* Updated Cypress test

* Updated Cypress test

* Fixed review comments

* Fixed tests

* Added default collation for MySQL

* Added documentation for ensuring correct database collation

* Updated migrations

* Fixed a bug with collation

* Fixed lint errors

* Used correct collation

* debugging

* Updating css

* Minor UI changes

* USe inbuilt default collation

* Used only charset for mysql

* Fixed linter issue:

* Added migration for matching collation

* Reverted local config changes

* Reverted local config changes

* Handled the case of personal server running on MySQL

* WIP

* Now running collation matching migration onlyt for plugins

* Minor optimization

* Multiple review fixes

* Added group by clause to primary query

* Supported for subpacth

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-09-08 10:22:03 +05:30
Harshil Sharma
de5f06c426
Added support for subpaths in siteURL (#1110)
* Added support for subpaths in siteURL

* Removed a debug statement

Co-authored-by: Jesús Espino <jespinog@gmail.com>

* Updated channel header to support subpaths

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-09-07 10:08:02 +05:30
Scott Bishel
c56e6edc51
GH-1133 add/reset languages, make single language source (#1134)
* add/reset languages, make single language source

* update i18n for additional languages

* move import statement

* update 'zh-tw' to 'zh-tx'

* update 'zh-tx' to 'zh-tw', support both

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-09-06 17:47:33 +05:30
kamre
1a007754b3
Switch from useEffect to useLayoutEffect in the RootPortal component. (#1120)
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-09-06 17:47:10 +05:30
Weblate (bot)
704454ab69
Translations update from Weblate (#1152)
* Translated using Weblate (Arabic)

Currently translated at 36.3% (60 of 165 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ar/

Added translation using Weblate (Arabic)

* Translated using Weblate (Swedish)

Currently translated at 100.0% (165 of 165 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/sv/

Co-authored-by: ButterflyOfFire <butterflyoffire@protonmail.com>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
2021-09-06 09:19:34 +02:00
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
PrasannaSudharsan R
59b8ae4517
423 | Added unit tests for files.go (#1119)
* 423 | Added unit tests for files.go

* 423| Fixed linting errors

* 423 | Fixed linting errors in files_test.go

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-31 16:08:18 -06:00
Scott Bishel
f10b4a82a3
fix for displaying global nav in focalboard (#1132) 2021-08-31 11:24:41 -06: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
dave
414d651d2c
[GH-432] Add unit tests for ./services/telemetry/telemetry.go (#1091)
* Add unit tests  for ./services/telemetry/telemetry.go

* make ci happy

* Update server/services/telemetry/telemetry_test.go

Update imports

* Update server/services/telemetry/telemetry_test.go

* Update server/services/telemetry/telemetry_test.go

* Update server/services/telemetry/telemetry_test.go

* Update server/services/telemetry/telemetry_test.go

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-30 20:16:47 -06: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
Scott Bishel
08f34d2f63
update marketplace name/description (#1118)
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2021-08-27 14:14:23 +02:00
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
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
Jesús Espino
e834c15ce7
Only run the sessions clean up on plugin mode (#1043)
* Only run the sessions clean up on plugin mode

* fix error
2021-08-26 11:33:34 +02: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
Jesús Espino
79f026b9a9
Making favicon store/restore more robust (#1093) 2021-08-26 10:14:41 +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
Doug Lauder
b58497e2ea
Replace mlog with server v6 mlog (#1088)
* replace mlog with server v6 mlog
* remove FB mlog from plugin
2021-08-25 16:08:01 -04:00
Chen-I Lim
791c600151
Fix #1086. Update channel header button hint. (#1103)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-25 10:48:51 -07:00
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
Chen-I Lim
5f8e08b79e
Fix #1086: Update channel header button hint (#1087) 2021-08-24 11:48:29 -07: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
Miguel de la Cruz
f9c76d8129
Update focalboard to be compatible with mattermost v6 (#1020)
* Update focalboard to be compatible with mattermost v6

* Point to the new plugin API version

* Fix collectors linter issues

* Move all CI jobs to 1.16
2021-08-24 12:13:58 +02: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
Jesús Espino
74161aa1ca
Remove duplicated restart on docker compose (#1067) 2021-08-23 16:38:34 +02: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