1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-09 08:56:07 +02:00
Commit Graph

1107 Commits

Author SHA1 Message Date
Hossein
fee83b49a6
Write Unit Test for emptyCenterPanel.tsx and welcomePage.tsx (#1621)
* write test for welcomePage

* Add test for emptyCenterPanel

* Addresse Jesus Comments

* Address Jesus Comments
2021-10-25 11:44:46 -04:00
Marc Velasco
169326e714
removed TODO comments flagged by eslint (#1623) 2021-10-25 11:36:59 -04:00
Nishant Mittal
e33fa1d593
fix: minor fixes to addContentMenuItem.test.tsx and cardDialog.test.tsx (#1651) 2021-10-25 16:38:25 +02:00
Julien Fabre
eac489231a
chore[GH-#831]: Add unit tests for emptyCenterPanel (#1652) 2021-10-25 13:11:14 +05:30
Chen-I Lim
ae552e260c
Update to v0.10 (#1633) 2021-10-22 13:59:05 -07:00
Hossein
eed1f86c15
Unfurl Focalboard Link (#1081) 2021-10-22 12:13:31 -04:00
Harshil Sharma
2415c9f28b
Ensure workspace ID is available in path (#1594)
* WIP: Testing a fix

* Moved to workspace ID path if workspace ID is available

* Remived debug logs

* added personal server check

* Removed an awesome class name

* Use replace instead of push
2021-10-22 14:37:46 +05:30
Julien Fabre
0e6fab45eb
chore[GH-#829]: Add unit tests for contentBlock (#1609)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-21 13:42:39 -04:00
Scott Bishel
d0083f6ed0
GH-1489: Add Telemetry for Shared Boards (#1610)
* add telemetry for shared boards

* move where setting view out of Routes

* add for configuration setting

* fix spacing

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-21 11:17:31 -06:00
Miguel de la Cruz
d22fe7fbc0
Modify undo manager to return a value and use it on undo (#1616)
* Modify undo manager to return a value and use it on undo

* Storing the last redo value internally to correctly run undo

* Fix types

* Improve test ensuring redo didn't add original block

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-21 18:50:19 +02:00
Hossein
9f74287802
fix main (#1619) 2021-10-21 10:29:06 -04:00
Miguel de la Cruz
afc37ca3af
Add non-reliable websockets support (#1497)
* Add non-reliable websockets support

* Remove unused properties

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-10-21 15:44:27 +02:00
Julien Fabre
17b2d07daf
[GH-852]: Add tests for galleryCard (#1587)
* chore[GH-#852]: Add tests for GalleryCard

* fix: error octoClient not mocked

* fix: review snapshot for image
2021-10-21 14:09:45 +02:00
Hossein
95b230acea
fix main (#1604) 2021-10-20 10:21:10 -04:00
Naresh Chavan
4465a85c3e
Update iconButton.tsx (#1512) 2021-10-20 08:21:24 -04:00
Julien Fabre
e5e7501efb
[GH-827] Add tests for cardDialog (#1592) 2021-10-19 22:39:53 -04:00
Nishant Mittal
96c346ed0f
[GH-1003] Deleted option doesn't go away immediately in select property (#1569) 2021-10-19 15:36:16 -04:00
Johannes Marbach
14634fd4e8
[GH-1080] Use current locale for date range (#1575)
This uses the currently configured locale to compute the value of date
range table aggregations. Previously, it would fall back to the browser
locale (or English) and ignore the locale configured in Focalboard
itself.

Relates to: #1080

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-18 15:17:08 -04:00
Julien Fabre
85ffb63b91
chore[GH-#851]: Add unit tests for Gallery (#1577)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-18 14:53:36 -04:00
Weblate (bot)
0488170beb
Translations update from Weblate (#1588)
* Translated using Weblate (Spanish)

Currently translated at 85.6% (155 of 181 strings)

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

* Translated using Weblate (Greek)

Currently translated at 26.5% (48 of 181 strings)

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

* Translated using Weblate (Dutch)

Currently translated at 99.4% (183 of 184 strings)

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

Added translation using Weblate (Hungarian)

* Translated using Weblate (German)

Currently translated at 100.0% (184 of 184 strings)

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

* Translated using Weblate (Japanese)

Currently translated at 100.0% (184 of 184 strings)

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

* Translated using Weblate (Occitan)

Currently translated at 99.4% (183 of 184 strings)

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

Translated using Weblate (Occitan)

Currently translated at 98.3% (181 of 184 strings)

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

* Translated using Weblate (Turkish)

Currently translated at 100.0% (184 of 184 strings)

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

* Translated using Weblate (Spanish)

Currently translated at 92.9% (171 of 184 strings)

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

* Translated using Weblate (Hungarian)

Currently translated at 94.0% (173 of 184 strings)

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

* Translated using Weblate (Chinese (Simplified))

Currently translated at 83.1% (153 of 184 strings)

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

* Translated using Weblate (French)

Currently translated at 93.4% (172 of 184 strings)

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

* Translated using Weblate (Polish)

Currently translated at 100.0% (184 of 184 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 100.0% (184 of 184 strings)

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

Co-authored-by: Diego Alvarez <dialvarezs@gmail.com>
Co-authored-by: Golfo Vasiliou <faysvas@yahoo.com>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: Quentin PAGÈS <quentinantonin@free.fr>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Sofia Carballo <sofia.carballo@live.com>
Co-authored-by: Tóth Csaba // Online ERP Hungary Kft <csaba.toth@online-erp.hu>
Co-authored-by: aeomin <lin@aeomin.net>
Co-authored-by: Nathanaël <contact@nathanaelhoun.fr>
Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: MArtin Johnson <martinjohnson@bahnhof.se>
2021-10-18 11:13:15 -05:00
Adithya Krishna
034c4828b1
Fixed Auto Expand Issue (#1554)
Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
2021-10-18 17:34:51 +05:30
Nakul Chauhan
a8390747d3
Fixed overflowing checkbox (#1585) 2021-10-18 01:45:36 -04:00
Rafael Baldasso Audibert
1c5d4aeeb2
Some webapp linter fixes (#1405)
* fix: Fix eslint warning when using `window as any`

* fix: FIx some eslint errors

Closes #1359

* fix: Add some mora extra types

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-16 18:36:03 +02:00
Nishant Mittal
ffbd22afb8
[GH-1315] Fix card automatically scrolls to bottom (#1573)
* fix: card automatically scrolls to bottom

* fix: update jest snapshots
2021-10-16 07:48:12 -04:00
kamre
b5a194b62c
CardDetailProvider wraps the content part of the GalleryCard. (#1556)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-15 15:34:30 -06:00
Johannes Marbach
5204e2d080
[GH-1368] Add empty / not empty table aggregations (#1557)
This adds new aggregations for counting empty / not empty cards as well
as computing the respective percentage.

Fixes: #1368
2021-10-15 15:25:38 -06:00
DeeJayBro
40b9e3341f
Fix Share Dialog text overflow in german language (#1559) 2021-10-15 15:17:12 -06:00
Johannes Marbach
f771878fa8
[GH-411] Use relative date/time for comments (#1574)
This replaces the absolute date for comments on cards with a relative
date/time format and moves the absolute value into a tooltip.

Fixes: #411
2021-10-15 15:15:32 -06:00
Doug Lauder
d49a802c3c
fix card URLs with no viewid (#1571)
* fix card URLs with no viewid

* revert ServerRoot change
2021-10-15 14:23:35 -04:00
Nishant Mittal
845b40be84
[GH-999] Automatically search wihout pressing enter (#1506)
* feat: automatically search without pressing enter

* fix: don't create a new function on every render

* fix: cleanup debounced function when search is unmounted
2021-10-15 11:35:12 -04:00
prakharporwal
977bc1dafa
[GH-512] Feature #512 made confirmation dialog box. (#1546)
* Made confirmationDialogBox from existing dialog component

* Used ConfirmationDialogBox to raise warning before deletion of card property

* fixes as ci checks did not pass

* fixes to pass ci tests

* Flash Message now visible (changed its z-index)

* Confirmation Dialog shows the property name.

* fixes for eslint test failure

* fixes for eslint test fail

* fixes for eslint test failure

* fix for eslint test failure

* fixed a wrong subtext string

* fixed eslint issues in scss

* i18n en.json for localisation updated

* `en.json;`-wrong file generated by `npm run i18n-extract ` command removed

Co-authored-by: Prakhar <>
2021-10-14 11:42:36 -07:00
Adithya Krishna
dfbf9bc72a
Fixed Icon Picker Closing Bug (#1553)
Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
2021-10-14 16:53:06 +05:30
DeeJayBro
cad6884fda
[GH-1487] fix csv export fail (#1533)
* fix csv export fail
2021-10-13 11:59:29 -04:00
DeeJayBro
f38db2bce9
fix height of hidden add icon element (#1537) 2021-10-13 11:49:29 -04:00
kamre
64fdeef893
Unit test for ContentElement fixed. (#1547) 2021-10-13 11:06:57 -04:00
Julien Fabre
45904613ec
[GH-850] Add unit tests to textElement (#1520)
* chore[GH-#850]: Add unit tests to textElement

* fix: add test on elements array
2021-10-13 16:34:36 +05:30
kamre
07cbc522fd
[GH-1467] Automatically create new checkbox when enter is pressed (#1505)
* Initial implementation for creation of new checkbox when enter is pressed.

* Card detail context added:
  - used for adding new content element
  - tracks id of new block that was added
  - used in checkbox element to set focus

* Deleting of last added empty checkbox supported.

* Rename addNewElement/addNewBlock to addElement/addBlock.

* New component CardDetailProvider for card detail context introduced.

* Delete only automatically added checkboxes.

* Fix existing unit tests: add `CardDetailProvider` when needed.

* Unit tests for `CheckboxElement` updated:
  - use mocked mutator
  - test for focus of last added checkbox added
  - test for adding new checkbox on pressing enter added
  - test for deleting automatically added checkbox on pressing esc/enter added
2021-10-13 16:33:12 +05:30
Julien Fabre
e02a03290d
[GH-847] Add unit tests for contentElement (#1501)
* chore[GH-#847]: add unit tests for contentElement

* fix: checkbox not need...

* fix: checkbox not need...
2021-10-13 16:26:38 +05:30
Sahil Silare
c6f86bdce1
BugFix: Comment textarea changes height when in focus (#1465)
* feat: Changed min-height

* feat: Added margin at bottom of avatar

* change: Removed min-height from editor preview scss.
2021-10-13 16:19:15 +05:30
Harshil Sharma
c4ee743a10
Board calculations (#1464)
* Added menu options to choose calculation

* Made calculation option component generic for use in kanban and table

* Added property type based calculation option menu

* WIP

* Prepared submenu

* Populated submenu

* WIP

* WIP

* Base implementation complete

* Done

* minor cleanup

* Updating UI for board calculations

# Conflicts:
#	webapp/src/components/kanban/calculation/calculation.tsx

* Updating UI for board

* Highlighted currently selected option

* Fixed existsing tests

* Fixed existsing tests

* Added tests

* Added tests

* Fixed some plugin CSS issues

* Fixed a unintentional snapshot update

* Fixed a test

* Fixed a test

* Fixed a test

* Fixed dashboard tests

* Fixed some review comments

* Updated snapshots for change in Button classname

* Fixed test after syncing with main

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-10-13 13:26:14 +05:30
Julien Fabre
0434e7d6b6
chore: Add test units for contentRegistry (#1521) 2021-10-12 17:03:54 -06:00
Jenya
adfa8dd347
Added markdown styles from mattermost-webapp (#1500)
* added markdown styles from mattermost-webapp

* removed semicolon to satisfy eslint demands

* Update _markdown.scss
2021-10-12 13:22:04 -04:00
Bhavin Ag
d8a4d197ed
[GH-832] Add unit test for flashMessage component (#1522)
* test: add unit test for flashMessage component

* Address concerns

Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com>
2021-10-12 13:14:10 -04:00
Puerco
264de5c3e7
Translated using Weblate (Polish) (#1530)
Currently translated at 100.0% (181 of 181 strings)

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

Co-authored-by: master7 <marcin.karkosz@rajska.info>
2021-10-12 11:43:10 -05:00
Johannes Marbach
6ec084f93d
[GH-1080] Add table functions for dates (#1508)
This adds earliest, latest and range column aggregations for general
date as well as created/updated date properties.

Fixes: #1080
2021-10-12 17:01:38 +05:30
Hossein
c9aeeb38bf
GH-1333: Implement Screen 3 and 4 of v6.0 navigation and FTUE (#1341) 2021-10-11 14:16:59 -04:00
Weblate (bot)
319dcbfb5d
Translations update from Weblate (#1514)
* Translated using Weblate (Polish)

Currently translated at 1.1% (2 of 181 strings)

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

Added translation using Weblate (Polish)

* Translated using Weblate (Indonesian)

Currently translated at 74.5% (135 of 181 strings)

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

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (181 of 181 strings)

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

Translated using Weblate (Indonesian)

Currently translated at 74.5% (135 of 181 strings)

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

* Translated using Weblate (Turkish)

Currently translated at 100.0% (181 of 181 strings)

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

* Translated using Weblate (French)

Currently translated at 93.9% (170 of 181 strings)

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

Translated using Weblate (French)

Currently translated at 92.8% (168 of 181 strings)

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

Co-authored-by: master7 <marcin.karkosz@rajska.info>
Co-authored-by: Muhammad Zul Marij Rizqi Fathullah <muhammadzulmarijrizqifathullah@gmail.com>
Co-authored-by: Syauqy Nurul Aziz <syauqyaziz@gmail.com>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Anne-Laure Gaillard <alaure.gaillard@gmail.com>
2021-10-11 18:18:50 +02:00
Julien Fabre
3faa053bc6
chore[GH-#845]: add tests unit for comment (#1493) 2021-10-11 08:49:47 -06:00
Julien Fabre
598c404779
chore[GH-#848]: add unit test for dividerElement (#1503) 2021-10-11 08:45:47 -06:00
Julien Fabre
9ca5cd6a87
chore[GH-#849]: Add unit test for imageElement (#1502) 2021-10-08 19:38:14 -04:00