Commit graph

1062 commits

Author SHA1 Message Date
Scott Bishel
4656089cb1
GH-1872 - Updating octo-icon font weight (#1978)
* GH-1872 - Updating octo-icon font weight

* update unit tests

* update cypress tests

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-12-13 12:27:14 -07:00
Doug Lauder
75bd409ba0
Notifications phase 1 (#1851)
Backend support for subscribing/unsubscribing to blocks, typically cards and boards. Notifies subscribers when changes are made to cards they are subscribed to.
2021-12-10 10:46:37 -05:00
Scott Bishel
3450eb6d4f
Gh 1841 batch patches (#1935)
* Updating table row css (#1787)

* package patchBlocks as batches, move updateBlocks to transactional

* fix lint errors

* fix from review

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-12-10 07:17:00 -07:00
Nishant Mittal
87daacceca
fix: clear search on view change (#1856) 2021-12-10 08:08:02 -05:00
kamre
e518c391aa
[GH-1946] Fix losing focus for the card title in the dialog (#1952) 2021-12-09 12:14:29 -05:00
Harshil Sharma
42eb5ad6be
Fixed a bug preventing new template being created from a card (#1951)
* Fixed a bug preventing new template being created from a card

* Fixed a test
2021-12-09 16:35:35 +05:30
Hossein
dc36afcfba
GH-1878: Display Bot Badge in Auto Complete (#1906) 2021-12-08 10:04:19 -05:00
Hossein
c8d4c98f8c
Fix Issues (#1923) 2021-12-08 09:07:28 -05:00
Jesús Espino
6876f11a36
Making markdown editor text selectable (#1896) 2021-12-07 12:51:23 -07:00
Miguel de la Cruz
9bb38c5cb4
Prevents the application from crashing if there is a null content order (#1937) 2021-12-07 12:41:01 -07:00
Asaad Mahmood
408d26a157
GH-1880 - Updating styling for mention popup (theme compatible) (#1925)
* GH-1880 - Updating styling for mention popup

* Updating styles

* Updating css
2021-12-06 19:13:38 +05:00
Chen-I Lim
ed2c916afa
Update to v0.12 (#1904) 2021-12-01 14:55:47 -08:00
Scott Bishel
334d45969d
GH-1987 fix initial date property (#1898)
* Updating table row css (#1787)

* recreate dayCellContent when dateDisplayProperty changes

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-12-01 08:46:38 -07:00
Jesús Espino
2f08c67827
Adding explict logout logic (#1895)
* Adding explict logout logic

* Fixing golangci-lint errors
2021-12-01 10:21:31 +01:00
Scott Bishel
f450555439
GH-1864 Add + sign to add new event. (#1892)
* Updating table row css (#1787)

* add + to date anchor

* rename classes, update tests

* Updating css for button

* Updating css

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-30 10:57:34 -07:00
Asaad Mahmood
7db59f5d03
GH-1051 - Aligning card title with emojis (#1876) 2021-11-29 14:32:46 +05:30
Jesús Espino
72978fd54b
Properly generating patch diffs from two blocks (#1861)
* Properly generating patch diffs

* Ading unit tests

* Remove unneeded function

* Fixing tests
2021-11-26 18:56:27 +01:00
Asaad Mahmood
9529ad8747
GH-1284 - Fixing alignment of properties on cards (#1875)
* GH-1284 - Fixing alignment of properties on cards

* Updating test
2021-11-26 09:27:35 -07:00
Scott Bishel
2d505ce359
CalendarView Remove Feature flag (#1865)
* Updating table row css (#1787)

* remove calendarView Feature flag

* remove unused imports

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-11-26 08:51:01 -07:00
Hossein
4f9702ac12
GH-1835: Show Autocomplete Textbox when At Mentioning Users in Comments or Content Section (#1836) 2021-11-25 15:10:39 -05:00
Asaad Mahmood
fba5653049
1873 - Calendar UI update (#1874) 2021-11-25 20:30:30 +05:00
Asaad Mahmood
083d89953c
GH-1837 - Updating link css (#1862) 2021-11-25 15:50:42 +05:00
Scott Bishel
797d6bc04a
Implementation of Calendar MVP (#1741)
* initial commit

* turn on featureflag

* additional fixes

* update for using FullCalendar

* update to allow both calendars

* fix dnd, remove log messages

* fix lint, unit tests

* dates should use themselves for timezone offset

* fix for tests

* remove react-big-calendar

* remove react-big-calendar

* fix for handling feature flags changing

* clean up

* remove unit test

* update tests

* fix tests

* lint fixes

* add creating event, fixes

* linter fixes

* clean up

* add unit tests

* fixes

* update snapshots

* update test

* update snapshot

* disable test for now, timezone changes labels

* remove test to get to build

* remove snapshot

* feedback updates

* use getConfig instead

* linter fix

* more linter

* revert changes

* some fixes for issues

* fix for displaying new calendar

* fix for displaying new calendar

* add properties to cards

* add properties to cards

* read only implementation

* i18-extract

* implement unit tests

* implement unit tests

* fix test

* remove log statements

* remove feature flag from config

* updated icons

* Updating icons for calendar mvp

* Revert "Updating icons for calendar mvp"

This reverts commit e16e715e8a.

* Revert "updated icons"

This reverts commit 120b7b0b96.

* update for code reviews

* fix linter

* more feedback updates

* fix some styling

* fix lint errors

* Updating css

* Updating calendar css

* update for lint errors

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-11-24 14:00:20 -07:00
Julien Fabre
941a47aead
chore[GH-#836]: Add unit tests for shareBoardComponent (#1810) 2021-11-23 16:36:54 +05:30
Harshil Sharma
470be213ec
Fixed a bug causing duplicate date related menues to appear in kanban calculations (#1834) 2021-11-23 16:09:04 +05:30
Harshil Sharma
5730fb4bfe
Fixed issue with desktop app causing white screen (#1853)
* Fixed issue with desktop app causing white screen

* Handled for personal server mode
2021-11-23 16:05:45 +05:30
Chen-I Lim
91dc9def9b
Update version to 0.11.0 (#1859) 2021-11-22 16:15:03 -08:00
Tim Borodin
26e8625cf3
[GH-1539] Implement searching for the individual words in workspaces (#1590) 2021-11-22 14:00:26 -05:00
Julien Fabre
238e1d5f0a
[GH-830]: Add unit tests for dialog (#1637)
* chore[GH-#830]: Add unit tests for dialog

* fix: snapshot

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-22 09:18:17 -07:00
kamre
a498149a76
[GH-42] Cypress tests for login actions (#1679)
* Testing API added to server:
 - registered only if `enableTestingAPI` is set to `true` in the config file
 - has only one route `test/reset`
 - reset clears the tables in db for blocks, users, sessions
 - functions `DeleteAllBlocks` and `DeleteAllUsers` added to `Store` interface
 - new functions implemented for `SQLStore`

* Cypress tests (initial version) for login actions added:

  - redirect to login page,
  - register user,
  - test for loading home page deleted,
  - allow js in `tsconfig.json` for cypress tests.

* Cypress tests for login actions:

  - check that main page with workspace is visible after registration,
  - initial version of test for login of register user.

* Cypress tests for login actions:

  - function for checking that workspace is available added,
  - functions for login and logout added,
  - test for password change added,
  - session parameters added to server config for cypress testing.

* Switch Cypress tests to typescript.

* Use ids for inputs instead of placeholder text.

* Use cypress request for login without loading login page.

* Cypress custom command for login added.

* Cypress tests fixed:
 - new cypress commands for server reset, register/login user
 - single test for "create and delete board/card"
 - fixes for `BoardPage` component useEffect callbacks
 - npm script `runserver-test` doesn't use single user mode

* Deletion of all blocks changed:
 - also deletes blocks from history
 - public function renamed to DeleteAllBlocksPermanently
 - code for mocks and public methods generated

* Server tests for files fixed on windows.

* Cypress tests for the registration of second user via invite link added.

* Added `baseUrl` in main `tsconfig.json` (required by cypress configuration).

* Cypress test fixed. Comments as well as log messages added.

* Log a message if testing API is enabled.

* Single cypress test for register/login actions.

* Revert changes to server.

* More convenient cypress commands:
  - all API calls made as separate commands
  - declarations for commands moved to separate global.d.ts file
  - utility functions moved after test actions in 'Login actions' test
2021-11-22 16:59:01 +01:00
Asaad Mahmood
70cfdce5e6
GH-1519 - Fixing color on template picker (#1829) 2021-11-16 07:43:19 -05:00
Julien Fabre
66a12d190b
[GH-856]: Add unit tests for kanbanColumnHeader (#1703)
* chore[GH-#856]: Add unit tests for kanbanColumnHeader

* fix: update snapshot

* fix: snapshot and logplayground
2021-11-15 15:53:10 +05:30
Moncy Gopalan
e9e86d8457
Fix the issue where clicking on the + button at the top of a board group wouldn't open the newly-added card (#1708)
Co-authored-by: Moncy Gopalan <ilusivespectre@gmail.com>
2021-11-15 14:56:51 +05:30
Miguel de la Cruz
d2bcb9ad66
Shows the version change banner only on plugin update and tries to reconnect when the interface is refreshed (#1807) 2021-11-13 12:03:53 +01:00
Prakhar Porwal
27ce296b54
[GH-1655] Card Delete : added Confirmation Dialog (#1684)
* 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

* On Property Type or Name Change raises warning

* On Property Type or Name Change raises Confirmation dialog

Confirmation dialog box generalized for use

* The affected num of cards calculation added.

* If prop value not filled change after confirmation

* fixes after ci eslint failure

* fixes after ci eslint failure

* In cardDetailProperty test considered dialog box confirmation

* Added test for confirmationDialogBox

* npm run fix and fixed test failure

* snapshot files updated : `npm run updatesnapshot`

* ran i18n-extract script

* Added memo to Confirm dialog component

* reverted the addition of React.memo() as the feature breaks

* added confirmation for card  delete

* default export of Confirmation Dialog Component

* improved cardDialog test considering dialog box opening

* Added memo and useCallback for cnfrm dialog component

* eslint formating

* eslint formatting

* added confirm dialog for kanban and dialog card .

* updated snapshot . cardDetailProperty test failing

* updated snapshot

* Merge branch 'prop-update-warning-1140' into card-delete-warning-1655

* eslint formatting

* Merge branch 'prop-update-warning-1140' into card-delete-warning-1655

* removed unwanted comments

* imported library for failing test

* Updating card modal scss

* Addressed @sbishel comments

* fixed duplicate width in css

* updated comment in kanbanCard

* fixed failing snapshot test

* updated kanbanCard unit test

* npm run fix

* removed useState hook for confirmDialogProps

* removed useState hook from cardDialog and kanbanCard for confirmDialogProps.

* npm run fix

* removed duplicate declaration

Co-authored-by: Prakhar <>
Co-authored-by: prakharporwal <prakharporwal99@gmail.com>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-11-11 15:03:28 -07:00
Jesús Espino
beee6f53e7
Fixing Adding content bug (#1799) 2021-11-11 14:59:15 -07:00
Scott Bishel
60f0f5d5c4
Update icons (#1796)
* Updating table row css (#1787)

* updated icons

* update snapshots

* fixes for standard icon removal

* revert config.json changes

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-11-11 14:57:05 -07:00
Jesús Espino
537e015c72
Only allow routes without workspace prefix if you are in non-plugin mode (#1786) 2021-11-10 18:18:02 +01:00
Miguel de la Cruz
3ede6df028
Show a refresh banner on plugin update (#1720)
* Reload plugin on plugin update

* Add a banner that shows when updating the plugin and asks the user to reload

* Fix linter
2021-11-10 16:33:56 +01:00
Scott Bishel
1160477849
Updating table row css (#1787) (#1793)
Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-11-10 07:34:21 -07:00
Hossein
c13371c648
Fix GH-1690: Default card template on a board template adds a card to the template, not the board (#1748) 2021-11-09 17:11:22 -05:00
Julien Fabre
cfbec9d90b
[GH-840]: add unit tests for workspace (#1781)
* chore[GH-#840]: add unit tests for workspace

* fix: test and snapshot

* fix: snapshot error
2021-11-09 14:45:13 -07:00
Yusuke Nemoto
76cba7c02b
Fix message (#1768)
* Update deleteBoardDialog.tsx

* i18n: update en.json

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-09 14:26:42 -07:00
Jesús Espino
23d3ae3584
Fixing styles on product switcher menu (#1783) 2021-11-09 13:42:19 -07:00
sarvani1997
5fe26615f1
Fixed sort by date (#1719)
* Fixed sort by date

Date property is in JSON string. So, we should parse it and sort later.

* fix type script error

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-11-09 15:39:04 -05:00
Hossein
792d8832c6
Fix GH-1727: Board calculations: Dates are cut off (#1770)
* Fix GH-1727

* update snapshots

* fix snapshot
2021-11-09 13:26:45 -07:00
Hossein
ad0e3a1248
Fix GH-1724 (#1771) 2021-11-09 14:27:09 +01:00
Rakshit Arora
63ff9a7de5
Vertically Center Aligned createdBy, createdAt, lastModifiedBy and lastModifiedAt Properties (#1580)
* Vertically Center Aligned Dates.

* Vertically Centered lastModifiedAt & lastModifiedBy Properties

* Centered createdAt & createdBy Properties

* Added newlines in sass files

* Fixed createdBy alignment

* fix linting

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com>
2021-11-09 08:23:09 -05:00
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