Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
canary
lobe-chat
/
src
/
locales
下载当前目录
G
GitHub
✨ feat(review-panel): group review changes by submodule (
#15148
)
b3d2d2fd
创建于
13 小时前
历史提交
文件
最后提交记录
最后更新时间
default
✨ feat(review-panel): group review changes by submodule (#15148) * 🐛 fix(claude-code): show task subject in TaskUpdate inspector & header A TaskUpdate that only sets `subject` (no status flip) was falling through to the aggregate `Todos: x/y` chip and burying the per-call signal. Surface the new subject like the status branch already does: "Task updated: <subject>". Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * ✨ feat(review-panel): group changes by submodule with per-group collapse Surface dirty submodules as their own groups in the agent Review panel so users working in a parent repo with submodules see each repo's changes clustered together (mirrors WebStorm's per-repo commit grouping). Both Unstaged and Branch modes apply the same grouping — submodules with internal working-tree changes (unstaged) or branch diffs against their own origin/HEAD (branch) surface as separate groups, each tagged with its own branch label and file/diff totals. Backend (`GitCtr`): - `getGitWorkingTreePatches` and `getGitBranchDiff` extracted into private recursive helpers that detect submodules via `git submodule status`, partition pointer-bump entries out of the parent's flat patches, and recurse one level for each dirty submodule's own patches + branch info. - Nested submodules are not traversed (phase 1); revert routes through each group's absolute path so submodule files revert inside the submodule. Renderer: - New `GroupHeader` and `FileRow` subcomponents split out of `Review`. `GroupHeader` is sticky with a chevron + name + file count + diff totals + branch; clicking collapses the group's rows. A hover-revealed `ActionIcon` on the right expands/collapses all file diffs in that group (`e.stopPropagation` keeps it from also collapsing the surrounding header). - Fixed `block-size: 32px` on the header so toggling the fold button on/off doesn't jitter the sticky height. - Single-repo working trees keep the previous flat layout when no submodule groups exist. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * ✨ feat(review-panel): scan all submodules in branch mode Previously branch mode only surfaced a submodule group when the parent's diff against base ref contained a `Subproject commit` pointer bump for it. This missed the common case where the user has committed work in a submodule on a feature branch but the parent's pointer hasn't yet moved relative to its base — the submodule's own branch differences stayed invisible in the Review panel. `collectBranchDiff` now recurses into every registered submodule (single level, in parallel) and keeps a group when EITHER its pointer differs in the parent OR its own branch diverges from its own origin/HEAD. Clean-on- both-axes submodules are dropped so the panel stays quiet for repos where the submodule isn't actively being worked on. Submodule count is small in practice (single digits), so the extra per-submodule fetch + diff in parallel is an acceptable cost. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * ✨ feat(agent-documents): hide .tool-results archive from user-facing lists Auto-created tool-result archive folder and its children are now filtered out of getAgentDocuments. Agents still discover them via the tool-oriented listDocuments paths. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * 💄 style(review-panel): drop "file not found in project index" toast Reveal-in-tree now silently no-ops when the path isn't indexed (e.g. submodule files) instead of nagging the user with a warning toast. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * 🐛 fix(review-panel): keep submodule groups visible on pointer-only bumps `isEmpty` was derived solely from `totalEntryCount`, which counts file patches across groups. A pointer-only submodule bump (parent patch filtered out, submodule group present but internally clean) produced `totalEntryCount === 0`, so the panel rendered the global empty state and silently skipped the submoduleClean group rendering — even though git was dirty. Now `isEmpty` also requires zero submodule groups, so pointer-only bumps keep their GroupHeader + "submodule clean" line. The fold-all button visibility switches to `totalEntryCount > 0` so it stays hidden when there's nothing foldable. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
13 小时前
create.ts
🐛 fix: e2e page related tests (#14309) * chore: add default home locales * fix: e2e tests * fix: LobeAI locales * fix: Lobe AI locales * fix: test case errors * chore: update i18n files
24 天前
resources.test.ts
🐛 fix: fix normalizeLocale with first matching locale (#1767) * fix: return first matching locale in normalizeLocale * Update resources.ts * Create resources.test.ts * Update locale.ts * Update locale.ts * Update resources.ts * Update resources.ts * Update resources.test.ts
2 年前
resources.ts
chore: update lint to use type imports (#10970) * chore: update lint to use type imports 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * revert * chore: add workspaces and overrides to package.json * refactor: clean up imports in lobe-web-browsing executor --------- Co-authored-by: Claude <noreply@anthropic.com>
4 个月前
utils.ts
💄 style: Update i18n microcopy (#10905) * chore: update i18n * chore: update i18n * chore: update i18n * chore: update i18n * chore: update i18n * chore: update i18n * chore: update i18n * chore: update i18n translations and placeholders across multiple components Signed-off-by: Innei <tukon479@gmail.com> * chore: update i18n translations for consistency in terminology across chat, onboarding, and settings components Signed-off-by: Innei <tukon479@gmail.com> * chore: update i18n translations to replace 'assistant' with 'agent' and ensure consistency across all components Signed-off-by: Innei <tukon479@gmail.com> * chore: update model descriptions in locales for clarity and accuracy Signed-off-by: Innei <tukon479@gmail.com> * feat: extract hard code string Signed-off-by: Innei <tukon479@gmail.com> * feat: enhance Chinese localization with new proxy and sync settings, update dialog messages for version checks and OAuth authorization Signed-off-by: Innei <tukon479@gmail.com> * chore: flatten * chore: standardize localization keys by flattening nested structures across multiple languages Signed-off-by: Innei <tukon479@gmail.com> * chore: refine i18n documentation by consolidating key naming conventions and workflow guidelines for translation management Signed-off-by: Innei <tukon479@gmail.com> * chore: update i18n * feat: add chat title localization for improved user experience in Chinese Signed-off-by: Innei <tukon479@gmail.com> --------- Signed-off-by: Innei <tukon479@gmail.com> Co-authored-by: Innei <tukon479@gmail.com>
4 个月前