Skip to content
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

Effy small UI polish #411

Merged
merged 11 commits into from
Oct 24, 2024
Merged

Effy small UI polish #411

merged 11 commits into from
Oct 24, 2024

Conversation

effyyzhang
Copy link
Collaborator

@effyyzhang effyyzhang commented Oct 22, 2024

Adds a new onboarding screen which gates a user from visiting the application's home page until they've added an ai api key:

Screenshot 2024-10-24 at 3 59 06 PM

Copy link
Contributor

@benjreinhart benjreinhart left a comment

Choose a reason for hiding this comment

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

Can we use css for the gradient? The image seems unnecessary and adds to the package sizes.

packages/components/tsconfig.json Outdated Show resolved Hide resolved
packages/web/src/components/apps/markdown.tsx Outdated Show resolved Hide resolved

useEffect(() => {
const checkApiKey = () => {
const hasSeenOnboarding = localStorage.getItem('hasSeenOnboarding') === 'true';
Copy link
Contributor

Choose a reason for hiding this comment

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

This should live in persistent storage (sqlite), at least in the medium-long term.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I updated this logic to instead gate on whether aiEnabled being outputted from useSettings was enabled rather than segregating the onboarding state individually.

I don't think there's a reason that tracking this separately is important, given that this should be shown for all users that don't have an ai api key set - if so though, please call it out.

@1egoman 1egoman force-pushed the effy-small-ui-polish branch from cdf0bca to 6c090a6 Compare October 24, 2024 19:23
@1egoman 1egoman force-pushed the effy-small-ui-polish branch from 3a91045 to 8b2900c Compare October 24, 2024 19:49
@1egoman 1egoman merged commit e275e85 into main Oct 24, 2024
2 checks passed
@1egoman 1egoman deleted the effy-small-ui-polish branch October 24, 2024 20:01
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