152 Commits

Author SHA1 Message Date
55a77ea86d Merge pull request #182 from lyzno1/feature/streamdown-and-fixes
feat: Streamdown integration and UI/UX improvements
2025-09-16 10:27:39 +08:00
c4b8029702 Merge remote-tracking branch 'upstream/main' into feature/streamdown-and-fixes 2025-09-16 10:23:50 +08:00
aabdcdb3df Merge pull request #183 from lyzno1/chore/add-pnpm-lock
chore: add pnpm-lock.yaml for dependency locking
2025-09-16 10:19:38 +08:00
71a13ba418 Merge pull request #178 from zhiheng-yu/feat/staged-docker-build
feat(docker): Docker build with multi-stage
2025-09-16 10:14:07 +08:00
6a8f4e6db1 Merge pull request #125 from AllForNothing/fix/same-site
fix: add new setting item to disable/enable same site for session_id cookie
2025-09-16 10:09:59 +08:00
9b1288fc96 Merge branch 'main' into chore/add-pnpm-lock 2025-09-16 10:08:24 +08:00
518ec4fb9d Merge pull request #123 from vvatelot/i18n/french
i18n(fr): Add french translations
2025-09-16 10:07:21 +08:00
12e52b5d7e Merge pull request #181 from lyzno1/chore/eslint-v9-migration
chore: eslint v9 migration
2025-09-16 10:05:21 +08:00
238611f547 Merge pull request #143 from Laurel-rao/main
修复 iphone 手机点击聊天框放大的问题
2025-09-16 10:04:49 +08:00
d28e2c29fc chore: add pnpm-lock.yaml 2025-09-15 11:10:07 +08:00
34bb34f890 [Error] Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
error (intercept-console-error.js:57)
	getRootForUpdatedFiber (react-dom-client.development.js:3899)
	dispatchSetStateInternal (react-dom-client.development.js:8249)
	dispatchSetState (react-dom-client.development.js:8209)
	(anonymous function) (react-tooltip.min.mjs:18:14416)
2025-09-15 10:58:08 +08:00
18a4229464 Error: Route "/api/messages/[messageId]/feedbacks" used params.messageId. params should be awaited before using its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis
at POST (app/api/messages/[messageId]/feedbacks/route.ts:12:11)
  10 |     rating,
  11 |   } = body
> 12 |   const { messageId } = params
     |           ^
  13 |   const { user } = getInfo(request)
  14 |   const { data } = await client.messageFeedback(messageId, rating, user)
  15 |   return NextResponse.json(data)
 POST /api/messages/36fd2d18-909b-4bb9-b46d-6e7f72a705e4/feedbacks 200 in 557ms
