focalboard/webapp
kamre 342c8df39d
[GH-1754] Feature: card badges (#2025)
* 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>
2022-01-13 09:26:27 -07:00
..
__mocks__
cypress [GH-1754] Feature: card badges (#2025) 2022-01-13 09:26:27 -07:00
html-templates
i18n
src [GH-1754] Feature: card badges (#2025) 2022-01-13 09:26:27 -07:00
static
.eslintignore
.eslintrc.json
.nvmrc
.prettierignore
.prettierrc.json
.stylelintrc.json
cypress.json [GH-1754] Feature: card badges (#2025) 2022-01-13 09:26:27 -07:00
NOTICE.txt
package-lock.json
package.json
tsconfig.json
tslint.json
webpack.common.js
webpack.dev.js
webpack.prod.js