Skip to content

Conversation

@aj47
Copy link
Owner

@aj47 aj47 commented Sep 29, 2025

Summary

  • Prevent browser autofill from pre-filling AI Config modal fields (Base URL, API Key)
  • Fix observed issue during E2E testing of PR feat: Add OpenAI Compatible API support #22 where Chrome/1Password autofilled admin@admin.admin / adminadmin into the modal on the Results page
  • Verified responsiveness and visibility across mobile/tablet/desktop viewports using Playwright MCP

Changes

  • nextjs-web-app/src/components/AIConfigModal.tsx
    • Add name and autocomplete attributes and disable autocapitalize/spellcheck for Base URL and API Key inputs
    • Add password-manager ignore attributes (data-lpignore, data-1p-ignore) to API Key field

E2E Validation (local)

  • Cloned PR feat: Add OpenAI Compatible API support #22 and ran npm ci then npm run dev
  • Home page / and Results /results load without errors
  • Opened AI Config on both pages; confirmed no unintended credential autofill after fix
  • Checked across sizes: 375x667, 768x1024, 1280x800, 1920x1080 — no horizontal overflow; main CTAs visible
  • Confirmed iframe not scaled on expand and first tile shown as detailed view at top (per project UX)

Notes


Pull Request opened by Augment Code with guidance from the PR author

tinylion1024 and others added 2 commits August 23, 2025 04:38
- Add multi-provider AI service architecture supporting OpenAI, Groq, Anthropic, local Ollama, and custom endpoints
- Implement unified AI service abstraction layer with automatic provider switching
- Create user-friendly configuration interface with real-time validation
- Add persistent configuration storage in localStorage
- Maintain backward compatibility with existing Portkey integration
- Enhance error handling and fallback mechanisms
- Update documentation and add environment variable examples

New files:
- nextjs-web-app/src/lib/ai-config.ts - AI provider configuration management
- nextjs-web-app/src/lib/ai-service.ts - Unified AI service abstraction
- nextjs-web-app/src/hooks/useAIConfig.ts - Configuration management hook
- nextjs-web-app/src/components/AIConfigModal.tsx - Configuration UI modal
- nextjs-web-app/src/components/AIConfigButton.tsx - Configuration button component
- nextjs-web-app/.env.example - Environment variables template
- nextjs-web-app/src/lib/__tests__/ai-config.test.ts - Unit tests

Modified files:
- nextjs-web-app/src/app/api/generate/route.ts - Multi-provider API support
- nextjs-web-app/src/app/page.tsx - AI configuration integration
- nextjs-web-app/src/app/results/page.tsx - Provider selection support
- README.md - Updated documentation with new features

Features:
- Support for 6 different AI providers out of the box
- Seamless provider switching without application restart
- Real-time configuration validation with user feedback
- Secure API key storage and management
- Full TypeScript support with proper type safety
- Comprehensive error handling and user-friendly messages
- No breaking changes - fully backward compatible
…dental credential prefill\n\n- Add autocomplete, name, and ignore attributes to Base URL and API Key inputs\n- Avoids Chrome/1Password autofill leaking saved login into config modal\n- Verified via Playwright MCP across multiple screen sizes and pages
@vercel
Copy link

vercel bot commented Sep 29, 2025

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

Project Deployment Preview Comments Updated (UTC)
chaos-coder Ready Ready Preview Comment Sep 29, 2025 7:20pm

…- Change modal container to flex-col, remove container overflow\n- Make content area flex-1 min-h-0 overflow-y-auto for reliable inner scroll\n- Keeps header visible and allows reaching bottom fields/actions
…dd overscroll-contain to modal content area\n- Improves wheel/trackpad behavior on desktop when content exceeds viewport
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