* Make machine command type names more explicit * Prepare "change tool" event for command bar * Make it so that state machine events can each map to multiple command configs * Make commands with all skippable args possible * Add back the tools to the command bar * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu) * Update to use new `groupId` property name * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu) * Oops didn't save this other instance of `ownerMachine` * Add a playwright test --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
18 lines
354 B
TypeScript
18 lines
354 B
TypeScript
import { StateMachineCommandSetConfig } from 'lib/commandTypes'
|
|
import { authMachine } from 'machines/authMachine'
|
|
|
|
type AuthCommandSchema = {}
|
|
|
|
export const authCommandBarConfig: StateMachineCommandSetConfig<
|
|
typeof authMachine,
|
|
AuthCommandSchema
|
|
> = {
|
|
'Log in': {
|
|
hide: 'both',
|
|
},
|
|
'Log out': {
|
|
args: [],
|
|
icon: 'arrowLeft',
|
|
},
|
|
}
|