2025-09-15 10:57:56 +08:00
0cb8fdcf15 fix: await params in dynamic route for Next.js 15 compatibility 2025-09-15 10:57:38 +08:00
532aba026a fix: filter empty URLs in image gallery to prevent browser reload
- Add validation to filter out empty and whitespace-only image URLs
- Return null when no valid images exist
- Prevents console errors and browser reload issues from empty img src

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 10:57:38 +08:00
7a07e8d56b Fix auto-scroll for page-level scrolling
Replace container scrollTop logic with scrollIntoView API to support page-level scroll bars instead of internal container scrolling.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 10:57:38 +08:00
c907432782 fix: send button ui 2025-09-15 10:56:59 +08:00
672ad29e5d Integrate Streamdown and optimize chat layout
- Replace react-markdown with Streamdown for better streaming support
- Fix input box positioning with proper sidebar offset
- Optimize scrolling behavior with main container handling scroll
- Add max-width constraint for assistant messages
- Ensure proper spacing to prevent input box overlap

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 10:56:59 +08:00
2d426902bd fix: max answer bubble width 2025-09-15 10:56:59 +08:00
3025356fa7 feat: question use streamdown 2025-09-15 10:56:59 +08:00
ba95a431b3 fix: assistant answer pb 2025-09-15 10:56:59 +08:00
9ff81c0306 fix: update cookies() usage for Next.js 15 compatibility
- Make getLocaleOnServer async and await cookies()
- Update LocaleLayout to be async component
- Fix react-tooltip compatibility with React 19

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 10:56:19 +08:00
f809b706a0 Configure husky to use lint-staged
- Update pre-commit hook to run lint-staged instead of full eslint
- Add lint-staged script to package.json
- Only lint staged files during commit for better performance

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 10:55:16 +08:00
05dcfcf0ca feat: migrate ESLint to v9 flat config
- Replace .eslintrc.json with eslint.config.mjs
- Simplify configuration using @antfu/eslint-config
- Add necessary ESLint plugin dependencies
- Disable overly strict style rules
- Set package.json type to module for ESM support
- Fix ESLint disable comment format

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-15 10:55:10 +08:00
2b1882a5e3 chore: update eslint 2025-09-15 10:55:03 +08:00
d3909927af Merge pull request #179 from Eric-Guo/main
Fix file upload (not image) in chat-flow.
2025-09-10 15:51:04 +08:00
17007b2014 Allow file upload in chat. 2025-09-08 16:15:46 +08:00
e91a1f6194 @tailwindcss/line-clamp include by default. 2025-09-08 14:56:12 +08:00
74a656fda2 Initial GPT-5-high generated cursor rules 2025-09-08 14:51:22 +08:00
8f02afed98 Bump some outdated package version 2025-09-08 14:39:47 +08:00
dc1659463e feat(docker): Docker build with multi-stage
This will significantly reduce the size of the final image used for deployment.
2025-09-04 15:11:13 +08:00
b35f0effe5 Merge pull request #169 from LeeeeeeM/fix/add-pre-answer
fix: suggestion is not rendered
2025-06-03 15:25:06 +08:00
60a33804cc fix: suggestion is not rendered 2025-05-30 09:59:27 +08:00
7495bf44a2 fix: fix option check
fix: fix option check
2025-05-27 18:26:23 +08:00
d009b00012 fix: fix option check 2025-05-27 11:33:48 +08:00
1249ea88c9 Merge pull request #157 from langgenius/fix/file-input-caused-page-crash
feat:  support file and filelist input form
2025-04-15 18:51:08 +08:00
d3482db74d chore: can set the write input 2025-04-15 18:41:13 +08:00
beda954867 chore: can use setting config 2025-04-15 18:18:46 +08:00
4ae03c2101 chore: file upload i18n 2025-04-15 17:42:55 +08:00
7216f40bee feat: add single file upload 2025-04-14 18:38:27 +08:00
e9923e8220 fix: string type 2025-04-14 16:33:06 +08:00
9a7e1be35d fix: file type not support 2025-04-14 16:17:52 +08:00
db4e78d796 修复 iphone 手机点击聊天框放大的问题 2025-03-04 14:51:29 +08:00
87c81b99dd Delete .idea/workspace.xml 2024-12-11 18:28:19 +08:00
a8ea35e5c6 fix: add new setting item to disable/enable same site property
fixes #55

Signed-off-by: 孙世军 <1083433931@qq.com>
2024-12-11 18:08:47 +08:00
41406a8596 i18n(fr): Add french translations 2024-12-10 16:09:06 +01:00
9d2d092e9e Merge pull request #95 from yusuke-ten/fix/IMainProps-type
fix IMainProps-type
2024-12-07 22:03:48 +08:00
1f5607221a Merge pull request #93 from sorphwer/fix-openStatement-typo
fix: fix openStatement typo
2024-12-07 22:03:33 +08:00
009674b231 Merge pull request #119 from langgenius/chore/add-show-error-msg
chore: add show api error msg
2024-11-25 13:17:26 +08:00
25ef02d2aa chore: add show api error msg 2024-11-25 13:15:14 +08:00
f6f65cff68 Merge pull request #118 from langgenius/docs/env-description
docs: add more description to env
2024-11-22 11:35:27 +08:00