mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-17 18:37:07 -04:00
[nextgen/cardstack] add BUTTON_GENERATOR
- support dynamic button resolving - update all commands using dynstack to latest api - add supplemental to wolfram
This commit is contained in:
parent
3a016dde3d
commit
ecaaba9d3c
10 changed files with 356 additions and 176 deletions
|
@ -2,11 +2,10 @@ const { googleNews, googleNewsSupplemental} = require('#api');
|
|||
const { PERMISSION_GROUPS } = require('#constants');
|
||||
|
||||
const { createDynamicCardStack } = require("#cardstack/index");
|
||||
const { ResolveCallbackTypes } = require("#cardstack/constants");
|
||||
const { ResolveCallbackTypes, InteractiveComponentTypes} = require("#cardstack/constants");
|
||||
|
||||
const { createEmbed, page } = require('#utils/embed');
|
||||
const { acknowledge } = require('#utils/interactions');
|
||||
const { link } = require('#utils/markdown');
|
||||
const { editOrReply } = require('#utils/message');
|
||||
const { STATIC_ASSETS, STATIC_ICONS, STATICS} = require("#utils/statics");
|
||||
|
||||
|
@ -76,6 +75,7 @@ module.exports = {
|
|||
cards: pages,
|
||||
interactive: {
|
||||
full_coverage_button: {
|
||||
type: InteractiveComponentTypes.BUTTON,
|
||||
label: "Full Coverage",
|
||||
icon: "button_full_coverage",
|
||||
inline: true,
|
||||
|
@ -83,7 +83,7 @@ module.exports = {
|
|||
return (pg.getState("full_coverage_key") !== null)
|
||||
},
|
||||
condition: true,
|
||||
renderLoadingState: (pg) => {
|
||||
renderLoadingState: () => {
|
||||
return createEmbed("default", context, {
|
||||
author: {
|
||||
name: "Full Coverage",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue