Remove insights (#23952)
* removed server side * Updated store layer * unused import * Updated autogenerated code template * Updated tests * lint fix * unused translations * webapp side * Updated i18n * lint fix: * type fix * Updated snapshots * Removed insights from API specs * updated e2e * Updated e2e tests * Updated e2e tests * Removed insights tests * Removed Insights as possible channel to load in sidebar from test * Removed more insights tests * More e2e fixed * More cleanup * Lint * More cleanup in client4 and boards api * More cleanup * Fixes * lint fix --------- Co-authored-by: maria.nunez <maria.nunez@mattermost.com> Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e37459cd00
Коммит
26617fcbdc
@@ -1154,62 +1154,4 @@ export default class PluginRegistry {
|
||||
data,
|
||||
});
|
||||
});
|
||||
|
||||
registerInsightsHandler = reArg(['handler'], ({handler}) => {
|
||||
store.dispatch({
|
||||
type: ActionTypes.RECEIVED_PLUGIN_INSIGHT,
|
||||
data: {
|
||||
pluginId: this.id,
|
||||
handler,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
// Register a hook to intercept desktop notifications before they occur.
|
||||
// Accepts a function to run before the desktop notification is triggered.
|
||||
// The function has the following signature:
|
||||
// (post: Post, msgProps: NewPostMessageProps, channel: Channel,
|
||||
// teamId: string, args: DesktopNotificationArgs) => Promise<{
|
||||
// error?: string;
|
||||
// args?: DesktopNotificationArgs;
|
||||
// }>)
|
||||
//
|
||||
// DesktopNotificationArgs is the following type:
|
||||
// export type DesktopNotificationArgs = {
|
||||
// title: string;
|
||||
// body: string;
|
||||
// silent: boolean;
|
||||
// soundName: string;
|
||||
// url: string;
|
||||
// notify: boolean;
|
||||
// };
|
||||
//
|
||||
// To stop a desktop notification and allow subsequent hooks to process the notification, return:
|
||||
// {args: {...args, notify: false}}
|
||||
// To enable a desktop notification and allow subsequent hooks to process the notification, return:
|
||||
// {args: {...args, notify: true}}
|
||||
// To stop a desktop notification and prevent subsequent hooks from processing the notification, return either:
|
||||
// {error: 'log this error'}, or {}
|
||||
// To allow subsequent hooks to process the notification, return:
|
||||
// {args}, or null or undefined (thanks js)
|
||||
//
|
||||
// The args returned by the hook will be used as the args for the next hook, until all hooks are
|
||||
// completed. The resulting args will be used as the arguments for the `notifyMe` function.
|
||||
//
|
||||
// Returns a unique identifier.
|
||||
registerDesktopNotificationHook = reArg(['hook'], ({hook}) => {
|
||||
const id = generateId();
|
||||
|
||||
store.dispatch({
|
||||
type: ActionTypes.RECEIVED_PLUGIN_COMPONENT,
|
||||
name: 'DesktopNotificationHooks',
|
||||
data: {
|
||||
id,
|
||||
pluginId: this.id,
|
||||
hook,
|
||||
},
|
||||
});
|
||||
|
||||
return id;
|
||||
});
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user