-
Notifications
You must be signed in to change notification settings - Fork 0
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: import config #55
Conversation
… screen. Makes create project screen.
… skip steps or go back.
… logic out of naming screens. Fixes the onboarding top menu.
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.
Think this PR is blocked on some changes we need to make at the Electron level - I'm going to spend a small amount of time putting up a separate PR to help this!
…Adjusts some naming in create project screen. Adjusts test accordingly. Removes extra invalidation.
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.
couple of minor code suggestions and then also some UX-related feedback
|
||
import { useSelectProjectConfigFile } from './mutations/file-system' | ||
|
||
describe('useSelectProjectConfigFile', () => { |
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.
non-blocking but would be good to add a test here for when the payload from window.runtime.selectFile()
is invalid e.g. the path
or name
are not strings
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.
Just FYI, to get it to "throw" the error, I have to mock the selectFile as a rejected promise... because otherwise I would actually have to spin up Electron or the preload script with an integration test or an E2E test. Hope that is ok. Is this useful? Not sure...
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 have to mock the selectFile as a rejected promise
yeah this is what I figured you would do for now. think that's fine 👍
EDIT: re-reading it and yeah, my initial suggestion was something that can't be done easily (i.e. stub the ipc call to electron). there's probably a way to do it but not worth figuring it out. Given that, maybe not as useful as I initially thought
Related to Onboarding Screens