Commit graph

257 commits

Author SHA1 Message Date
Miguel de la Cruz
0f5f4b0590
Updates boards registration as product to use name instead of ID (#4247) 2022-11-25 18:02:02 +01:00
Rajat Dabade
6674402079
File attachment in the card (#4053)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-11-24 17:16:59 +05:30
Harshil Sharma
9918a0b3f8
DND support for category and boards in LHS (#3964)
* WIP

* WIP

* Removed unused webapp util

* Added server tests

* Lint fix

* Updating existing tests

* Updating existing tests

* Updating existing tests

* Fixing existing tests

* Fixing existing tests

* Fixing existing tests

* WIP

* Added category sort order migration

* Added logic to set new category on top

* Implemented api, WS listein logic remining

* finished webapp implementation

* Added category type and tests

* updated tests

* Fixed integration test

* type fix

* WIP

* implemented boards DND to other category and in same category

* removed seconds from boards name

* wip

* debugging cy test

* Enabled hiding views list while DNDing

* Removed some debug logs

* Fixed a bug preventing users from collapsing boards category

* WIP

* Debugging cypress test

* CI

* debugging cy test

* Testing a fix

* reverting test fix

* Handled personal server

* WIP

* WIP

* Adding support for building with esbuild

* Using different index.html templates for esbuild

* WIP

* WIP

* Fixed delete category and rename category

* WIP

* WIP

* Finally, its done.

* Adde suppor tot update board-category mapping in bulk

* Fixed a bug where create category option didn't show up on default category

* Fixed bug where new board was added as last board in Boards category instead of first board

* Minor cleanup

* WIP

* Added support to drab boards onto collapsed categories

* Fixed route order from specific to generic

* Fix linter

* Updated existin server tests

* fixed integration tests

* Fixed webapp test err

* Removed accidental dependencies

* Adding  new server tests

* Finished server tests

* added api to client.go

* Added API integration test

* Fixed existing webapp tests

* WIP

* WIP

* WIP

* WIP

* WIP

* Fixed missing paranthesis

* Some cleanup

* fixed server lint

* noopped down migration

* Fixed issue with DND not working great with newly added category

* Fixed a test

* Fixed a test

* Fixed a test

* Fixed console error while DNDing

* pakg lock restore

* Fixed missing react beautiful dnd in package.lock.json

* updated snapshots

* Fixed webapp test

* Review fixes

* Added API permission check

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2022-11-24 15:31:32 +05:30
Ibrahim Serdar Acikgoz
afb5bf195b
migrations: update morph dependecy and apply changes (#4208)
* migrations: update morph dependecy and apply changes

* fix empty migration table name
2022-11-17 12:53:49 +01:00
Jesús Espino
f915a20c64
Adding the new blocks based editor (#3825)
* Working in the new content block editor

* Moving blocksEditor content block into its own component

* Initial integration with quick development flow

* More WIP

* Adding drag and drop support with server side help

* Some extra work around the styles

* Adding image support

* Adding video and attachments, and fixing edit

* Putting everything behind a feature flag

* Adding support for download attachments

* Fixing compilation error

* Fixing linter errors

* Fixing javascript tests

* Fixing a typescript error

* Moving the move block to an action with undo support

* Fixing ci

* Fixing post merge errors

* Moving to more specific content-blocks api

* Apply suggestions from code review

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

* Fixing the behavior of certain blocks

* Fixing linter error

* Fixing javascript linter errors

* Adding permission testing for the new move content block api

* Adding some unit tests

* Improving a bit the tests

* Adding more unit tests to the backend

* Fixed PR suggestion

* Adding h1, h2 and h3 tests

* Adding image tests

* Adding video tests

* Adding attachment tests

* Adding quote block tests

* Adding divider tests

* Adding checkbox tests

* Adding list item block tests

* Adding text block tests

* Reorganizing a bit the code to support deveditor eagain

* Fixing dark theme on editor view

* Fixing linter errors

* Fixing tests and removing unneeded data-testid

* Adding root input tests

* Fixing some merge problems

* Fixing text/text.test.tsx test

* Adding more unit tests to the blocks editor

* Fix linter error

* Adding blocksEditor tests

* Fixing linter errors

* Adding tests for blockContent

* Update webapp/src/components/blocksEditor/blockContent.test.tsx

Fix linter warning

* Update webapp/src/components/blocksEditor/blockContent.test.tsx

Fix linter warning

* Update webapp/src/components/blocksEditor/blockContent.test.tsx

Fix linter error

* Fixing test

* Removing unneeded TODO

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
2022-11-15 16:59:07 +01:00
Scott Bishel
a30c1692ac
update to version 7.6.0 (#4185) 2022-11-09 17:50:17 +05:30
Jesús Espino
7441d01593
Fix themes on differen teams (#4172) 2022-11-08 11:52:35 -07:00
Harrison Healey
346696673d
MM-47793 Change product dev server to not use deprecated options (#4116) 2022-11-07 17:53:57 -05:00
Scott Bishel
037e951141
Fix issues when retrieving boards (#4145)
* update function to only retrieve boards once.

* some cleanup

* fix spelling error
2022-11-07 11:49:19 -07:00
Scott Bishel
08f09f0c99
Fix to respect System Console settings (#4110)
* fix for plugin viewing names and emails

* fix some tests

* fix some tests

* fix more tests

* fix more tests

* clean-up

* cleanup, fix issue on initial load

* revert manifest changes

* implement on personal server side

* revert user.go changes

* lint fix

* fix test

* check config for null before setting boolean value

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-11-02 14:07:10 -06:00
Asaad Mahmood
bb7b04c78b
Minor UI Changes (#4115)
* Minor UI Changes

* Updating menu overflow
2022-11-02 16:11:01 +05:00
Harshil Sharma
9cc1071945
Fixed server lint issue about not using deprecated package io.ioutils (#4112) 2022-11-01 07:56:04 -04:00
kamre
7be9085b1b
[GH-1007] Fix popup menus visibility (#4069)
* Always show popup menu when it is opened:
- add additional class name `menuOpened` and ensure that menu is visible
- new component `CardActionsMenuIcon` introduced and used for kanban/gallery/calendar card actions menu
- increase `z-index` for `ContentBlock` when menu is opened to avoid overlaps

* Jest snapshots updated: additional classes added to existing elements.

* Jest snapshot for mattermost-plugin test updated.

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-10-26 13:38:09 -06:00
Harrison Healey
8fe9b9b2c2 Merge branch 'main' into MM-47238_boards-dev-server-url 2022-10-25 17:24:54 -04:00
Miguel de la Cruz
91f9f71bf7
Replace Block references to use pointers throughout all application layers (#3934)
* Replace Block references to use pointers throughout all application layers

* lint fixes

* gofmt file, lint fix

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2022-10-25 14:46:43 -06:00
Scott Bishel
e3ae682eea
Display board statistics (#4025)
* initial commit for displaying board statistics

* lint fixes

* i18n-extract, remove log entries, cleanup

* more lint fixes

* add check for standalone mode

* update tests due to change to NotImplemented

* lint fix

* revert removing empty comment lines

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-10-25 14:28:00 -06:00
Pablo Andrés Vélez Vidal
2676b19d99
MM-46392 - load boards memberships on rhs component mount (#4055)
* MM-46392 - load boards memberships on rhs component mount

* prevent blink between zero state and list state

* fix failing snapshots

* add pr feedback; change testing component state change approach using act; wrap async request in promiseAll instead of isolated awaits
2022-10-21 18:09:31 +02:00
Harrison Healey
ccbccc157e
MM-47631 Just rely on Webpack for image paths in product mode (#4049) 2022-10-21 11:41:04 -04:00
Harrison Healey
74190bb456
MM-47562 Serve images from the correct URL in product mode (#4045) 2022-10-19 16:41:53 -04:00
Harrison Healey
d638da6169 Fix https setting for product dev server and add other https settings based on MM config 2022-10-19 15:01:51 -04:00
Harrison Healey
d725cff9ed Merge branch 'main' into MM-47238_boards-dev-server-url 2022-10-19 14:57:00 -04:00
Doug Lauder
5afdda9ea8
set correct plugin id when in product mode (#4033)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-10-18 14:45:17 -04:00
Harrison Healey
14dedc4015 MM-47238 Add MM_BOARDS_DEV_SERVER_URL environment variable for MPA 2022-10-17 14:33:48 -04:00
Doug Lauder
2b984d45b2
Fix collation and charset after migrations (every run) (#4002)
* fix collation and charset after migrations (every run)
2022-10-14 18:39:25 -04:00
Harrison Healey
3479e02657
MM-46725 Add build-product target to compile the Boards product (#4016) 2022-10-13 16:56:59 -04:00
Harrison Healey
ccd09fd7b6
MM-46275 Rename product container to 'boards' (#4015) 2022-10-13 16:56:42 -04:00
Rajat Dabade
25d29e4034
Added the markdown in channel boardSelector RHS for description (#3759)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-10-07 12:28:21 -05:00
Agniva De Sarker
3025690b08
MM-47403: Add hooks to the product (#3962)
We do this to get the changes published
from the server.

https://mattermost.atlassian.net/browse/MM-47403

```release-note
NONE
```
2022-10-07 13:08:21 +02:00
Rajat Dabade
08030a2d3c
Escape button close the boardSelector dialog (#3850) 2022-10-04 22:20:56 +05:30
Harshil Sharma
f1b73c0719
RHS scroll: Fixed (#3908)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-10-03 18:21:14 -06:00
Paul Esch-Laurent
b430e7b7a3
Update modal copy with "excludes guests" changes (#3917)
* feat: update modal copy to account for guests

* chore: `npm run i18n-extract`
2022-10-03 18:19:48 -06:00
Scott Bishel
cff39e7140
update to release 7.5.0 (#3890) 2022-10-03 11:55:20 -06:00
Harrison Healey
b16557a046
MM-47076 Use version of Reaact DOM provided by web app (#3861) 2022-10-03 17:39:12 +02:00
Jesús Espino
959a5ce8ff
Showing unknown channel and on share board modals if channel is no longer accessible (#3790)
* Showing unknown channel and on share board modals if channel is no longer accessible

* uncomment tests, write snapshots

* update snapshot

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-09-29 09:56:37 -06:00
Jesús Espino
03d1b584ca
Fixing minimum board roles behavior (#3836)
* Fixing minimum board roles behavior

* fix unit tests

* fix lint issues

* update snapshot

* attempt fix for unit test

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-09-15 13:48:06 -06:00
Asaad Mahmood
f574286e6e
Multiple UI Fixes (#3835)
* Multiple UI Fixes

* Updating dialog

* Updating dialog

* Updating dialog

* Updating test

* Removing delete icon

* Updating snapshots

* Updating conflicts

* Fixing multi person card display
2022-09-15 15:40:05 +05:00
Harrison Healey
32a44723c3
Fix broken image in plugin (#3839) 2022-09-13 16:06:58 -05:00
Harrison Healey
096c130edb
Merge pull request #3748 from mattermost/MM-46274_module-federation-poc
MM-46274 Web App Product POC
2022-09-13 13:20:11 -04:00
Miguel de la Cruz
08c0b7a2fd
Refactor error usage from the store level up and add API helpers (#3792)
* Refactor error usage from the store level up and add API helpers

* Complete API tests

* Fix merge errorResponse calls

* Remove ensure helpers to allow for custom messages on permission errors

* Fix bad import and call

* Remove bad user check on auth that was added as part of the main merge

* Fix empty list test

* Replace deprecated proxy calls to ioutil.ReadAll with io.ReadAll

* Add information to the NotFound errors

* Add context to all remaining errors and address review comments

* Fix linter

* Adapt the new card API endpoints to the error refactor

* Remove almost all customErrorResponse calls

* Add request entity too large to errorResponse and remove customErrorResponse

* Fix linter
2022-09-13 12:18:40 +02:00
Asaad Mahmood
ed655ac996
GH-3813 - Fixing dialog toolbar (#3827)
* GH-3813 - Fixing dialog toolbar

* Updating card follow button

* Updating tests

* Updating lint error

* Updating test

* Updating dialog close test
2022-09-12 20:05:41 +05:00
Harrison Healey
60ab79309e Remove old static folder from plugin package 2022-09-09 14:58:39 -04:00
Scott Bishel
01eb95a6d2
Update to version 7.4.0 (#3819) 2022-09-09 11:37:03 -05:00
Harshil Sharma
5f4ad80ef0
Read Mattermost s3 timeout value and used a default if not exist (#3817)
* read Mattermost s3 timeout value and used a default if not exist

* Protection from setting 0 or negative timeout
2022-09-09 11:42:55 +02:00
Harrison Healey
f261038936 Change singleton shared modules to match web app 2022-09-08 16:41:50 -04:00
Doug Lauder
4652a15bab
Card APIs (#3760)
* cards apis wip

* create card API

* validate cards when creating

* create card fixes

* patch card wip

* wip

* unit test for createCard; CardPatch2BlockPatch

* unit test for PatchCard

* more APIs

* unit tests for GetCardByID

* register GetCard API

* Set FOCALBOARD_UNIT_TESTING for integration tests

* integration tests for CreateCard

* more integration tests for CreateCard

* integtration tests for PatchCard

* fix integration tests for PatchCard

* integration tests for GetCard

* GetCards API wip

* fix merge conflict

* GetCards API and unit tests

* fix linter issues

* fix flaky unit test for mySQL

* Update server/api/api.go

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>

* Update server/api/api.go

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>

* address review comments

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>
2022-09-08 13:01:33 +02:00
Harrison Healey
b9e2263cb5 MM-46646 Serve all plugin images via webpack 2022-09-07 19:14:34 -04:00
Harrison Healey
60aef8c760 Merge branch 'main' into MM-46274_module-federation-poc 2022-09-07 15:03:44 -04:00
Harrison Healey
32f2d403e6 Fix typos in Webpack config and Makefile 2022-09-07 15:03:19 -04:00
Asaad Mahmood
f9e6eb2791
GH-3768 - Search icon fix (#3778) 2022-09-05 12:53:01 +05:30
Scott Bishel
af2727085d
Fix template websocket (#3747)
* fix websockets with templates

* add more unit tests

* add synthetic, update tests

* Update mattermost-plugin/server/manifest.go

* clean up lint, reduce cyclomatic complexity

* update tests that call patchBoard with patch.Type set

* cleanup messages

* cleanup code more readable

* fixes from code review

* fix null check

* remove log lines
2022-09-04 16:51:31 -06:00