1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-15 09:14:11 +02:00
Commit Graph

78 Commits

Author SHA1 Message Date
Harshil Sharma
ab3bf6312c
Merge Onboarding feature branch into main (#2406)
* Persistent user config (#2133)

* Added user config API

* Add unit tests

* lint fix

* Fixed webapp tests

* Fixed webapp tests

* Updated props in store after updating

* Minor fixes

* Removed redundent data from audit logs

* Onboarding Tour (#2287)

* Created private board

* Roughly displayed tour

* Synced with Dhama's changes

* WIP

* Trying to add GIF

* Added 3 tour steps

* WIP

* WIP

* WIP

* checked in missed file

* Synced with feature branch

* WIp

* Adde skip tour option

* Fixed image loading for on-prem

* Made tour work on presonal server:

* Adde missed file

* Adding telemetry

* Adding telemetry

* Added tour tip telemetry

* Fixed pulsating dot styling for personal server

* reverted personal config

* Added reset tour button

* Displayed share tour tip of feature is enabled

* Lint fixes

* Fixed webapp tests

* Fixed webapp tests

* Completed webapp tests

* Completed webapp tests

* Webapp lint fixes

* Added server tests

* Testing cypress skip tour fix

* Fixed Cypress tests

* Added share board tour step

* Added share board tour step

* webapp lint fixes

* Updated logic to pick welcome board

* Updated tests:

* lint fixes

* Updating UI changes

* Fixed a bug causing card tour to re-appear

* FIxed minor issue

* FIxed bug where card tour didn't start in clickingh on card

* Fixed tests

* Make update user props use string instead of interface

* Fixed a value type

* Updating gif size

* Updating resolution breakpoint

* Updating tutorial tip

* Updating view selector

* Refactored tour components

* Misc fixes

* minor refactoring

* GH-2258: allow date range to overflow (#2268)

* allow date range to overflow

* Fixed issue with date overflowing into neighbouring column

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>

* Update readme with accurate Linux standalone app build instructions (#2351)

* Bump follow-redirects from 1.14.7 to 1.14.8 in /experiments/webext (#2339)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Switch component style fixed: selector specificity increased by adding additional class. (#2179)

* Adding sever side undelete endpoint (#2222)

* Adding sever side undelete endpoint

* Removing long lines golangci-lint errors

* Fixing linter errors

* Fixing a test problem

* Fixing tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>

* Removing transactions from sqlite backend (#2361)

* Removing transactions from sqlite backend

* Skipping tests in sqlite because the lack of transactions

* Generating the mocks

* Fixing golangci-lint

* Fixing problem opening the tour tooltip on card open

* Fixing texts missmatch

* Adding the Product Tour entry in the user settings menu

* Fixing some tests

* Fixing tests

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kamre <eremchenko@gmail.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>

* Restored package json

* Restored package json

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kamre <eremchenko@gmail.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2022-02-28 12:28:16 +01:00
Scott Bishel
092cf23972
Growth share board modal (#2286)
* Skeleton dialog

* Updating share board modal

* first changes

* Separate button

* Separate button

* Skeleton dialog

* Updating share board modal

* first changes

* Separate button

* Separate button

* add code to make it work, add telemetry, check config

* update icons

* add classes for personal server

* some cleanup

* increase padding

* add unit tests

* add unit tests

* more cleanup

* i18n extract and fix styles

* remove old shareBoardComponent

* remove old sharedBoardComponent

* lint fixes

* update additional snapshot tests

* remove more code

* more test cleanup

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2022-02-09 17:55:28 +05:30
Jesús Espino
dcf7600ca4
Adding the new template selector interface (#2172)
* 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>
2022-02-02 09:38:57 +01:00
kamre
f4bf7db996 Cypress test for new URL property behaviour added:
- 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
2022-01-25 14:57:59 +03: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
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
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
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
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
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
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
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 Tant
2063a4ec47
webapp: make 'no options' message more explicit + translatable (#1706) 2021-11-01 11:00:16 +05:30
Hossein
eed1f86c15
Unfurl Focalboard Link (#1081) 2021-10-22 12:13:31 -04:00
prakharporwal
977bc1dafa
[GH-512] Feature #512 made confirmation dialog box. (#1546)
* 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

Co-authored-by: Prakhar <>
2021-10-14 11:42:36 -07:00
Chen-I Lim
58f6b8031a
Fix #1397. Add show empty toggle to Dashboard (#1398)
* Fix #1397. Add show empty toggle to Dashboard

* Update Jest snapshot

* Fix jest

* Use UserSettingKey
2021-10-04 14:27:30 -07:00
Hossein
7fae65ea02
Start Welcome Page (#1231)
* start welcome page

* setup template

* setup forwarding logic

* fix linting errors

* Updating UI

* Use intl strings

* Address comments

* go to baords welcome

* Fix image problem

* fix linting

* fix getting shown wrong things

* fix build issues

* fix cypress test and non plugin

* Fix bugs

* remove console

* Add welcome page

* address comments

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-09-28 09:51:32 -04:00
defectivepixel
58da537274
[GH-526] add copy card link (#795)
* feat: add copy linke to card menu

* style: fix lint issues

* fix: replace add icon with link icon

* tests: update snapshots

* Update webapp/src/components/properties/dateRange/__snapshots__/dateRange.test.tsx.snap

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>

* add card id to url if not exist

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com>
2021-09-24 12:26:03 -04:00
Harshil Sharma
ca07c9b9c3
Updated 0 board to 0 boards (singular vs plural) (#1210)
* Updated 0 board to 0 boards (singular vs plural

* Made text translatable

* Used better i18n for singular-plural

* Updated tests

* Minor fixes

* done

* Lint fix

* Updated tests
2021-09-22 11:19:12 +05:30
Harshil Sharma
d0ba389063
FTUE - Dashboard (#1177)
* Dashboard UI complete

* Updating UI changes

* Finishing touches

* Made navigation better

* Updated dashboard navigation

* Fixed spacing issue

* Fixed spacing issue

* Updating UI

* Fixed a CSS linter issue

* Update webapp/i18n/en.json

Co-authored-by: Justine Geffen <justinegeffen@users.noreply.github.com>

* Updated docs

Co-authored-by: Justine Geffen <justinegeffen@users.noreply.github.com>

* Update webapp/i18n/en.json

Co-authored-by: Justine Geffen <justinegeffen@users.noreply.github.com>

* Disabled image

* FIxed tests

* Review fixes

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Co-authored-by: Justine Geffen <justinegeffen@users.noreply.github.com>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-09-14 10:42:18 -06:00
Justine Geffen
b5053d982a
Update en.json - UI capitalization (#1178)
* 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>
2021-09-14 17:28:39 +05:30
Chen-I Lim
33f7b246be
Fix #1161. Add Give Feedback link. (#1162)
* Fix #1161. Add Give Feedback link.

* Pass version to feedback link

* npm run i18n-extract
2021-09-08 16:34:02 -07:00
Harshil Sharma
08db4fed61
Workspace switcher (#1052)
* 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>
2021-09-08 10:22:03 +05:30
Shahzaib
712c18efce
[GH-858] Add test cases for the multi-select component (#906)
* test(multiSelect): Add test cases for multi-select

* Remove `creatable-selector-parent` test id

* test(multiSelect): Make elements more accessible

* Update all snapshots that renders the `multiSelect`, `iconButton`, and `textOption` components

* Add the internationalized messages for the `aria-label` attributes

* cleanup(multiSelect.test.tsx): Remove the `DndProvider` from the `Wrapper` component

* Change the `ids` of `intl.formatMessage` arg

Co-authored-by: Shahzaib <shahzaib@placemarktechnologies.com>
2021-08-16 18:03:33 +02:00
Scott Bishel
383723a128
Implement Date ranges (#660)
* initial commit

* update to work around state issue

* update comments

* temp commit

* add unit tests, cleanup

* language extract, lint fix

* update stored object to be same as state object

* fixing merge issues

* update dates to use locale

* linter fixes, test cleanup

* self review

* add unit test, fixes

* fix linter

* remove dateFormat from calls

* move DateRange to components

* update translations

* spacing fix

* update tests, fix some hour inconsistencies

* remove logging

* more updates

* more cleanup

* update to disply mm/dd/yyyy when editing

* update to disply mm/dd/yyyy when editing

* input date use locale

* update css to make selection round

* update css to make begin/end round
2021-08-06 10:44:01 -06:00
Scott Bishel
beebf70cbc
update text for shared board (#880) 2021-08-04 17:22:55 -06:00
Miguel de la Cruz
155bb89468
Adds dashboard placeholder route and component (#764)
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-07-26 17:47:28 +05:30
Asaad Mahmood
64acecb1b0
GH-535 - Updating spacing for show/hide description (#767) 2021-07-22 18:53:48 +05:00
Harshil Sharma
e0ec1c03e0
New Props: Created By, Created At, Updated By, Updated At (#583)
* Added create_at column for blocks

* Populating created by

* Added logic for storing created by

* Added GetBlock by ID to store interface

* Added creayed by and modified by properties

* Added created by and modified by properties

* Added lastmodifiedat property

* Fixed existing webapp test

* Added webapp unit tests

* Added webapp unit tests

* Added webapp unit tests

* Adding server test

* Added server tests

* Fixed a bug causing created by to be set empty

* Avodining timezone specific test behavior

* Made cypress viewport bigger to avoid out-of-viewoport issues in multiple tests

* Removed a leftover comment

* Added updated at/by in table view

* Added updated at in card view

* Fixing sort

* Fixed sorting of updated by

* Fixed existing tests

* Added table tests

* Added cardTree fix

* Fixed tests

* Removed unused import

* Update snapshots

* Added a tamper attempt test

* Removed some leftover debug code

* Removed sending creator from client

* Fixed lint error

* Fixed a build issue

* Avoided setting insert query params multiple times

* Multiple minor review fixes

* Fixed test
2021-07-08 20:06:43 +05:30
Scott Bishel
b3dd307664
GH-408 Implement Table Group (#463)
* initial checkin

* temporary commit

* most functionality working

* cleanup

* fixes for read-only mode

* implement drop on groups

* implement dnd card -> groupheader

* fix linter

* remove setting input size, set to 1st column width

* fix linter

* revert change

* add ungroup feature

* rework to handle fixed header row.

* fix for deleting group by property

* make falsy

* post merge fixes, handle multi-select

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-06-07 08:47:22 -06:00
Jesús Espino
2f401df55d Fixing translations 2021-05-11 12:17:33 +02:00
Johannes Marbach
0f0d9f3bd8
[GH-38] Add date property (#391)
* [GH-38] Add date property

Closes: #38

* Add date menu item in snapshot to fix tests

* Add react-day-picker in NOTICE.txt
2021-05-10 07:46:07 +02:00
Jesús Espino
0265e41c72 Adding support for traditional and simplified chinese 2021-04-30 12:25:14 +02:00
Johannes Marbach
0ed20e499f
[GH-190] Add global option to disable randomized card icons (#310)
Relates to: #190
2021-04-26 16:41:12 +02:00
Chen-I Lim
0a88e9606e Fix #274. Add re-login button to error page. 2021-04-15 11:15:50 -07:00
Jesús Espino
23964c22ae Simplifying register page 2021-04-09 17:13:25 +02:00
Jesús Espino
bbf10858a8 Allow to show/hide title in the gallery view 2021-04-08 11:30:05 +02:00
Chen-I Lim
e2a9597b78 Update PropertyMenu.Delete id 2021-03-31 14:19:12 -07:00
Bharat
c30534b0c2 intl dialog.tsx 2021-04-01 02:25:05 +05:30
Bharat
bede81a921 Merged changes from main and ran extract 2021-04-01 02:14:02 +05:30
Chen-I Lim
884b658010 Show no board hint with workspace title 2021-03-30 15:50:37 -07:00
Jesús Espino
53a6331a05 Fixing translation extraction 2021-03-30 21:35:48 +02:00
Jesús Espino
325cedc5df Adding new languages 2021-03-25 19:46:59 +01:00
Bharat Kalluri
563f0ceef4 added i18-n extracted text 2021-03-24 07:15:45 +05:30
Jesús Espino
a27fba347c Adding Russian and Dutch languages 2021-03-21 19:47:47 +01:00
Jesús Espino
c8a06c6a8e Adding french support 2021-03-19 23:11:14 +01:00
Jesús Espino
98153b8e98 Adding german and japanese translations 2021-03-19 16:10:39 +01:00
Chen-I Lim
194746f3ac i18n-extract 2021-03-10 14:56:20 -08:00
Chen-I Lim
cb2814f364 i18n 2021-03-09 13:44:02 -08:00
Chen-I Lim
5fd0636809 About Focalboard 2021-01-28 13:55:51 -08:00