Commit Graph

52 Commits

Author SHA1 Message Date
Asaad Mahmood
35f51d2999
1112 - Updating button active state in viewHeader (#1138)
* 1112 - Updating button active state in viewHeader

* Updating UI for buttons
2021-09-02 21:22:43 +05:00
Scott Bishel
94e6e8a9f7
Plugin telemetry (#1069)
* implement webapp telemetry

* cleanup

* remove imports, update events

* change event title

* update for lint

* add test, update filename

* linter fix

* fix field name

* revert changes

* fix test

* update builds

* fix workflows

* fix workflows

* fix workflow

* temp checkin

* remove log lines

* updates from peer review
2021-09-01 15:53:27 -06:00
Scott Bishel
f10b4a82a3
fix for displaying global nav in focalboard (#1132) 2021-08-31 11:24:41 -06:00
Miguel de la Cruz
583d9f8a10
Add retry mechanism when opening WSClient in plugin mode (#1135)
* Add retry mechanism when opening WSClient in plugin mode

* Fix linter

* Add return when sending command
2021-08-31 12:01:17 +02:00
Scott Bishel
08f34d2f63
update marketplace name/description (#1118)
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2021-08-27 14:14:23 +02:00
Miguel de la Cruz
e10229031f
Add a plugin adapter to reuse MM websocket in plugin mode (#1079)
* Add a plugin adapter to reuse MM websocket in plugin mode

* Remove development replace

* Switch all go.mod files to use 1.16

* Fix linter issues

* Fix linter

* Update server version to contain the new hooks
2021-08-27 10:59:14 +02:00
Jesús Espino
79f026b9a9
Making favicon store/restore more robust (#1093) 2021-08-26 10:14:41 +02:00
Doug Lauder
b58497e2ea
Replace mlog with server v6 mlog (#1088)
* replace mlog with server v6 mlog
* remove FB mlog from plugin
2021-08-25 16:08:01 -04:00
Chen-I Lim
791c600151
Fix #1086. Update channel header button hint. (#1103)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-25 10:48:51 -07:00
Jesús Espino
dfb34d81a2
Automatically add the .focalboard-body class to all sass classes on plugin mode (#1068)
* Automatically add the .focalboard-body class to all sass classes on plugin mode

* Addressing review comment
2021-08-25 13:05:12 +02:00
Chen-I Lim
5f8e08b79e
Fix #1086: Update channel header button hint (#1087) 2021-08-24 11:48:29 -07:00
Miguel de la Cruz
f9c76d8129
Update focalboard to be compatible with mattermost v6 (#1020)
* Update focalboard to be compatible with mattermost v6

* Point to the new plugin API version

* Fix collectors linter issues

* Move all CI jobs to 1.16
2021-08-24 12:13:58 +02:00
Jesús Espino
b5d58060cf
Fixing some color variables (#1038) 2021-08-19 12:26:26 +02:00
Asaad Mahmood
307fee78fc
GH-994 - Updating color for global header menu (#1012)
* Updating color for global header menu

* Updating css

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-08-19 10:28:29 +02:00
Jesús Espino
83a45ae706
Fixing favicon changes on other browsers (#1017) 2021-08-17 22:50:49 +02:00
Jesús Espino
a8b0f68e1e
Storing the last channel viewed to workaround the fact that playbooks is not bind to channels (#974)
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-14 17:24:14 +02:00
Jesús Espino
a442f08ed3
Using an icon name instead of the component for registerProduct (#951) 2021-08-12 17:06:09 +02:00
Jesús Espino
4dc1c6db4f
Restoring mattermost favicon on leave focalboard (#948) 2021-08-12 12:58:17 +02:00
Jesús Espino
2aac030ee7
Fix global header menu z-index for focalboard (#950) 2021-08-12 12:57:07 +02:00
Jesús Espino
aaa0b0dccc
Moving logo and title to the global header (#947)
* Moving logo and title to the global header

* Fixing problems with the new header

* Fixing lint problems
2021-08-12 11:40:09 +02:00
Jesús Espino
2287931882
Fixing a weird import bug on react-day-picker (#933)
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-11 11:55:41 -06:00
Jesús Espino
ea140ba99b
Picking the default theme from the user preferences on reload when it is a plugin (#923)
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
2021-08-11 11:53:53 +02:00
Jesús Espino
ca40dda8f8
Adding backward compatibility for 5.38 (#922)
* Adding backward compatibility for 5.38

* Fixing problem with urls
2021-08-11 11:10:52 +02:00
Jesús Espino
92fdd97e16
Fixing focalboard personal server icon (#921) 2021-08-11 00:16:57 +02:00
Jesús Espino
13ef01a862
Fix share boards on plugin mode (#898)
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
2021-08-10 11:46:09 +02:00
Chen-I Lim
904dfc2158
Add server id to plugin telemetry (#903) 2021-08-06 12:03:56 -07:00
Jesús Espino
1914b5a921
Making theming compatible with mattermost on plugin mode (#883)
* Making theming compatible with mattermost on plugin mode

* Fixing some variables

* Adding isFocalboardPlugin function

* Fixing some styles

* Improving styles for boards icon in the global switcher
2021-08-06 19:58:28 +02:00
Chen-I Lim
7d2a58081c Update version to v0.9.0 2021-08-06 10:37:28 -07: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
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
Doug Lauder
efedf2f481
Fix nil stringer error (#788)
* fix nil stringer error
* include API path with all API ERROR logs
* enable "caller" field
* disable colour output and min msg length for plugin
* bump Logr version to v2.0.4
2021-07-27 12:57:29 -04: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
Doug Lauder
a0524dd386
Lint server & plugin for CI (#720)
* enable CI linting for server and plugin
* replace `golint` (deprecated) with `revive`
* use GH actions for lint
2021-07-14 09:36:18 -04:00
Chen-I Lim
eddbe7ad9a Update plugin min_server_version to 5.37 2021-07-09 11:34:18 -07:00
Chen-I Lim
1b45e16e52 Update to v0.8.0 2021-07-09 09:36:57 -07:00
Doug Lauder
0dec704ddc
fix linter errors in plugin (#696) 2021-07-09 12:59:44 +02:00
Doug Lauder
ebd477464b
fix remaining golangci linter warnings (#686)
* fix remaining linter warnings
2021-07-08 21:09:02 -04:00
Miguel de la Cruz
4328375324
Prevent plugin from crashing if SiteURL is not set (#677)
* Prevent plugin from crashing if SiteURL is not set

* Change default baseURL to be . instead of empty string

* Revert "Change default baseURL to be . instead of empty string"

This reverts commit cceb380167.
2021-07-07 10:13:06 +05:30
Doug Lauder
6e214ebc3d
Ensure all code paths close *sql.Rows (#679)
* ensure all code paths close *sql.Rows
2021-07-06 16:44:11 -04:00
James
fde98f230e
Upgraded links in plugin files to point to the focalboard repository since the older 'mattermost-plugin-focalboard' repository return a 404 error - also, generalized release notes URL (#669) 2021-07-06 19:45:51 +02:00
Jesús Espino
bb7867c2cb Configuring the logs by default in the plugin 2021-07-02 18:07:30 +02:00
Agniva De Sarker
8e72b9c528
Add RPC API support to plugin (#619)
* Add RPC API support to plugin

We use the mattermost-plugin-api client to create the sql.DB object
and pass it to the store.

To keep a common point of entry for both the standalone server
and plugin, we refactor the store creation part out of server.New
and pass the DB as a dependency to the server constructor.

This allow us to create different stores in plugin and standalone,
so that the server code remains unaware of any differences.

https://focalboard-community.octo.mattermost.com/workspace/zyoahc9uapdn3xdptac6jb69ic?id=285b80a3-257d-41f6-8cf4-ed80ca9d92e5&v=495cdb4d-c13a-4992-8eb9-80cfee2819a4&c=c7386db7-65fd-469b-8bcf-8dc8f8e61e4f

* Support linux desktop app

* refactor

* fix typos

* Change authlayer to use existing DB conn too
2021-06-25 16:49:06 +02:00
Miguel de la Cruz
fd9be03445
Use path.Join in plugin's webpath property (#610)
* Use path.Join in plugin's webpath property

* Update mattermost-plugin/server/plugin.go

Co-authored-by: Jesús Espino <jespinog@gmail.com>

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2021-06-21 12:08:33 +02:00
Miguel de la Cruz
bf18d39242
Fixes web files not found when plugin directory is custom (#609) 2021-06-21 11:22:58 +02:00
Miguel de la Cruz
c4154cd2dd
Adds a link to the setup docs on the plugin's config header section (#582) 2021-06-21 10:13:15 +02:00
Miguel de la Cruz
3497a3faff
Ensures cgo is disabled for plugin compilation to avoid libc linking (#565) 2021-06-11 14:41:15 +02:00
Doug Lauder
68d492a855
Bump Logr version to fix Windows build (#520)
* bump Logr version to fix Windows build

* fix return args for syslog_unsupported
2021-06-04 08:43:32 +02:00
Chen-I Lim
4ca3f73ce7
Add LDFLAGS to plugin build (#474)
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2021-05-26 12:45:33 +02:00
Miguel de la Cruz
b327bc7b8a
Adds plugin actions to the project's CI (#471)
* Adds plugin actions to the project's CI

* Remove the version number from the generated artifact

* Change job name to something more descriptive

* Switch back to workflow_dispatch
2021-05-25 19:22:31 +02:00