Skip to content

fix(ci): resolve arch-check port purity, clippy, DM sinceSeq, and frontend checks - #69

Closed
DorJay007 wants to merge 1 commit into
DimoADE:masterfrom
DorJay007:fix/ci-checks-and-arch-purity
Closed

DorJay007 wants to merge 1 commit into
DimoADE:masterfrom
DorJay007:fix/ci-checks-and-arch-purity

Conversation

@DorJay007

Copy link
Copy Markdown
Contributor

Summary

 crates/server/src/
 ├── domains.rs              # owns SQLx queries (conversation_projects, workspace_has_repositories)
 └── host/
-    └── workspace_files.rs  # direct sqlx:: & self.pool queries (violated I2 port purity)
+    └── workspace_files.rs  # delegates DB lookups to ServerState domain helpers
  • Port Purity (I2 端口纯净): Move conversation_projects and workspace_has_repositories SQLx queries from crates/server/src/host/workspace_files.rs into crates/server/src/domains.rs.
  • Collaboration DM sinceSeq Fallback: Restore cutover_seq == 0 pre-cutover fallback in the Some(since) branch of list_dm_messages (crates/conversations/src/collaboration_sidebar.rs).
  • Commit Reminder Notification: Keep is_local_user_turn_origin scoped to LOCAL_USER_ORIGIN (src-tauri/src/events.rs) so automatic commit-reminder turns do not emit duplicate reply notifications.
  • Rust Clippy & Formatting: Resolve clippy::collapsible_if, clippy::borrow_deref_ref, and target-gated ephemeral_profile_dir warnings across agents, services, server, and src-tauri.
  • Frontend Build & Checks: Fix isCollapsedRef.current in IDELayout.tsx, add api_key: null to DshAuthPanel test fixtures, remove duplicate i18n keys in settings.json, replace eslint-disable in ConnectorMarketplace.tsx, and format with Prettier.

Evidence

  • Before:
    • pnpm run arch:check: 6 violations in crates/server/src/host/workspace_files.rs
    • cargo clippy --all --all-targets -- -D warnings: failed on collapsible_if / borrow_deref_ref
    • cargo test -p server dm_sidebar_preview_unread_and_direct_space_routes: failed (left: 0, right: 3)
    • cargo test -p vibex automatic_commit_reminder_turn_does_not_emit_a_second_reply_notification: failed
    • cd frontend && pnpm run build && pnpm run lint && pnpm run format:check: failed
  • After:
    • pnpm run test:arch-invariants && pnpm run arch:check: 0 violations
    • cargo fmt --all -- --check && cargo clippy --all --all-targets -- -D warnings: passed
    • cargo test -p server dm_sidebar_preview_unread_and_direct_space_routes: passed
    • cargo test -p vibex automatic_commit_reminder_turn_does_not_emit_a_second_reply_notification: passed
    • GITHUB_BASE_REF=master ./scripts/check-i18n.sh && cd frontend && pnpm run build && pnpm run lint && pnpm run format:check: passed

Merge Danger

Door: Two-way

Pure CI, lint, test, and port-purity boundary cleanup with no protocol or schema changes.

Blast Radius: Low

@DorJay007 DorJay007 closed this Nov 8, 2026
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.

1 participant