Commit graph

1014 commits

Author SHA1 Message Date
Julien Fabre
61aebfd39f
chore[GH-#853]: Add unit tests for kanban (#1718)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-08 10:08:12 -07:00
Scott Bishel
a9d397c5e1
throw error if workspace is undefined (#1773) 2021-11-08 09:49:59 -07:00
Miguel de la Cruz
fa36e092bb
Server generated ids (#1667)
* Adds server ID generation on the insert blocks endpoint

* Fix linter

* Fix server linter

* Fix integration tests

* Update endpoint docs

* Update code to use the BlockType2IDType function when generating new IDs

* Handle new block ids on boards, templates and views creation

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-05 11:54:27 +01:00
Scott Bishel
581ae7b97a
fix failing test (#1757) 2021-11-04 19:33:08 +01:00
Scott Bishel
381085f655
Fixes issue with dates and daylight savings (#1752)
* dates should use themselves for timezone offset

* remove log lines

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-04 19:21:47 +01:00
Miguel de la Cruz
f566a7d7c0
Redirect to new routes when visiting a board with the legacy ones (#1746) 2021-11-04 18:24:57 +01:00
jrester
13ef8e85f3
[GH-1510] make calculation options translatable (#1529)
* make calculation options translatable

* fix liniting errors

* don't modiy options

* fix liniting error

* Fix failing test

* some tests where failing because the IntlProvider was missing in the
  component hierachy
* changed 'Unique Values' to just 'Unique'
2021-11-04 16:51:17 +01:00
Julien Fabre
6741b0e07e
[GH-837]: Add unit tests for topBar (#1751)
* chore[GH-#837]: Add unit tests for topBar

* fix: eslint error for screen

* fix: none

* fix: none and snapshot...
2021-11-04 09:35:05 -04:00
Fares Rihani
69b8641534
[GH-1351] Webapp Linter Fixes - Investigate / Update using any Record<string, any> (#1682)
* Webapp Linter Fixes - update workspace.ts, dateRange.tsx, editableDatePicker.tsx

* Webapp Linter Fixes - accept Record<string, any> in block.ts, user.tsx

* Webapp Linter Fixes - Cleanup moment global-require

* Webapp Linter Fixes - match settings type to backend in workspace.ts

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-04 11:43:03 +01:00
Miguel de la Cruz
cee4b72261
Normalise and add safety checks to telemetry code (#1739)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-03 18:46:51 +01:00
Nishant Mittal
02f7615c10
[GH-1432]: Use Button component on welcomePage.tsx (#1734)
* feat: use Button component on welcomePage.tsx

* update snapshots and fix lint errors

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-03 10:03:18 -06:00
Miguel de la Cruz
cadbaf5724
Check nulls on board and active view when tracking telemetry events (#1738)
* Check nulls on board and active view when tracking telemetry events

* Update effect to trigger a track event when the board or the view change
2021-11-03 16:22:22 +01:00
Grzegorz Tańczyk
ef22efd917
[GH-1278] Confirm delete when deleting board (#1339)
* Delete board confirmation modal (#1278)

* dialog should fill the screen on small resolution

* Updating delete board confirm UI

* Pass onClose callback to Dialog props

* lint

* removing danger-button-bg-rgb from shared variables, adjusting dialog styles to work both in plugin and standalone version of focalboard

* lint

* remove set timeout

* Update button.scss

* update snpashot

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-11-03 08:57:03 -04:00
Jenya
f6c867b4af
Fixed menu label hover (#1499)
* Fixed menu label hover

* removed cursor in menu wrapper, causing pointer cursor on entire option menu

* Fixed sidebar menu buttons having no cursor

* logo title cursor

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-03 17:44:32 +05:30
Kunal Kumar Verma
9a3406d0d6
fix: error message ui (#1683)
Signed-off-by: kkvanonymous <ninja.kunal01@gmail.com>
2021-11-03 17:02:31 +05:30
Harshil Sharma
d5be5258af
Prevented workspace switcher from settiong dashboard as the last visited workspace (#1676)
* Prevented workspace switcher from settiong dashboard as the last visited workspace ID

* Fixed tests
2021-11-03 10:29:17 +05:30
Harshil Sharma
f0ae9630ed
Fixed a bug causing duplicate options to appear in board calculations (#1711)
* Fixed a bug causing duplicate options to appear in board calculations

* Updated ate option names to avoid ambiguity with number functions
2021-11-03 09:36:11 +05:30
Kirti Lodha
e4b570e6aa
start and end dates styling changed (#1669)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-02 09:03:56 -06:00
Marc Velasco
1b10890f72
add eslint comment to ignore todo for empty if block (#1624)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-01 19:18:45 -06:00
Scott Bishel
9b9682f626
Create FeatureFlags in configurations (#1622)
* create FeatureFlags in configurations

* update for unit tests

* update unit tests, go.mod

* update go.sum

* fix lint errors

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-01 19:12:43 -06:00
Scott Bishel
754109e168
Gh 1451 mobile sidebar (#1675)
* temporary checkin

* hide sidebar by default < 768

* update to use function

* remove unused snapshot

* unhide sidebar on expansion

* update to handle manual close in personal server
2021-11-01 18:59:18 -06:00
Prakhar Porwal
1176247f41
[GH-1647] Added localization for gallery option in view menu (#1654)
* added intl formatting for name property

* ran i18n-extract script

Co-authored-by: Prakhar <>
Co-authored-by: prakharporwal <prakharporwal99@gmail.com>
2021-11-01 10:23:16 -04:00
Julien Fabre
ac3533e0e3
chore[GH-#854]: Add unit tests for kanbanCard (#1698) 2021-11-01 09:08:37 -04:00
Harshil Sharma
2bbac9d1a1
Fixed issue where clicking on rendered markdown links would move editor into editing mode (#1677)
* Fixed issue where clicking on rendered markdown links would move editor into editing mode

* Updated tests

* Minor fixes
2021-11-01 11:56:02 +05:30
Julien Fabre
b40bd0f2f9
chore[GH-#828]: Add unit tests for centerPanel (#1695) 2021-11-01 11:05:26 +05:30
Julien Tant
2063a4ec47
webapp: make 'no options' message more explicit + translatable (#1706) 2021-11-01 11:00:16 +05:30
Julien Fabre
1b1d2b78a5
chore[GH-#857]: Add unit tests for kanbanHiddenColumnItem (#1699) 2021-11-01 10:57:49 +05:30
Julien Fabre
7fa4c55473
chore[GH-#855]: Add unit test for kanbanColumn (#1704) 2021-11-01 10:55:56 +05:30
Chen-I Lim
380bd92725
Update telemetry (#1673) 2021-10-27 09:30:42 -07:00
kamre
c5a4dd80f7
[GH-705] Auto-name new property (#1408)
* Open menu with property name and type when new property is added.

* Adding new property asks for the type and sets initial name.

* Component for property types menu items introduced.

* Close property menu when enter is pressed in the input.

* Unit test for `CardDetailProperties` fixed:
 - jest snapshot updated
 - switched from mocking `fetch` to mocking `mutator`

* Unit tests for `CardDetailProperties` updated:
 - use the recommended way to get elements and trigger user events
 - test for properties menu when adding new property added

* Unit tests for `CardDetailProperties` added:
 - delete existing property
 - add new property

* Don't use debouncing for property type selection.

* Fix unit test for deleting property.

* Width of button `+ Add a property` is fixed.

* Jest snapshot updated after merge with `main`
2021-10-27 09:04:15 +02:00
Prakhar Porwal
30669e6d43
[GH-838]Created unit tests for /webapp/src/components/viewMenu.tsx (#1648)
* Created snapshot unit tests

* added one more view (table view) to unit test

Co-authored-by: Prakhar <>
2021-10-26 20:02:14 +02:00
Nishant Mittal
8b66243ca2
[GH-839] Unit tests for viewTitle.tsx (#1662)
* test: unit tests for viewTitle.tsx

* readonly: false
2021-10-26 16:58:53 +05:30
Julien Fabre
37a0b274b7
chore[GH-#834]: Add unit tests for modal (#1644) 2021-10-26 16:34:44 +05:30
Julien Fabre
3f726f9e64
chore[GH-#833]: Add unit tests for markdownEditor (#1643) 2021-10-26 16:33:39 +05:30
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