Skip to content

Conversation

Me1td0wn76
Copy link
Contributor

@Me1td0wn76 Me1td0wn76 commented Jul 5, 2025

Close #254

Description

image
  • Added a setup dialog that prompts users to enter their API Key and Base URL on first launch, or when these values are unset.
  • The dialog uses AIRI UI design system components (Input, Button, Dialog, RadioCardDetail) for a consistent look and feel.
  • Includes a "Skip now" button to allow users to defer setup.
  • Once values are entered, they are immediately applied to the provider configuration.
  • The prompt does not appear if the values are already set.
  • Users can modify these settings later from the settings screen.

Linked Issues

Fixes #254

Additional context

  • All input fields, buttons, and dialogs follow the AIRI UI design system for styling and accessibility.
  • Provider selection utilizes the RadioCardDetail component.
  • Would appreciate feedback on input validation and overall user experience.
  • The logic for storing and editing settings remains unchanged.

Me1td0wn76 added 11 commits July 3, 2025 00:47
Fix: First time setup dialog with proper parameter naming and type as…
- Fix import paths from 'scenes' to 'Scenes' to match actual directory name
- Update Vite alias configuration to use proper case-sensitive paths
- Ensures TypeScript compiler compatibility across different platforms

Fixes type errors related to file name casing differences between
Windows file system and TypeScript module resolution.

Related to issue moeru-ai#254
…ponents

- Replace custom dialog implementation with radix-vue Dialog components
- Replace custom button components with AIRI UI Button component
- Replace custom provider selection buttons with RadioCardDetail component
- Replace custom input components with AIRI UI Input component
- Ensure full compliance with AIRI design system guidelines
- Improve accessibility with proper labels and required field indicators

Resolves moeru-ai#254
Copy link

netlify bot commented Jul 5, 2025

Deploy Preview for airi-vtuber ready!

Name Link
🔨 Latest commit 876ebe5
🔍 Latest deploy log https://app.netlify.com/projects/airi-vtuber/deploys/686a94fbf2950b0008cd103e
😎 Deploy Preview https://deploy-preview-259--airi-vtuber.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Jul 5, 2025

Deploy Preview for airi-docs ready!

Name Link
🔨 Latest commit 876ebe5
🔍 Latest deploy log https://app.netlify.com/projects/airi-docs/deploys/686a94fb9f634b0008f79e67
😎 Deploy Preview https://deploy-preview-259--airi-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @Me1td0wn76, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a crucial first-time user experience enhancement by implementing a guided setup dialog for AI provider API keys and base URLs. This dialog, appearing on initial launch or when essential API configurations are missing, streamlines the onboarding process by allowing users to quickly configure their preferred AI services. The changes are integrated across both the desktop and web applications, supported by a new Pinia store for state management and comprehensive internationalization.

Highlights

  • New First-Time Setup Dialog: A new dialog component (FirstTimeSetupDialog.vue) has been introduced to guide users through initial API key and base URL configuration for AI providers. It supports selecting popular providers, inputting credentials, and includes real-time validation.
  • Cross-Application Integration: The setup dialog is integrated into both the stage-tamagotchi (desktop) and stage-web (web) applications, ensuring a consistent first-launch experience across platforms.
  • Dedicated State Management: A new Pinia store (firstTimeSetup.ts) manages the state of the first-time setup, determining when the dialog should be shown (based on completion status or existing essential provider configurations) and handling skip/completion actions.
  • UI Component Reorganization: Several import paths for UI components (e.g., WidgetStage, Live2DCanvas) have been updated to reflect a capitalization change in their directory structure (components/scenes to components/Scenes). This is a refactoring of the component import paths.
  • Internationalization Support: New localization strings have been added for the first-time setup dialog in English and Simplified Chinese, covering all text elements within the new UI.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request introduces a first-time setup dialog for API configuration. Reviewers noted potential issues with i18n keys, debouncing, state management, and the reliability of the setup dialog's display logic.

…nced validation

- Replace hardcoded strings with proper firstTimeSetup.* i18n keys
- Implement useDebounceFn from @vueuse/core for robust debounced validation
- Fix validation success/failed message keys
- Improve code quality based on Copilot suggestions

Related to moeru-ai#254
@nekomeowww nekomeowww changed the title Feat/issue 254 first launch api setup feat(stage-web): launch setup Jul 6, 2025
Me1td0wn76 and others added 13 commits July 6, 2025 20:40
…Dialog.vue

Co-authored-by: Neko <neko@ayaka.moe>
…Dialog.vue

Co-authored-by: Neko <neko@ayaka.moe>
…Dialog.vue

Co-authored-by: Neko <neko@ayaka.moe>
…Dialog.vue

Co-authored-by: Neko <neko@ayaka.moe>
…Dialog.vue

Co-authored-by: Neko <neko@ayaka.moe>
…Dialog.vue

Co-authored-by: Neko <neko@ayaka.moe>
Co-authored-by: Neko <neko@ayaka.moe>
Co-authored-by: Neko <neko@ayaka.moe>
Change to 'i-svg-spinners:3-dots-fade'.
I will rename it to OnboardingDialog.vue.
Copy link
Member

@nekomeowww nekomeowww left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

Copy link
Member

Choose a reason for hiding this comment

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

I will update this to packages/stage-ui/src/components/Onboarding/index.ts once merged.

@nekomeowww nekomeowww merged commit 15dcca4 into moeru-ai:main Jul 6, 2025
@Me1td0wn76 Me1td0wn76 deleted the feat/issue-254-first-launch-api-setup branch August 10, 2025 13:00
Disqort pushed a commit to Disqort/airi that referenced this pull request Aug 29, 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.

feature request: prompt user with API key and Base URL setup on first launch
2 participants