feat(ui): SPEC-V0-3-0-STATUS-BAR-WIRE-001 MS-1 — StatusBar functional wire (agent-mode / workspace-switch git label / status.* dispatch parity)#109
Merged
Conversation
… wire (agent-mode setter / workspace-switch git label / status.* dispatch parity) (AC-SBW-1~6) - StatusCommand enum + route_status_command_to_kind helper (3 branches + None) - derive_status_git_label_from_workspace placeholder helper - 3 cx-bound RootView setters + dispatch_command status.* parity - handle_activate_workspace 후 refresh_status_git_label hook (additive) - 6 cx-free helper unit tests (AC-SBW-1~6) 🗿 MoAI <email@mo.ai.kr>
GoosLab
added a commit
that referenced
this pull request
May 5, 2026
5 tasks
GoosLab
added a commit
that referenced
this pull request
May 6, 2026
…graduation (placeholder → moai-git real query) (AC-SBW-7~12) (#111) #109 placeholder body 졸업: derive_status_git_label_from_workspace 의 입력을 workspace ID(&str)에서 실제 path(&Path)로 바꾸고, 본체를 moai_git::GitRepo 호출로 교체. workspace 전환 시 status bar 가 실제 branch 이름과 dirty marker 를 표시한다. 주요 변경: - crates/moai-studio-ui/src/lib.rs: - derive_status_git_label_from_workspace: &str → &Path. GitRepo::open + current_branch + is_dirty 호출. non-git/IO 실패는 None, detached HEAD 는 "detached" 라벨 (REQ-SBW-008..012). - refresh_status_git_label: self.active_id 로 self.workspaces 에서 in-memory lookup → project_path 추출 → derive 호출. lookup miss 는 clear_git_branch + cx.notify (REQ-SBW-013). - 기존 placeholder unit test 2개 제거, fixture 기반 5개 신설 (clean / dirty / non-git / detached / missing path). 1374 → 1377 tests. - crates/moai-studio-ui/Cargo.toml: git2 0.20 dev-dependency 추가 (Repository::init / set_head_detached fixture 용도). production 코드는 기존 moai-git wrapper 만 사용. Spec 편차 (progress.md §"Spec Deviation" 참고): moai_git::current_branch() 는 detached HEAD 에서 Ok("HEAD") 반환 (Err(DetachedHead) 가 아님). 양쪽 경로 모두 "detached" 라벨로 매핑하여 사용자 가시 동작은 spec REQ-SBW-010 과 일치. 테스트: - cargo test -p moai-studio-ui --lib → 1377 passed / 0 failed - cargo clippy -p moai-studio-ui --all-targets -- -D warnings → 0 warnings - cargo fmt --all -- --check → clean 🗿 MoAI <email@mo.ai.kr>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests
Files Changed
🗿 MoAI email@mo.ai.kr