Skip to content

Conversation

@learningbizz
Copy link
Contributor

@learningbizz learningbizz commented Oct 28, 2025

This is the whole PR to add the new onboarding in the application, under a feature flag. We were going to divide it into smaller PRs, but the whole thing is small enough to review well.

const { parameters, description, prompt, rowCount, name, fromCloud } =
parsedInput

if (fromCloud && !env.LATITUDE_CLOUD) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why fromCloud is needed? we should not trust the client

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but just making it more comfortable for them. If they want to say false, it will break for them when creating the dataset

return (
<div className='flex flex-row items-center gap-10 h-full w-full'>
<div className='flex flex-col items-end w-full h-full'>
<div className='relative flex-1 w-full max-h-[350px] max-w-[600px]'>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding max-w-[600px] is repeated in all sub components. Is an smell that should be in the parent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed it, adding a max to the root, but I had to add a min width now because we want the editor to be 560px and when it wasnt there, it would distribute equally in both columns taking away space from the editor

} satisfies BlockRootNode
}

export const emptyRootBlock: BlockRootNode = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Constants are all UPPER_CASE

currentWorker.terminate()
setWorker(null)
}
reset()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We used to not reset the worker after we closed it, making if we logged in with another account, the prompt from the previous user to be in the new users editor

@learningbizz learningbizz changed the title WIP - Step 1 of Onboarding v3 Onboarding v3 Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants