-
Notifications
You must be signed in to change notification settings - Fork 81
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
File navigaiton for aiconfig editor #168
Conversation
755d28f
to
75f51df
Compare
Navigate from root directory (this is not currently configurable via CLI, but is good enough for testing) AiconfigNavigation.mov |
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.
Accepting to unblock, just minor thing on excluding files from the response instead of showing & disabling them
console.log(res); | ||
}, [path]); | ||
const newFiles = res.files.map((file: EditorFile) => { | ||
const disabled = !file.isDirectory && file.extension !== ".json"; |
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.
Should probably just filter these out from the response itself?
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 think it's useful to view the files otherwise people will get confused that the directories aren't showing everything
(file: EditorFile) => { | ||
// If directory, then change path & also update the url route to add to history | ||
// If random file, should not be able to select | ||
// If aiconfig.json file, then open editor - can't actually detect yet, so will just try to parse |
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.
Ah, this is another place the load schema validation would help; #291
75f51df
to
12ef084
Compare
File navigaiton for aiconfig editor
Stack created with Sapling. Best reviewed with ReviewStack.