Commit Graph
100 Commits
Author SHA1 Message Date
dayuan.jiang 50b860bdea fix: Update domain and improve SEO implementation
- Update all URLs from vercel.app to next-ai-drawio.jiang.jp
- Remove fake aggregateRating from JSON-LD (better SEO credibility)
- Move JSON-LD script to <head> for better SEO crawler detection
- Enhance JSON-LD description with specific features
- Add 'free diagram generator' and 'online diagram maker' keywords
- Improve Twitter Card description with call-to-action

Addresses critical issues identified in SEO review:
- Artificial rating data removed
- JSON-LD placement improved
- Domain consistency across all files
2025-11-16 08:41:49 +09:00
dayuan.jiang 533b3ccace feat: Add comprehensive SEO improvements
- Enhanced metadata with Open Graph and Twitter Card tags
- Added robots.ts for search engine crawling directives
- Added sitemap.ts for site structure
- Improved image alt text for better accessibility and SEO
- Added JSON-LD structured data (Schema.org SoftwareApplication)
- Configured proper meta tags including keywords, authors, and robots settings
- Set metadataBase for proper URL resolution
2025-11-16 08:36:13 +09:00
dayuan.jiang 065e8f0d62 chore: update readme 2025-11-15 15:32:21 +09:00
dayuan.jiang f23f1e3709 chore: bump version to 0.2.0 2025-11-15 15:16:40 +09:00
dayuan.jiang 58dcb3c41a feat: add OpenRouter support and fix input disabling
- Add OpenRouter provider support with @openrouter/ai-sdk-provider
- Fix input not disabling during 'submitted' state for fast providers
- Apply disable logic to all interactive elements (textarea, buttons, handlers)
- Clean up env.example by removing model examples and separator blocks
- Upgrade zod to v4.1.12 for compatibility with ollama-ai-provider-v2
- Add debug logging for status changes in chat components
2025-11-15 14:29:18 +09:00
dayuan.jiang 4a3abc2e39 add multiple provider 2025-11-15 13:36:42 +09:00
dayuan.jiang e53f77a2a6 feat: add show/hide chat panel with Ctrl+B shortcut
- Add toggle button in chat panel header
- Implement collapsed state with thin vertical strip
- Add Ctrl+B keyboard shortcut to toggle visibility
- Canvas expands to full width when chat is hidden
- Smooth 300ms transition animation
2025-11-15 12:09:32 +09:00
dayuan.jiang 71f5460418 chore: add support for multiple AI providers in the roadmap 2025-11-13 23:43:14 +09:00
dayuan.jiang cb458af371 chore: remove .claude/settings.local.json from git tracking 2025-11-13 23:29:57 +09:00
dayuan.jiang 8c4913d85e chore: remove ec2-push-script.sh and add to .gitignore 2025-11-13 23:24:50 +09:00
DayuanJiang 8b68e5740a Auto-commit before push 2025-11-13 14:20:08 +00:00
dayuan.jiang 7b08c7332a feat: add automatic fallback from edit_diagram to display_diagram with 3-retry policy
- Updated system prompt to allow up to 3 retry attempts with adjusted search patterns
- Simplified error response to provide current diagram XML and reference retry policy
- AI model self-manages retries based on system instructions
2025-11-13 22:51:03 +09:00
dayuan.jiang 34de984fb8 docs: update README and add env.example for API key configuration 2025-11-10 19:52:08 +09:00
dayuan.jiang 61aa0937d6 feat: add tool input streaminig 2025-11-10 19:45:59 +09:00
dayuan.jiang 6940a5156d refactor: improve diagram handling and error messaging in chat components 2025-11-10 11:27:25 +09:00
dayuan.jiang ce45339c0d fix: enhance file handling and UI improvements in chat and file preview components 2025-11-10 10:28:37 +09:00
dayuan.jiang 93d02a8d44 feat: add mobile detection with desktop-only message
Add responsive detection to show a message prompting users to access the application from desktop or laptop when viewing on mobile devices (screen width < 768px)
2025-11-10 09:25:56 +09:00
dayuan.jiang a3ada79a65 feat: add a image comfirm feature 2025-11-10 09:17:11 +09:00
dayuan.jiang c1923e84da minor: add a new example 2025-11-10 09:13:21 +09:00
dayuan.jiang bd1c113bec minor: fix prompt 2025-11-10 09:12:30 +09:00
dayuan.jiang 4efbe78d5a fix: enhance permissions in settings and update .gitignore for local config 2025-11-10 00:00:02 +09:00
dayuan.jiang d8d0a800fe fix: update dependencies and add settings for npm permissions 2025-11-09 23:24:15 +09:00
dayuan.jiang dc25473724 fix git ignore 2025-08-31 21:39:12 +09:00
dayuan.jiang 3af8087cb2 docs: update README with new features
- Add targeted XML editing feature description
- Add improved XML handling feature description
- Mark 'Allow LLM to modify XML' TODO as completed
2025-08-31 20:54:07 +09:00
dayuan.jiang de2a6938b1 feat: improve XML handling and edit_diagram tool
- Add formatXML function to format single-line XML with proper indentation
- Format chartXml after fetching to ensure consistency
- Update replaceXMLParts to handle single-line XML with substring fallback
- Improve edit_diagram tool guidance with SEARCH/REPLACE best practices
- Add concrete examples to help AI use minimal, targeted edits
2025-08-31 20:52:04 +09:00
dayuan.jiang b110f1cb63 change model back to gpt5 2025-08-31 12:59:29 +09:00
dayuan.jiang 44ec398f30 upgrade to ai-sdk 5 2025-08-31 12:54:14 +09:00
dayuan.jiang 1da5976235 update model to gpt-5 2025-08-19 01:17:17 +00:00
dayuan.jiang e36aedf2fd change the model back to gpt4.1 2025-07-31 22:01:24 +00:00
dayuan.jiang f7da48f132 fix: Prevent focus shift and diagram reversion when typing in chat 2025-07-31 09:32:44 +00:00
dayuan.jiang 7ffd48c215 change model 2025-07-31 08:14:43 +00:00
dayuan.jiang 6c641dbcf9 Feat: Add XML guide to prompt, update model and deps
- Integrate `xml_guide.md` into the system prompt to improve diagram generation by providing detailed XML formatting rules.
- Change the default AI model for chat completions to `openai("gpt-4.1")`.
- Update AI SDK packages (`@ai-sdk/amazon-bedrock`, `@ai-sdk/google`, `ai`) and other dependencies.
- Add `bun.lock` to the repository.
2025-05-22 00:44:24 +00:00
dayuan.jiang 932bf102ec fix: Implement auto-collapse for tool invocation args in chat message display 2025-04-04 02:29:33 +00:00
dayuan.jiang 78f2c4f60c fix: Integrate smoothStream and enhance chat message display with args handling 2025-04-04 02:10:24 +00:00
dayuan.jiang aeca1adf89 fix: Add maxDuration constant for chat API route 2025-04-04 01:48:15 +00:00
dayuan.jiang a44918385a fix: Enable tool call streaming in chat API route 2025-04-04 01:41:42 +00:00
dayuan.jiang 2d042af02b fix: Disable tool call streaming in chat API route 2025-04-04 01:28:50 +00:00
dayuan.jiang 8f3c11e0e8 fix: Enhance chat message display with chart handling and import new SDKs 2025-04-04 01:26:16 +00:00
dayuan.jiang 9967ee85ac chore: update package-lock.json 2025-04-03 23:53:32 +00:00
dayuan.jiang 5060aa957a chore: Update package-lock.json with new SWC binaries for various platforms 2025-04-03 23:51:23 +00:00
dayuan.jiang 7124bf03e9 minor: add some placeholder 2025-04-03 15:31:13 +00:00
dayuan.jiang d915318605 add github icon 2025-04-03 15:29:26 +00:00
dayuan.jiang 1e680640b8 feat: Add clipboard paste handling in ChatInput for image uploads 2025-04-03 15:18:14 +00:00
dayuan.jiang 645980fbb6 change model to claud 3.5 2025-04-03 15:10:53 +00:00
dayuan.jiang bc7ef5c5d4 refactor: Move DiagramProvider to RootLayout for improved context management 2025-03-27 08:24:17 +00:00
dayuan.jiang 008bb9d486 refactor: Simplify Home component layout by integrating DiagramPageLayout functionality directly 2025-03-27 08:17:54 +00:00
dayuan.jiang 0a895fda1e minor: remove unused function 2025-03-27 08:13:26 +00:00
dayuan.jiang 6c8b5c48a2 refactor: Relocate handleClear Logic: Move the chat and diagram clearing logic to ChatPanel (or a Server Action) and have ChatInput call the onClearChat prop. Introduce a clearDiagram method in DiagramContext. 2025-03-27 08:09:22 +00:00
dayuan.jiang 7e0790d60f refactor: update setFiles prop type to accept File[] and simplify file handling 2025-03-27 08:02:03 +00:00
dayuan.jiang 34cc437523 refactor: Reduce Prop Drilling & Improve Separation of Concerns: 2025-03-27 07:48:19 +00:00
dayuan.jiang 13ace596d2 refactor: move extractDiagramXML function to utils and remove unused file 2025-03-27 06:45:38 +00:00
dayuan.jiang f650f7b28c feat: add Vercel Analytics integration to the application 2025-03-26 13:44:02 +00:00
dayuan.jiang 64bb9dd900 refactor: simplify enhancedMessages construction in chat route 2025-03-26 10:58:48 +00:00
dayuan.jiang fa72097838 refactor: replace Tooltip components with ButtonWithTooltip in ChatInput 2025-03-26 10:32:33 +00:00
dayuan.jiang da98a184f9 refactor: extract ResetWarningModal from chat-input.tsx 2025-03-26 08:58:46 +00:00
dayuan.jiang 3b4072b113 refactor: extract HistoryDialog component 2025-03-26 08:51:21 +00:00
dayuan.jiang 15cd66d0bf minor: update refs in diagram context to use React.Ref type 2025-03-26 06:47:44 +00:00
dayuan.jiang 09dc466b2a minor: simplify DiagramPageLayout structure by removing unnecessary divs 2025-03-26 06:43:27 +00:00
dayuan.jiang 5c00c00584 refactor: extract all states to diagram-context. 2025-03-26 00:30:00 +00:00
dayuan.jiang bd6946a13c minor: fix the prompt 2025-03-25 10:56:08 +00:00
dayuan.jiang 5d152c66d5 fix: flash problem 2025-03-25 08:56:24 +00:00
dayuan.jiang 8882aa9ee1 fix: fix the issue that the diagram flash during generation 2025-03-25 08:56:11 +00:00
dayuan.jiang 21537f6e7b refactor: remove stepCounterRef prop and manage step counter internally 2025-03-25 04:23:38 +00:00
dayuan.jiang dedb5855c3 refactor: move message-display to seperate component. 2025-03-25 02:58:11 +00:00
dayuan.jiang d2a630929b refactor: chat-example-panel.tsx 2025-03-25 02:24:12 +00:00
dayuan.jiang a89781848b docs: update README.md 2025-03-24 02:43:27 +00:00
dayuan.jiang 19dacfad30 fix: Corrected a bug where the current XML file was not attached to the user message. 2025-03-24 02:38:27 +00:00
dayuan.jiang 05d1adc179 docs: update diagram representation library in README 2025-03-24 01:02:09 +00:00
dayuan.jiang e10d5e072f docs: add demo site link to README 2025-03-23 15:28:05 +00:00
dayuan.jiang 240ab2002d fix: fix readme.md 2025-03-23 15:24:49 +00:00
dayuan.jiang cb9d37c2c6 docs: update README with project overview, features, and usage instructions 2025-03-23 15:03:38 +00:00
dayuan.jiang 0645c8d946 fix: style 2025-03-23 14:40:23 +00:00
dayuan.jiang f44346762f fix: style 2025-03-23 14:36:21 +00:00
dayuan.jiang 762b970cd9 fix: update diagram history dialog with description and adjust image styling 2025-03-23 14:31:19 +00:00
dayuan.jiang cc5c06de2e fix: diagram history 2025-03-23 14:22:40 +00:00
dayuan.jiang 6819a92921 feat: implement diagram history functionality with history dialog in ChatInput and ChatPanel 2025-03-23 13:54:21 +00:00
dayuan.jiang 1f69cf590b feat: add confirmation dialog for clearing conversation and diagram in ChatInput 2025-03-23 13:31:26 +00:00
dayuan.jiang b3f8820444 feat: add prompt examples panel and replicate flowchart functionality in ChatPanel 2025-03-23 13:15:28 +00:00
dayuan.jiang 51d4536dbb feat: remove Assistant component and implement drag-and-drop file upload in ChatInput 2025-03-23 12:56:47 +00:00
dayuan.jiang 385a103982 feat: remove unused SVG files and update layout metadata for Next-AI-Drawio 2025-03-23 12:48:31 +00:00
dayuan.jiang ef0c75dca5 feat: add clipboard paste handling in ChatInput for image file uploads 2025-03-23 12:12:24 +00:00
dayuan.jiang 9faa75ec9b feat: add onDisplayChart prop to ChatInput and integrate with ChatPanel for diagram handling 2025-03-23 12:04:33 +00:00
dayuan.jiang 50dc4eda6d feat: enhance ChatPanel and ChatInput to support image file uploads and display 2025-03-23 11:03:25 +00:00
dayuan.jiang df483ae647 feat: enhance ChatPanel to fetch chart data before submission and track update steps 2025-03-22 16:03:03 +00:00
dayuan.jiang a27c94f798 feat: add XML handling in ChatPanel and utility function for legal XML conversion 2025-03-22 15:45:49 +00:00
dayuan.jiang cfe3445a4f feat: enhance ChatPanel with tool call streaming and update diagram handling 2025-03-22 15:00:40 +00:00
dayuan.jiang fc4383dfb5 feat: update tool names and descriptions for diagram handling, add clear messages functionality in ChatInput 2025-03-22 14:28:55 +00:00
dayuan.jiang 4834d524b9 feat: update ChatInput and ChatPanel to use status instead of isLoading for improved state management 2025-03-22 13:26:14 +00:00
dayuan.jiang 1b40a3c456 feat: implement ChatInput component for enhanced message input and handling in ChatPanel 2025-03-22 13:15:51 +00:00
dayuan.jiang 1978be09f4 refactor: remove unused components and clean up ChatPanel layout 2025-03-22 12:43:24 +00:00
dayuan.jiang 00769197d6 feat: add rendering for tool invocations in ChatPanel and enhance message handling 2025-03-19 12:14:09 +00:00
dayuan.jiang bb753c4140 feat: update system message to reflect diagram terminology and integrate OpenAI model 2025-03-19 12:02:07 +00:00
dayuan.jiang 7caaa358e4 feat: enhance chat functionality with XML guide integration and improved tool descriptions 2025-03-19 11:03:37 +00:00
dayuan.jiang ec80a6c578 refactor: remove unused WebSearchToolUI component and update onFetchChart to return a Promise 2025-03-19 09:46:30 +00:00
dayuan.jiang 2832e9e5e7 fix: update input value in ChatPanel to provide a prompt for user interaction 2025-03-19 09:01:30 +00:00
dayuan.jiang 51ce74400d feat: add system message for flowchart assistance and improve message handling in chat API 2025-03-19 08:40:08 +00:00
dayuan.jiang 585c3bac1f feat: enhance chat functionality with flowchart tools integration and improved UI interactions 2025-03-19 08:16:44 +00:00
dayuan.jiang 5a11c32bc4 feat: add WebSearchToolUI component and input UI, integrate Radix UI scroll area 2025-03-19 07:20:22 +00:00
dayuan.jiang 5d1a33b18d fix: decode URL-encoded content in extractDiagramXML function 2025-03-19 06:19:08 +00:00
dayuan.jiang 10f9459627 refactor: change extractDiagramXML to synchronous function and improve error handling in the UI 2025-03-19 06:11:04 +00:00