2
0

🚸 Improve support accessibility

Add documentation button in board menu and hide the support bubble in the editor. Makes it accessible only by clicking the "Help" button
This commit is contained in:
Baptiste Arnaud
2023-05-15 10:49:51 +02:00
parent 25dd0cc537
commit 123926f273
10 changed files with 45 additions and 19 deletions

View File

@ -28,6 +28,7 @@ export const Bubble = (props: BubbleProps) => {
'previewMessage',
'onPreviewMessageClick',
'theme',
'autoShowDelay',
])
const [prefilledVariables, setPrefilledVariables] = createSignal(
// eslint-disable-next-line solid/reactivity
@ -47,12 +48,19 @@ export const Bubble = (props: BubbleProps) => {
onMount(() => {
window.addEventListener('message', processIncomingEvent)
const autoShowDelay = bubbleProps.previewMessage?.autoShowDelay
const autoShowDelay = bubbleProps.autoShowDelay
const previewMessageAutoShowDelay =
bubbleProps.previewMessage?.autoShowDelay
if (isDefined(autoShowDelay)) {
setTimeout(() => {
showMessage()
openBot()
}, autoShowDelay)
}
if (isDefined(previewMessageAutoShowDelay)) {
setTimeout(() => {
showMessage()
}, previewMessageAutoShowDelay)
}
})
onCleanup(() => {

View File

@ -1,6 +1,7 @@
export type BubbleParams = {
theme?: BubbleTheme
previewMessage?: PreviewMessageParams
autoShowDelay?: number
}
export type BubbleTheme = {