Skip to content

feat: add Mutsumi 对话机 navbar entry and chat modal (Google AI Studio/Gemini) - #12

Open
XRYua wants to merge 2 commits into
masterfrom
codex/add-mutsumi-dialogue-machine-navigation
Open

feat: add Mutsumi 对话机 navbar entry and chat modal (Google AI Studio/Gemini)#12
XRYua wants to merge 2 commits into
masterfrom
codex/add-mutsumi-dialogue-machine-navigation

Conversation

@XRYua

@XRYua XRYua commented Feb 24, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Add a new Mutsumi对话机 navigation entry under the custom multi-level Links menu and provide a modal chat UI so users can talk to a Google AI Studio (Gemini) model directly from the site.

Description

  • Added a new nav item Mutsumi对话机 (href #mutsumi-chat) into the Links children in src/config.ts so it appears in the multi-level navbar menu.
  • Introduced src/components/widget/MutsumiChatDialog.astro, a global modal component implementing the chat UI, API Key + model inputs, localStorage persistence, open/close behaviors, and client-side calls to Google Generative Language (generateContent) for Gemini-style responses.
  • Mounted the dialog globally in src/layouts/Layout.astro so it is available site-wide and is triggered by the #mutsumi-chat link.
  • The modal performs the Gemini call directly from the browser using the user-supplied API key and model name (endpoint: https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={apiKey}).

Testing

  • Ran pnpm -s astro check, which completed with no errors (one unrelated hint).
  • Launched the dev server with pnpm dev --host 0.0.0.0 --port 4321 and verified the app served pages.
  • Automated UI validation via a Playwright script that opened the site and triggered the Mutsumi对话机 link; a screenshot artifact (mutsumi-chat-modal-open.png) was generated to confirm the modal renders and opens successfully.

Codex Task

@vercel

vercel Bot commented Feb 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mizuki Ready Ready Preview, Comment Feb 24, 2026 9:54am

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant