* Addinig initial version of a working template selector
* Some improvements
* Small improvements in the code
* More polishing
* Code reorganization
* Fixing tests
* Fixing linter errors
* Allowing to edit/delete templates
* Removing no longer needed code reducing race conditions
* Fixing some tests
* Adding some unit tests
* Adding more tests
* Splitting a bit more the board template selector for simplification
* Moving the delete dialog to the board template selector item
* Fixing some tests
* Fixing tests
* Exctracting i18n strings
* Trying to fix part of the cypress tests
* Fixing cypress tests
* Updating template selector UI
* Updating UI
* Updating padding
* Fixing css linter errors
* Fixing css error introduced in the previous commit
* Updating snapshots and fixing tests
* Fixing cypress tests again
* Adressing review comments
* Fixing tests
Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
- using `cypress-real-events` for real hover
- label for view header menu changed to 'View header menu'
- label for view menu added
- snapshots for unit tests updated
* First shot implementation of badges for the card.
* Showing and hiding card badges in board/gallery views via header menu action added.
* Counting of checkboxes in markdown supported.
* Use Intl.formatMessage for badge titles.
* Unit tests for `CardBadges` component added. Some other unit tests fixed.
* Unit test for 'Show card badges' action in the view header menu added.
* Cypress test for card badges added:
- card with comments, description and checkboxes added for testing
- card badges are shown and hidden via view menu
- new Cypress command `uiAddNewCard` added
- label property added to `MenuWrapper` and used in `ViewHeaderActionsMenu`
* Unit tests fixed after change of the label for view menu.
* Fix stylelint issues.
* Class name for `CardBadges` component fixed.
* Show and hide for card badges moved to `Properties` menu:
- field `cardBadgesVisible` removed from `BoardViewFields`
- new constant `badgesColumnId` introduced and used as an element in `visiblePropertyIds`
- card badges added to calendar view
- added `role` and `aria-label` for menu component `SwitchOption`
- unit and Cypress tests updated
* Fix Cypress test: use `blur` after typing text.
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* added better kanban edge scroll detection whilst dragging
* update jest snapshots
* try to fix cypress on CI
* replace force clicks on cypress test
* make eslint happy
* fix unrelated failed tests and reorganize Cypress commands
* added test for drag direction from right to left
* make eslint happy
* cypress kanban drag test now checks other direction
* fix test and update eslit for cypress
Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Cypress command for resetting boards added.
* Cypress test for group board by different property added:
- using @testing-library/cypress
- minor fixes for `PropertyMenu` and `Dialog` components
- bug in `ViewHeaderGroupByMenu` fixed: use `groupByProperty` passed in props instead of one from active view
* Jest snapshots updated.
* Use only case-sensitive strings for names in Cypress test.
* Cypress commands for adding new board and new group added.
* Jest snapshot for new test updated.
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* 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
* 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>
* Update en.json
Adjusted capitalization for UI text for consistency.
* Update webapp/i18n/en.json
* Apply suggestions from code review
* Propagating text the changes to the rest of the code
* Fix the snapshots
* Fixing cypress test
* Fixing table tests
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
* API WIP
* WIP
* Finished changes
* Fixed colors:
* Don't enforce charset adn collation in migration, pick from database DSN
* Added MySQL query
* Updated mocks
* Added tests
* Lint fixes
* Fixed typo and removed unsed style
* Checked in a snapshot
* Updated snapshot
* Updated Cypress test
* Updated Cypress test
* Updated Cypress test
* Fixed review comments
* Fixed tests
* Added default collation for MySQL
* Added documentation for ensuring correct database collation
* Updated migrations
* Fixed a bug with collation
* Fixed lint errors
* Used correct collation
* debugging
* Updating css
* Minor UI changes
* USe inbuilt default collation
* Used only charset for mysql
* Fixed linter issue:
* Added migration for matching collation
* Reverted local config changes
* Reverted local config changes
* Handled the case of personal server running on MySQL
* WIP
* Now running collation matching migration onlyt for plugins
* Minor optimization
* Multiple review fixes
* Added group by clause to primary query
* Supported for subpacth
Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
* Adding support for embed the webapp into the plugin
* Adding required dependency
* Removed unnecessary prettier command
* Installed imagemin required dependencies
* Open in a new window always
* Fix CSS Conflicts.
* Changing the app id to make it specific to focalboard
* Adding error boundary
* Fix styles on non-plugin environments
* Making the css scoped to focalboard only
* Create the focalboard root portal
* Including missed component
* Adding a missed rollback call
Co-authored-by: Christopher Speller <crspeller@gmail.com>
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
* New widget `EditableArea` introduced:
- textarea with automatic height
- implementation is based on AutosizeTextarea from mattermost-webapp
- used for title in CardDetail
* Cypress test for setting card title fixed.
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
* Sample using @reduxjs/toolkit
* Some improvements related to typescript in the store
* Adding some extra data to the redux store
* Moving the workspace users into redux store
* Wrapping the language into the redux store
* Fix some wrong names
* Fixing typos
* Removing unused imports
* Removing unnecesary users context
* Fixing eslint error
* Fixing memory leak on tests
* Always using the redux store for workspace users
* Fix eslint
* Addressing PR review comments
* Fixing cypress tests
* Fixing cypress tests (second try)
* Fixing cypress tests (third try)
* Addining subpath support
* Fixing a subpath problem in suburls
* Using the server root for allow subpaths
* Fixing baseURL variable name
* Some improvements
* Making it work in mattermost plugin
* Fixing eslint warnings
* Fixing cypress tests