Commit Graph

868 Commits

Author SHA1 Message Date
Jesús Espino
c734cfb8d1
Adding support for patch blocks (#877)
* Adding support for patch blocks

* Adding some improvements

* Adding api integration test for patch

* Adding SQL store tests

* Regenerating autogenerated code

* Fix linter errors

* Remove wrong update of the swagger file

* Update server/model/block.go

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

* Fix gofmt

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>
2021-08-06 14:10:24 +02:00
Scott Bishel
2eb3f59ddc
[Gh 684] Autosize fix for multi-select columns (#882)
* temporary commit

* cleanup code

* final fixes

* remove setting perItemPadding where not necessary

* Update webapp/src/octoUtils.tsx

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>

* Update webapp/src/components/table/table.tsx

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-05 09:24:01 -06:00
Harshil Sharma
578b91fd2e
Fixed comments not displaying in readonly view (#820)
* Fixed comments not displaying in readonly view

* FIxed some tests

* Updated tests

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-05 18:52:15 +05:30
Scott Bishel
beebf70cbc
update text for shared board (#880) 2021-08-04 17:22:55 -06:00
Christopher Speller
515edb9dcf
Global header support (#736)
* Adding global header support.

* Set the landing URL for the global header to /dashboard

* Redirecting directly to the current channel on open Boards

* Some improvements on global header

* Adding missed file

* Removing theme selector from the global header and fixing a style bug on the channel header icon

* Adding global header tests

* Adding missed file

* Fix global header icon

* Adding isFocalboardPlugin function

* Fixing unit tests

* Fixing problem with header menu styles

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-04 16:57:56 +02:00
Jesús Espino
fb75ad2789
Show add content button on hover or focus of content block (#876)
* Show add content button on hover or focus of content block

* Updating UI to make the overlay textarea to be consitent

Co-authored-by: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
2021-08-04 16:12:58 +02:00
Jesús Espino
caedc771b4
Fix problems with no refreshed data on handlers (#872)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-03 15:49:09 +02:00
Jesús Espino
81166b56e4
Keeping the visible and hidden options when you change the grouping (#873) 2021-08-02 23:08:26 +02:00
Jesús Espino
e481ba7170
Add clear button to value selectors (#823)
* Add clear button to value selectors

* Only show the clear button on not-readonly cases

* Updating the test snapshots

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-02 21:33:07 +02:00
kamre
3c41630af5
Fix usages of element's computed style in Firefox: (#822)
- don't use shorthands like `borderLeft` or `font` because they are empty strings
  - construct font string that is required for setting into canvas context from
    individual font properties if `font` property is empty string

Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-02 21:31:17 +02:00
kamre
d53c79772e
Fix kanban board height. (#825)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-02 21:14:08 +02:00
Jesús Espino
b2206f0b7e
Match the user settings for icon prefill on card for template (#870) 2021-08-02 20:18:31 +02:00
Jesús Espino
be28b7dad5
Migrate webapp global state to redux (#737)
* Migrating workspace tree to redux

* More changes for use the redux store for boads and views

* Taking into account the templates on websocket event updates

* Fixing bug on boardTree maintenance

* Websocket client now connects once and subscribe/desubscribe on the fly

* Including usage of the new websocket client

* More work around migrating to redux

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Fixing some things

* WIP

* WIP

* Another small fix

* Restoring filtering, sorting and grouping

* Fixing some other bugs

* Add search text reducer

* Fixing another drag and drop problem

* Improve store names and api

* Fixing small bgus

* Some small fixes

* fixing login

* Fixing register page

* Some other improvements

* Removing unneeded old files

* Removing the need of userCache

* Fixing comments and fixing content ordering

* Fixing sort

* Fixing some TODOs

* Fixing tests

* Fixing snapshot

* Fixing cypress tests

* Fix eslint

* Fixing server tests

* Updating the add cards actions

* Fixing some tiny navigation problems

* Mocking the api calls to pass the tests

* Migrating a new test to redux

* Adding the card right after the insert of the block (not wait for ws event)

* Showing the ws disconnect banner only after 5 seconds of disconnection

* Fixing share view

* Fix eslint

* Fixing problem with sort/groupby modifications

* Fixing some details on redirections and templates creation

* Fixing small bugs around undo

* Fix update properties on click outside the dialog

* Improving the column resize look and feel

* Removing the class based objects from the store (now they are all plain objects

* Fix eslint

* Fixing tests

* Removing unneeded code
2021-08-02 17:46:00 +02:00
kamre
9b5530af5e
Don't do anything when the card is dropped on itself. (#813)
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-02 12:12:01 +02:00
kamre
ae29ae105c
Proper computation of total horizontal padding for svg element. (#802)
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-02 11:47:55 +02:00
Weblate (bot)
fc01e65fbf
Translations update from Weblate (#818)
* Translated using Weblate (German)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/de/
Translation: Focalboard/webapp

* Translated using Weblate (Russian)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: Alexey Napalkov <flynbit@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ru/
Translation: Focalboard/webapp

* Translated using Weblate (Turkish)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/tr/
Translation: Focalboard/webapp

* Translated using Weblate (Japanese)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ja/
Translation: Focalboard/webapp

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: aeomin <lin@aeomin.net>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/zh_Hans/
Translation: Focalboard/webapp

* Translated using Weblate (Dutch)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/nl/
Translation: Focalboard/webapp

* Translated using Weblate (Swedish)

Currently translated at 100.0% (176 of 176 strings)

Co-authored-by: Peter Krantz <peter.krantz@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/sv/
Translation: Focalboard/webapp

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Co-authored-by: Alexey Napalkov <flynbit@gmail.com>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: kaakaa <stooner.hoe@gmail.com>
Co-authored-by: aeomin <lin@aeomin.net>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Peter Krantz <peter.krantz@gmail.com>
2021-08-02 09:24:10 +02:00
Jesús Espino
2f827ba5b4
Fix bug on save on unmount (#811)
* Fix tiny code order problem

* Fixed #809
2021-08-02 08:06:38 +02:00
Jesús Espino
6bbbecf366
Fix update properties on click outside the dialog (#807) 2021-07-30 21:07:10 +02:00
Harshil Sharma
186ba524d7
Opened markdown links in new tab (#792)
* Opened markdown links in new tab

* Used openInNewBrowser only when available

Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-07-30 13:32:49 +05:30
Harshil Sharma
926c4628c6
Fixed bug causing select prooperty options to vanish on rename (#797)
* Fixed bug causing select prooperty options to vanish on rename

* Fixed bug causing select prooperty options to vanish on rename
2021-07-30 13:32:27 +05:30
Jesús Espino
c3dba863c1
Adding support for embed the webapp into the plugin (#597)
* 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>
2021-07-29 20:08:39 +02:00
Jesús Espino
8823991eb9
Fix card loading on open card (#800)
* Fix card loading on open card

* Fix MDE problem

* Fix eslint
2021-07-29 13:43:34 +02:00
Jesús Espino
6a7d3f797b
Websocket client now connects once and subscribe/desubscribe on the fly (#752)
* Websocket client now connects once and subscribe/desubscribe on the fly

* Fixing eslint error

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-07-28 18:14:18 +02:00
Harshil Sharma
f86824b5ad
Fixed issue with rearranging columns (#789)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-07-27 20:33:56 +05:30
kamre
4fcf1cc50d
[GH-779] Consistent date time format (#791)
* Use `Utils.displayDateTime` in Comment/CreatedAt/LastModifiedAt components.
Option for month changed to 'long' for `Utils.displayDateTime`.

* Don't show current year in `displayDateTime`.

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-07-27 14:41:18 +05:30
kamre
c27ea205ba
[GH-778] Remove date format from the user settings (#790)
* Preferred date format removed from user settings.
Date format is always `MM/DD/YYYY` for editing in the input.

* Snapshots for jest tests updated.
2021-07-27 14:26:38 +05:30
kamre
60af33fe28
[GH-715] Consistent date display (#748)
* Changes in function `Utils.displayDate`:
- uses 'MMMM DD' for dates with current year
- uses 'MMMM DD, YYYY' for other years
- corresponding unit tests added

* Changes for input inside `EditableDayPicker`:
  - uses `Utils.displayDate` when day picker is not visible
  - uses preferred date format while day picker is visible
  - uses preferred date format for input placeholder

Co-authored-by: Chen-I Lim <46905241+chenilim@users.noreply.github.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-07-26 23:02:20 -07: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
kamre
bc8d778236
[GH-770] Use textarea for title in the card dialog (#776)
* 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>
2021-07-26 14:04:21 +05:30
Weblate (bot)
33708e022b
Translations update from Weblate (#782)
* Translated using Weblate (German)

Currently translated at 100.0% (174 of 174 strings)

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/de/
Translation: Focalboard/webapp

* Translated using Weblate (Dutch)

Currently translated at 100.0% (174 of 174 strings)

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/nl/
Translation: Focalboard/webapp

* Translated using Weblate (Turkish)

Currently translated at 100.0% (174 of 174 strings)

Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/tr/
Translation: Focalboard/webapp

* Translated using Weblate (Occitan)

Currently translated at 100.0% (174 of 174 strings)

Co-authored-by: Quentin PAGÈS <quentinantonin@free.fr>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/oc/
Translation: Focalboard/webapp

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Kaya Zeren <kayazeren@gmail.com>
Co-authored-by: Quentin PAGÈS <quentinantonin@free.fr>
2021-07-26 09:47:21 +02:00
Harshil Sharma
04707a9298
Revert "fix cards not dragging sometimes (#772)" (#781)
This reverts commit 9195df65e5.
2021-07-26 12:18:32 +05:30
Hossein
9195df65e5
fix cards not dragging sometimes (#772)
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-07-26 10:42:19 +05:30
Harshil Sharma
e086888c7c
Fixed card drop to column not working (#754)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-07-26 10:41:39 +05:30
Chen-I Lim
7a85202830
Fix #757: Ignore invalid values in filter logic (#758) 2021-07-24 07:33:06 -07:00
Asaad Mahmood
c2519d435a
Gh 744 - Improving UI for share board popup and improving buttons (#765)
* Updating z-index and sidebar button

* Updating button css

* Updating emphasis class name

* Adding button text container

* Updating snapshots
2021-07-22 19:36:09 +05:00
Asaad Mahmood
64acecb1b0
GH-535 - Updating spacing for show/hide description (#767) 2021-07-22 18:53:48 +05:00
Asaad Mahmood
4d5c445141
GH-633 - Updating active indicator for boards (#766)
* GH-663 - Updating active indicator for boards

* Passed active view ID to sidebar component

* Updating view selected state

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-07-22 18:52:45 +05:00
Asaad Mahmood
7c2874081a
Issue 678 - Updating default dark theme label (#726) 2021-07-20 20:54:03 +05:00
Harshil Sharma
037ca41b64
Added hash when loacind JS file to bust cache (#755) 2021-07-20 16:48:41 +05:30
Harshil Sharma
9b253ffee1
Fixed horizontal scroll bar appearing too high (#751) 2021-07-19 16:29:27 +05:30
Miguel de la Cruz
0bd6233fac
Refactor the websockets connection messages and lifecycle (#749)
* Refactor the websockets connection messages and lifecycle

* Modify frontend to subscribe to a workspace instead of a set of blocks

* Fixing linter errors

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-07-19 15:04:17 +05:30
Harshil Sharma
325b664257
Fixed kanban view header not scrolling (#730) 2021-07-19 13:55:45 +05:30
Weblate (bot)
db3963989e
Translated using Weblate (German) (#750)
Currently translated at 100.0% (174 of 174 strings)

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/de/
Translation: Focalboard/webapp

Co-authored-by: JtheBAB <srast@bioc.uzh.ch>
2021-07-19 09:28:26 +02:00
Chen-I Lim
77a90a473c
Fix #739: Don't show account options as plugin (#745) 2021-07-17 09:01:45 -07:00
Chen-I Lim
73225e959b Merge release-0.8.0 2021-07-16 10:30:45 -07:00
Jesús Espino
ee94e17f16
Add global templates to redux store (#731)
* Add global templates to redux store

* Removing unused import

* Remove unnecesary reducer

* Fixing eslint
2021-07-16 13:37:46 +02:00
Jesús Espino
e988812ccb
Removing the forceRefresh from the router (#732)
* Removing the forceRefresh from the router

* Fix eslint
2021-07-16 12:46:27 +02:00
kamre
b2346fcacf
Use cross-env instead of win-node-env (#656)
* File `package-lock.json` updated.

* Use `cross-env` for setting environment variables in npm scripts.

* Remove all the mentions of `win-node-env` because it is no longer needed for running npm scripts.

Co-authored-by: Chen-I Lim <46905241+chenilim@users.noreply.github.com>
2021-07-15 19:30:22 -07:00
Hossein
2ea4a85495
Description Section of Card can now Have Columns (#637)
* Grid Layout

* add margin

* add margin

* more work

* fix linting

* fix alignment

* update viewing

* fix editing

* wip

* some wip fix

* fix stuff

* fix linting

* fix type errors

* fix render of image

* fixl inting

* fix tests

* fix linting

* fix tests

* fix eslint

* remove ref

* fix colIndex

* address PR comments

Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
2021-07-15 10:38:12 -04:00
Jesús Espino
d6f760b06b
Sample using @reduxjs/toolkit (#646)
* 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)
2021-07-14 21:22:40 +02:00