* 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>
* Adds server ID generation on the insert blocks endpoint
* Fix linter
* Fix server linter
* Fix integration tests
* Update endpoint docs
* Update code to use the BlockType2IDType function when generating new IDs
* Handle new block ids on boards, templates and views creation
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* 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'
* 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>
* Fixed menu label hover
* removed cursor in menu wrapper, causing pointer cursor on entire option menu
* Fixed sidebar menu buttons having no cursor
* logo title cursor
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* temporary checkin
* hide sidebar by default < 768
* update to use function
* remove unused snapshot
* unhide sidebar on expansion
* update to handle manual close in personal server
* Open menu with property name and type when new property is added.
* Adding new property asks for the type and sets initial name.
* Component for property types menu items introduced.
* Close property menu when enter is pressed in the input.
* Unit test for `CardDetailProperties` fixed:
- jest snapshot updated
- switched from mocking `fetch` to mocking `mutator`
* Unit tests for `CardDetailProperties` updated:
- use the recommended way to get elements and trigger user events
- test for properties menu when adding new property added
* Unit tests for `CardDetailProperties` added:
- delete existing property
- add new property
* Don't use debouncing for property type selection.
* Fix unit test for deleting property.
* Width of button `+ Add a property` is fixed.
* Jest snapshot updated after merge with `main`
* WIP: Testing a fix
* Moved to workspace ID path if workspace ID is available
* Remived debug logs
* added personal server check
* Removed an awesome class name
* Use replace instead of push
* add telemetry for shared boards
* move where setting view out of Routes
* add for configuration setting
* fix spacing
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Modify undo manager to return a value and use it on undo
* Storing the last redo value internally to correctly run undo
* Fix types
* Improve test ensuring redo didn't add original block
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This uses the currently configured locale to compute the value of date
range table aggregations. Previously, it would fall back to the browser
locale (or English) and ignore the locale configured in Focalboard
itself.
Relates to: #1080
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* fix: Fix eslint warning when using `window as any`
* fix: FIx some eslint errors
Closes#1359
* fix: Add some mora extra types
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* feat: automatically search without pressing enter
* fix: don't create a new function on every render
* fix: cleanup debounced function when search is unmounted
* 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 <>
* Initial implementation for creation of new checkbox when enter is pressed.
* Card detail context added:
- used for adding new content element
- tracks id of new block that was added
- used in checkbox element to set focus
* Deleting of last added empty checkbox supported.
* Rename addNewElement/addNewBlock to addElement/addBlock.
* New component CardDetailProvider for card detail context introduced.
* Delete only automatically added checkboxes.
* Fix existing unit tests: add `CardDetailProvider` when needed.
* Unit tests for `CheckboxElement` updated:
- use mocked mutator
- test for focus of last added checkbox added
- test for adding new checkbox on pressing enter added
- test for deleting automatically added checkbox on pressing esc/enter added
* Added menu options to choose calculation
* Made calculation option component generic for use in kanban and table
* Added property type based calculation option menu
* WIP
* Prepared submenu
* Populated submenu
* WIP
* WIP
* Base implementation complete
* Done
* minor cleanup
* Updating UI for board calculations
# Conflicts:
# webapp/src/components/kanban/calculation/calculation.tsx
* Updating UI for board
* Highlighted currently selected option
* Fixed existsing tests
* Fixed existsing tests
* Added tests
* Added tests
* Fixed some plugin CSS issues
* Fixed a unintentional snapshot update
* Fixed a test
* Fixed a test
* Fixed a test
* Fixed dashboard tests
* Fixed some review comments
* Updated snapshots for change in Button classname
* Fixed test after syncing with main
Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
* fix sidebar selection
* update comments
* plugin needs the workspaceID
* Update webapp/src/pages/boardPage.tsx
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
* chore[GH-#843]: add tests unit for cardDetailContentsMenu
* chore[GH-#843]: add tests unit for cardDetailContentsMenu
* fix: test error on cardDetailContents
* GH-1439: add css to highlight adjacent month selected dates
* GH-1439: do not show outside days in datepicker
* GH-1439: remove log statement
Co-authored-by: aloks98 <aloksahoo@acceldata.io>
* chore[GH-#863]: add tests unit for newCardButtonTemplateItem
* chore: fix test view and add set as default test
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* fix for tests using any when wrapping components
* update/cleanup use of test wrappers
* fix up package
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* --wip-- [skip ci]
* chore[#866]: add unit test for viewHeaderGroupByMenu
* fix: review test and add testUtils
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* chore[#867]: add test for viewHeaderPropertiesMenu
* fix: name test
* fix: snapshot on test viewHeaderPropertiesMenu
* fix: rollback cardDetailContents snap
* fix: comments from krame
- use `translate3d` for proper preview in Chrome
- set `pointer-events` to `none` to prevent image opening in Firefox
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
* Stores a cache of inactive connections so their subscriptions are recovered on reconnections
* Adds test for getUserIDsForWorkspace and simplify messages through helpers
* Make the plugin websocket client more resilient
* Remove missed event callback and limit ws state polling to one at a time
* Add read lock for the plugin adapter and guarantee atomic ops on inactiveAt
* Add mutex to the plugin adapter client and tests to cover for races
* Split plugin adapter mutex in two and use them to lock only on data access
* Group plugin adapter fields by the mutex that's guarding them
* Highlight property values on hover:
- highlight on hover property values that are not readonly
- make property name buttons the same width
- set `min-width: 150px` for property values
- add `readonly` class for LastModifiedAt/LastModifiedBy/CreatedAt
* Make `Editable` used in card property values automatically expandable:
- input width computation relies on `useLayoutEffect` and `getComputedStyle`
- enable automatic expand for editable fields in `PropertyValueElement`
- enable automatic expand for editable inside `URLProperty`
- fix for tooltip display in `KanbanCard`
* Fix issue with ellipsis in Chrome.
* Support highlight on hover for `UserProperty`
* Updating hover state and UI
* Jest snapshot updated.
* Fix jest snapshots
* Update jest snapshot
* Update jest snapshot
Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Co-authored-by: Chen-I Lim <46905241+chenilim@users.noreply.github.com>
* 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