Commit graph

1369 commits

Author SHA1 Message Date
Asaad Mahmood
75036d5618
GH-3544 - Updating scrollbar color (#3617) 2022-08-10 16:26:56 +05:30
Scott Bishel
c28620594a
Add category to the board search (#3626)
* Add category to the board search

* cleanup

* Handled long board names and long category names

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2022-08-10 14:48:59 +05:30
kamre
b7a35364fb
[GH-2965] Don't close property selector menu when item is clicked (#3587)
* Don't close menus for board properties or filter values when switch item is toggled.

* Stop click propagation for menu items.

* Jest tests fixed and snapshots updated.

* Fix Cypress tests.

* Unit tests for `FilterValue` and `ViewHeaderPropertiesMenu` checking that menu is not closed added.

* Reverted changes to the dom structure of `MenuWrapper`
2022-08-09 11:52:36 +05:30
Harshil Sharma
e855a37c21
Persist category state (#3579)
* WIP

* Finished impl

* Finished impl

* Added tests

* Refactored SQL migraiton into two migration to keep DDL isolated
2022-08-08 14:55:47 -06:00
Jesús Espino
d06936dc18
Fix the team highlight and the back to channels team selection (#3602) 2022-08-08 11:01:51 -06:00
Asaad Mahmood
32e584cbc5
Various UI fixes (#3581)
* 2952 - Adding boards icon for templates
* 3574 - Updating link modal css
* 2484 - Improving table fonts
2022-08-08 21:03:01 +05:00
Shivashis Padhi
d50846ed42
MM-43781: boards insights - cherry pick PR suggestions (#3596)
* Uncomment team insights test

* Add checks to make sure insights endpoints work only in plugin mode

* adding constant for my insights

Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
2022-08-08 19:04:03 +05:30
Shivashis Padhi
f00b5c9e61
[MM-43781] Feature: boards insights (#3005)
* Add boilerplate functions and handlers for boards insights

* Fix function signatures to add 'duration' parameter, fix where clauses in db queries

* Fix where clause to include boards of which userId in parameter is a member

* Modify queries to work with sqlite, postgres, mysql

* Integration tests, and results of make generate

* Lint Fixes

* Add icons to board insights

* Lint fixes

* Format insights queries without squirrel to fix parameterization issues

* Add tests for sqlstore utility functions

* Improve team insights tests by creating 2 boards

* Refactor endpoints/app to adhere to developments in 7.0 release

* Refactor queries to use squirrel

* Lint fixes

* Fix client, integration tests

* Remove old integration tests

* Add storetests, refactor functions to handle authorized board_ids

* Make queries compatible with mysql, sqlite

* Add app tests

* Fix lint errors

* Revert makefile changes, fix docstring in api

* Lint fixes and doc correction suggested by @wiggin77

* Fix mock store call count error

* adding client code

* Make the following changes

 - use serviceAPI to get user.Timezone
 - rename licenseAndGuestUserCheck to insightPermissionGate, and handle returned error better
 - validate page, perPage parameters aren't < 0

* Lint fix

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
2022-08-08 11:42:02 +05:30
Scott Bishel
9c6cfa68aa
Add Version banner to hold help link. (#3522)
* implement version banner to display link to help documentation

* cleanup

* turn off banner in cypress

* prefix property name with 'focalboard_'

* update to actual url

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-05 10:32:38 -06:00
Jesús Espino
84858d2466
Allow to search only for linkable boards (#3553)
* Allow to search only for linkable boards

* Adding permissions tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-05 10:32:19 -06:00
Jesús Espino
cdcc50e075
Removing the Admin role option from team minimum role (#3506)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-04 18:52:24 +02:00
Jesús Espino
e587890d23
Show the active board even when the category is hidden (#3556) 2022-08-04 17:30:41 +02:00
Harshil Sharma
4ccb714d64
Hide board feature (#3526)
* Added logic to hide a board

* WIP

* Completed hide board implementation

* Updated and added new tests

* Lint fix

* Updated snapshots
2022-08-04 14:49:23 +05:30
Asaad Mahmood
b6826f8509
GH-3350 - Updating language for linking modals (#3507)
GH-3350 - Updating language for linking modals and the color of buttons
GH-3512 - Added margin between button and text in link modal
GH-3523 - Updated text in share modal

Co-authored-by: Justine Geffen <justinegeffen@users.noreply.github.com>
2022-08-04 12:48:10 +05:00
Jesús Espino
d754b498a1
Showing properly channel association in DMs and GMs (#3529) 2022-08-03 16:36:37 -06:00
hyugabokko
6350263f68
i18n hardcoded strings from boardPage's UndoRedoHotKeys.tsx (#3483)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-03 16:30:28 -06:00
Harshil Sharma
1e1854a5dd
Added logic to add board member to my memberships is it is for me (#3388) 2022-08-03 17:12:14 -05:00
Rajat Dabade
bd979ecace
CSS fix for top bar menu clip for custom template (#3504)
Co-authored-by: Varghese Jose <varghese.jose@tutanota.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
2022-08-03 16:24:33 -05:00
Paul Esch-Laurent
d653047403
fix: Calendar card "..." action menu overlapping behind adjacent cards (#3486) 2022-08-03 14:57:40 -05:00
Asaad Mahmood
14e62426da
GH-3461 - Updating boards default icon (#3501)
* GH-3461 - Updating boards default icon

* Updating test

* Update webapp/src/components/sidebar/sidebarBoardItem.scss

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>

* Update webapp/src/components/sidebar/sidebarBoardItem.scss

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-01 11:52:56 -06:00
Jesús Espino
9159efb79e
Showing the right confirmation modals on channel-board linking (#3453)
* Showing the right confirmation modals on channel-board linking

* Addressing PR review channges

* Fixing linter

* Fixing another linter error
2022-08-01 13:12:11 +02:00
Jesús Espino
b31f2afe81
Only show the channel unlink option if you have the right permissions (#3430)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-01 12:14:17 +02:00
Rajat Dabade
04b553621f
New button using default template in kanban view. (#3444)
* New button using default template in kanban view.
2022-07-31 18:09:36 -04:00
Asaad Mahmood
880a7754f7
Various UI fixes (#3445)
* 3276 - FIxing textoverflow on menus

* 3185 - Fixing card title overlap with menu

* 2521 - Adding scrollbar to board description

* 3360 - Updating filter button overflow

* 3191 - Welcome screen scrolling fix

* Updating menu positioning for left alignment

* 3442 - Updating board switcher UI
2022-07-30 12:14:07 +05:00
Miguel de la Cruz
4b5152940d
Update websocket client to use the new websocket lifecycle hooks (#3485) 2022-07-29 14:32:34 -06:00
Rajat Dabade
ee395d49b1
Fetching board member in parellel (#3379)
* Translated using Weblate (Malayalam)

Currently translated at 100.0% (303 of 303 strings)

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

* Translated using Weblate (German)

Currently translated at 100.0% (312 of 312 strings)

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

* Added code for fetching all the users at one time.

* Added the code for personal server users

* Update-code

* Linter fixes

* Test cases updated, some minor changes

* Update the code according to review comments

* Cypress test fix

* Update server/services/store/mattermostauthlayer/mattermostauthlayer.go

Co-authored-by: Varghese Jose <varghese.jose@tutanota.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2022-07-29 14:28:00 -06:00
Scott Bishel
a334d14743
reset when me changes (#3473) 2022-07-29 10:41:56 -06:00
Paul Esch-Laurent
c4a90169aa
fix(webapp): update template selector text (#3468)
* fix(webapp): update template selector text

* chore: appease the linter by removing unused vars
2022-07-28 17:47:54 -04:00
Paul Esch-Laurent
f241fc19da
Board switcher keyboard shortcut navigation (#3242)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-28 12:10:18 -05:00
Harshil Sharma
b9ac00ef4e
Fixed issue with sidebar menu position (#3426)
* Fixed issue with sidebar menu position

* Removed duplicate code

* Handled small screens as well

* Fixed a class name
2022-07-28 09:36:09 -06:00
Harshil Sharma
4f7ce070bc
Added confirmation dialog for unlinking a channel (#3432)
* Added confirmation dialog for unlinking a channel

* Updated texts
2022-07-28 15:01:22 +05:30
Harshil Sharma
bf1ad30b75
Added min height for template sepector (#3427) 2022-07-28 07:35:21 +05:30
Scott Bishel
a129dbc1b8
Store current input while user is changing. (#3256)
* add ref to retrieve current text setting

* change to handle without forwardRefs

* state not needed here

* cleanup

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-27 21:35:36 +02:00
Jesús Espino
95b65dba22
Not requesting for channels in personal server mode (#3429) 2022-07-27 11:50:25 -05:00
Mattermost Build
3da7ca8e74
Improve the board creation from channels (#3415) (#3433)
* Improve the board creation from channels

* Fixing linter problem and adding channelID to the telemetry information

* Fixing and expanding a bit the tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
(cherry picked from commit 93bc9de731)

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2022-07-27 12:26:17 +02:00
Paul Esch-Laurent
62ac6a41c3
fix: share modal user list overflow out of dialog (#3393) 2022-07-22 07:58:44 +05:30
Miguel de la Cruz
e1c747d08b
Update Boards version to 7.3 (#3382) 2022-07-18 12:05:59 -06:00
Harshil Sharma
a3a753591e
Fixed multiple styling fixes (#3368)
* Fixed multiple styling fixes

* fix tests

* Update snapshots

* Update snapshots

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2022-07-15 08:51:00 +02:00
Harshil Sharma
c16703a04e
Prevented empty name in create/rename categories (#3364) 2022-07-14 17:07:49 -05:00
Miguel de la Cruz
3ae821d2e8
Refactor websockets state and lifecycle (#3315)
* Refactor websockets state and lifecycle

This PR moves the state of the authentication and subscriptions to the
websockets client, allowing for multiple components to communicate
with it and request subscriptions independently. With this change, the
lifecycle of the websockets client is now managed on a component, and
a hook is provided for easy access to it from individual components.

* Fix linter

* Integrating the new websockets in channels integration with the RHS and board selector

* Some small fixes around boards-channels relationship

* Make the boards unfurl to always use the current team

* Fixing weird behaviors in websockets and other small data related bugs in channel-board relationship

* Only warn if withWebSockets is used without a base connection

* Fix tests

* Fix linter

* Update snapshot

* Fixing plugin tests

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2022-07-14 12:31:51 +02:00
Asaad Mahmood
4561d2c787
Minor UI Updates (#3359) 2022-07-13 19:49:36 +05:30
Paul Esch-Laurent
ba64de9fa1
ci: test & lint mattermost-plugin (#3156)
* ci: test & lint `mattermost-plugin`

* chore: fix mattermost-plugin/webapp linting

* lint: fix eslint errors

* ci: run `make webapp-ci`

* test: fix non-idempotent snapshot tests

* chore: `npm run i18n-extract`

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-13 08:28:13 +02:00
Harshil Sharma
2f4f13cb56
Fixed incorrect API path being used for notify admin upgrade API (#3355) 2022-07-13 11:49:05 +05:30
Paul Esch-Laurent
e331eafc26
fix: render default LHS board icon (#3353)
* fix: render default LHS board icon

* test: LHS renders default board icon if none set

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-13 07:59:00 +02:00
Rajat Dabade
e1f944c9ea
Added the toggle feature on sidebar hearder (#3014)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Rajat Dabade <rajat@Rajats-MacBook-Pro.local>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Paul Esch-Laurent <paul.esch-laurent@mattermost.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: kamre <eremchenko@gmail.com>
Co-authored-by: Varghese Jose <varghese.jose@tutanota.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
2022-07-12 17:00:26 +05:30
Rajat Dabade
f2be7ebdf1
Misleading search icon (#3345)
* Translated using Weblate (Malayalam)

Currently translated at 100.0% (303 of 303 strings)

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

* Translated using Weblate (German)

Currently translated at 100.0% (312 of 312 strings)

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

* Aligned the search icon with search bar

Co-authored-by: Varghese Jose <varghese.jose@tutanota.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
2022-07-11 17:27:42 +05:30
Paul Esch-Laurent
364be89424
Refactor z-index values to a SCSS map (#3332)
* refactor: move all `z-index` values to a SCSS map

* style: add newline

* chore: disallow `z-index` directly in stylelint
2022-07-11 17:27:03 +05:30
Rajat Dabade
970f20a241
View List scroller doesn'tr work on firefox (#3348)
* Translated using Weblate (Malayalam)

Currently translated at 100.0% (303 of 303 strings)

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

* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

Update translation files

Updated by "Cleanup translation files" hook in Weblate.

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

* Translated using Weblate (German)

Currently translated at 100.0% (312 of 312 strings)

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

* Scroll will only show when it reach max view

Co-authored-by: Varghese Jose <varghese.jose@tutanota.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
2022-07-11 17:21:17 +05:30
Scott Bishel
22aae37dd1
User updates (#3244)
* retrieve additional user fields

* implement config setting

* cleanup

* fix tests

* remove unused constant

* fix more tests

* add tests, cleanup

* lint fixes

* revert bad lint fixes

* more merge fixes

* update to use personal setting

* add user settings

* update package-lock.json

* lint fixes

* npm audit fix

* update tests

* Revert "lint fixes"

This reverts commit 6a50d335ca.

* Revert "update package-lock.json"

This reverts commit 1117e557e4.

* Revert "npm audit fix"

This reverts commit 77ea931c77.

* Revert "Revert "lint fixes""

This reverts commit 3ebd81b9fa.

* restore to original

* fix for empty prefs

* fix bad merge

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-07-08 08:43:43 -06:00
Paul Esch-Laurent
985e093a75
fix: delete .action-cell CSS bg color (#3323)
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2022-07-07 15:13:46 -05:00