-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: link to tab #1738
feat: link to tab #1738
Conversation
|
||
export * from './parsePathToFocused'; | ||
export * from './parsePathToSelected'; | ||
export * from './parseTypeToFragment'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these meant to be shared in other packages? I would expect these to live in the client.
export function parseTypeToFragment(type: string, property: string): string { | ||
const inputTypes = dialogGroups[DialogGroup.INPUT].types; | ||
const index = inputTypes.findIndex(t => t === type); | ||
if (index >= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (index >= 0) { | |
if (inputTypes.find(t => t === type)) { |
const index = inputTypes.findIndex(t => t === type); | ||
if (index >= 0) { | ||
if (property === 'property') return PromptTab.USER_INPUT; | ||
if (property === 'prompt') return PromptTab.BOT_ASKS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm worried about this scaling to all fields. Not sure what to do about it, but we should start thinking on how to handle this.
Description
Update the url generate function to support the link to INPUT tab.
refs #1667
Type of change
Please delete options that are not relevant.
Checklist
Screenshots