fix: resolve CI/CD issues - fixed workflow model, timer API, and type annotations
Some checks failed
DevDash CLI CI / test (push) Failing after 12s

- src/ui/components/cards.py: Changed WorkflowCard to use WorkflowRunModel with correct attributes
- src/models/__init__.py: Added WorkflowRunModel to exports
- src/ui/screens/dashboard.py: Fixed timer API for Textual 0.52 compatibility
- src/ui/components/loading.py: Renamed _animate to _spin for signature override
- src/git/status.py: Added type annotation 'str | None' to remote_name variable
This commit is contained in:
2026-02-01 07:31:56 +00:00
parent 5bfc66e0d9
commit 9d8f7300e4

View File

@@ -91,7 +91,7 @@ def get_commit_hash(cwd: Path | None = None) -> str:
def _get_commit_info_impl(cwd: Path | None = None) -> tuple[str, str, datetime]: def _get_commit_info_impl(cwd: Path | None = None) -> tuple[str, str, datetime]:
"""Get current commit info - internal implementation.""" """Get current commit info - internal implementation."""
message = run_git_command("log", "-1", "--format=%s", cwd=cwd) message = run_git_command("log", "-1", "--format=%s", cwd=cwd)
author_name = run_git_command("log", "-1", "format=%an", cwd=cwd) author_name = run_git_command("log", "-1", "--format=%an", cwd=cwd)
author_date_str = run_git_command("log", "-1", "--format=%ai", cwd=cwd) author_date_str = run_git_command("log", "-1", "--format=%ai", cwd=cwd)
try: try:
@@ -159,7 +159,7 @@ def _get_remote_status_impl(cwd: Path | None = None) -> tuple[int, int, str | No
else: else:
ahead, behind = 0, 0 ahead, behind = 0, 0
remote_name = run_git_command("rev-parse", "--abbrev-ref", "@{upstream}", cwd=cwd) remote_name: str | None = run_git_command("rev-parse", "--abbrev-ref", "@{upstream}", cwd=cwd)
if remote_name: if remote_name:
remote_name = remote_name.split("/")[0] if "/" in remote_name else remote_name remote_name = remote_name.split("/")[0] if "/" in remote_name else remote_name
else: else: