Skip to content

feat(import): add progress bar and English CLI output - #117

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
m0Nst3r873:feat/import-progress-bar
Jul 3, 2026
Merged

feat(import): add progress bar and English CLI output#117
jeff-r2026 merged 1 commit into
Tencent:mainfrom
m0Nst3r873:feat/import-progress-bar

Conversation

@m0Nst3r873

Copy link
Copy Markdown
Collaborator

Summary

  • Add listr2 progress bar for structured multi-step progress display in import commands
  • Translate all user-facing Chinese strings to English (~80 strings across 9 files)

Progress bar

Import commands now show structured step-by-step progress with timers:

✔ Import remote repository [12s]
    Repository: https://github.com/org/repo.git
✔ Extract learning from MR [3s]
✔ Incremental teamwiki update [8s]
    Updating tgit__team__repo...
✔ Push changes via MR [2s]

Covered commands: --from-repo, --from-repo-list, --from-mr, --from-org

English output

All user-visible log/spinner/error messages translated to English. Preserved in Chinese:

  • AI prompts (sent to LLM)
  • Generated document content (G-documents, gaps)
  • Code comments

Test plan

  • 129 test files, 1582 tests passing
  • TypeScript type check clean
  • listr2 auto-degrades to simple renderer in non-TTY (CI) environments

🤖 Generated with Claude Code

- Add listr2 dependency for structured multi-step progress display
- Wrap --from-repo, --from-repo-list, --from-mr, --from-org with
  listr2 task lists showing step-by-step progress with timers
- Translate ~80 Chinese log/spinner/error strings to English across
  import-repo.ts, import.ts, import-mr.ts, import-iwiki.ts,
  import-org.ts, import-repo-list.ts, codebase-extract.ts,
  deep-enrich.ts, import-local.ts
- Preserve Chinese in AI prompts and generated document content
- Preserve Chinese in code comments (only user-facing output translated)
@jeff-r2026
jeff-r2026 merged commit 44e0bcb into Tencent:main Jul 3, 2026
7 checks passed
@hsuchifeng hsuchifeng mentioned this pull request Jul 3, 2026
3 tasks
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.

2 participants