Skip to content

Commit 974b7cb

Browse files
author
Leon Shan
committed
fix: default status filter to 'all' to show archived-only projects
Bug reported in rpamis/comet#72: when all changes are archived (e.g. plain OpenSpec projects without comet metadata), the default 'active' filter showed '没有匹配的 change' even though the API returned data. Default to 'all' so users see every change immediately.
1 parent ae2edf2 commit 974b7cb

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

comet-panel

0 Bytes
Binary file not shown.

static/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let state = {
66
selectedName: null,
77
changeDetail: null,
88
activeArtifact: null,
9-
filters: { search:'', status:'active', workflow:'', phase:'' },
9+
filters: { search:'', status:'all', workflow:'', phase:'' },
1010
chat: {
1111
messages: [],
1212
contextFiles: [],

static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1>Comet UI</h1>
2525
<input type="text" id="search" placeholder="搜索..." oninput="onFilterChange()">
2626
<div class="filter-row">
2727
<select id="filter-status" onchange="onFilterChange()">
28-
<option value="active">活跃</option><option value="archived">已归档</option><option value="all">全部</option>
28+
<option value="all">全部</option><option value="active">活跃</option><option value="archived">已归档</option>
2929
</select>
3030
<select id="filter-workflow" onchange="onFilterChange()">
3131
<option value="">全部 workflow</option><option value="full">full</option><option value="tweak">tweak</option><option value="hotfix">hotfix</option>

0 commit comments

Comments
 (0)