Skip to content

Commit 6732be6

Browse files
shuvebclaude
andcommitted
Filter out archived projects from CLI and TUI project lists
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent af97917 commit 6732be6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "mfbt-cli"
7-
version = "0.1.4"
7+
version = "0.1.5"
88
description = "CLI tool for the mfbt platform — interactive TUI and subcommands for managing mfbt projects"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/mfbt/commands/projects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def list_projects(
188188
try:
189189
resp = client.get("/api/v1/projects")
190190
projects = resp.body if isinstance(resp.body, list) else []
191+
projects = [p for p in projects if p.get("status") != "archived"]
191192
finally:
192193
client.close()
193194

src/mfbt/tui/data_provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def fetch_projects(self, limit: int = 50, offset: int = 0) -> DataPage:
4343
response = self._client.get("/api/v1/projects")
4444
body = response.body
4545
items: list[dict[str, Any]] = body if isinstance(body, list) else []
46+
items = [p for p in items if p.get("status") != "archived"]
4647
# Apply client-side pagination on the plain array
4748
total = len(items)
4849
page = items[offset : offset + limit]

0 commit comments

Comments
 (0)