9918a0b3f8
* WIP * WIP * Removed unused webapp util * Added server tests * Lint fix * Updating existing tests * Updating existing tests * Updating existing tests * Fixing existing tests * Fixing existing tests * Fixing existing tests * WIP * Added category sort order migration * Added logic to set new category on top * Implemented api, WS listein logic remining * finished webapp implementation * Added category type and tests * updated tests * Fixed integration test * type fix * WIP * implemented boards DND to other category and in same category * removed seconds from boards name * wip * debugging cy test * Enabled hiding views list while DNDing * Removed some debug logs * Fixed a bug preventing users from collapsing boards category * WIP * Debugging cypress test * CI * debugging cy test * Testing a fix * reverting test fix * Handled personal server * WIP * WIP * Adding support for building with esbuild * Using different index.html templates for esbuild * WIP * WIP * Fixed delete category and rename category * WIP * WIP * Finally, its done. * Adde suppor tot update board-category mapping in bulk * Fixed a bug where create category option didn't show up on default category * Fixed bug where new board was added as last board in Boards category instead of first board * Minor cleanup * WIP * Added support to drab boards onto collapsed categories * Fixed route order from specific to generic * Fix linter * Updated existin server tests * fixed integration tests * Fixed webapp test err * Removed accidental dependencies * Adding new server tests * Finished server tests * added api to client.go * Added API integration test * Fixed existing webapp tests * WIP * WIP * WIP * WIP * WIP * Fixed missing paranthesis * Some cleanup * fixed server lint * noopped down migration * Fixed issue with DND not working great with newly added category * Fixed a test * Fixed a test * Fixed a test * Fixed console error while DNDing * pakg lock restore * Fixed missing react beautiful dnd in package.lock.json * updated snapshots * Fixed webapp test * Review fixes * Added API permission check Co-authored-by: Jesús Espino <jespinog@gmail.com>
74 lines
2.2 KiB
Go
74 lines
2.2 KiB
Go
package ws
|
|
|
|
import (
|
|
"github.com/mattermost/focalboard/server/model"
|
|
)
|
|
|
|
// UpdateCategoryMessage is sent on block updates.
|
|
type UpdateCategoryMessage struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Category *model.Category `json:"category,omitempty"`
|
|
BoardCategories []*model.BoardCategoryWebsocketData `json:"blockCategories,omitempty"`
|
|
}
|
|
|
|
// UpdateBlockMsg is sent on block updates.
|
|
type UpdateBlockMsg struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Block *model.Block `json:"block"`
|
|
}
|
|
|
|
// UpdateBoardMsg is sent on block updates.
|
|
type UpdateBoardMsg struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Board *model.Board `json:"board"`
|
|
}
|
|
|
|
// UpdateMemberMsg is sent on membership updates.
|
|
type UpdateMemberMsg struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Member *model.BoardMember `json:"member"`
|
|
}
|
|
|
|
// UpdateSubscription is sent on subscription updates.
|
|
type UpdateSubscription struct {
|
|
Action string `json:"action"`
|
|
Subscription *model.Subscription `json:"subscription"`
|
|
}
|
|
|
|
// UpdateClientConfig is sent on block updates.
|
|
type UpdateClientConfig struct {
|
|
Action string `json:"action"`
|
|
ClientConfig model.ClientConfig `json:"clientconfig"`
|
|
}
|
|
|
|
// UpdateClientConfig is sent on block updates.
|
|
type UpdateCardLimitTimestamp struct {
|
|
Action string `json:"action"`
|
|
Timestamp int64 `json:"timestamp"`
|
|
}
|
|
|
|
// WebsocketCommand is an incoming command from the client.
|
|
type WebsocketCommand struct {
|
|
Action string `json:"action"`
|
|
TeamID string `json:"teamId"`
|
|
Token string `json:"token"`
|
|
ReadToken string `json:"readToken"`
|
|
BlockIDs []string `json:"blockIds"`
|
|
}
|
|
|
|
type CategoryReorderMessage struct {
|
|
Action string `json:"action"`
|
|
CategoryOrder []string `json:"categoryOrder"`
|
|
TeamID string `json:"teamId"`
|
|
}
|
|
|
|
type CategoryBoardReorderMessage struct {
|
|
Action string `json:"action"`
|
|
CategoryID string `json:"CategoryId"`
|
|
BoardOrder []string `json:"BoardOrder"`
|
|
TeamID string `json:"teamId"`
|
|
}
|