taskchef 6.1.2 → 6.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskchef",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "Dispatch work from a data-only workspace to visible Codex project tasks.",
5
5
  "author": {
6
6
  "name": "Favo Yang",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskchef",
3
- "version": "6.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "A non-blocking interactive dispatcher for visible Codex tasks.",
5
5
  "license": "MIT",
6
6
  "author": "Favo Yang",
@@ -25,6 +25,7 @@ const elements = {
25
25
  connectionLabel: document.querySelector("#connection-label"),
26
26
  copyThreadId: document.querySelector("#copy-thread-id"),
27
27
  dashboardMessage: document.querySelector("#dashboard-message"),
28
+ dashboardMessageText: document.querySelector("#dashboard-message-text"),
28
29
  dateFilter: document.querySelector("#date-filter"),
29
30
  dialog: document.querySelector("#task-dialog"),
30
31
  dialogInstruction: document.querySelector("#dialog-instruction"),
@@ -32,6 +33,7 @@ const elements = {
32
33
  dialogProject: document.querySelector("#dialog-project"),
33
34
  dialogSummary: document.querySelector("#dialog-summary"),
34
35
  dialogTitle: document.querySelector("#dialog-title"),
36
+ dismissDashboardMessage: document.querySelector("#dismiss-dashboard-message"),
35
37
  emptyState: document.querySelector("#empty-state"),
36
38
  notifications: document.querySelector("#notifications"),
37
39
  openProject: document.querySelector("#open-codex"),
@@ -227,7 +229,7 @@ function applySnapshot(snapshot) {
227
229
  }
228
230
 
229
231
  function showMessage(message) {
230
- elements.dashboardMessage.textContent = message;
232
+ elements.dashboardMessageText.textContent = message;
231
233
  elements.dashboardMessage.hidden = false;
232
234
  }
233
235
 
@@ -245,6 +247,9 @@ events.addEventListener("dashboard-error", (event) => {
245
247
  elements.projectFilter.addEventListener("change", render);
246
248
  elements.statusFilter.addEventListener("change", render);
247
249
  elements.dateFilter.addEventListener("change", render);
250
+ elements.dismissDashboardMessage.addEventListener("click", () => {
251
+ elements.dashboardMessage.hidden = true;
252
+ });
248
253
  elements.clearNotifications.addEventListener("click", () => {
249
254
  state.notifications = [];
250
255
  renderNotifications();
@@ -52,7 +52,10 @@
52
52
  <p id="task-count" class="task-count" aria-live="polite"></p>
53
53
  </section>
54
54
 
55
- <div id="dashboard-message" class="dashboard-message" role="status" hidden></div>
55
+ <div id="dashboard-message" class="dashboard-message" hidden>
56
+ <span id="dashboard-message-text" role="status" aria-live="polite"></span>
57
+ <button id="dismiss-dashboard-message" class="icon-button" type="button" aria-label="Dismiss dashboard message">×</button>
58
+ </div>
56
59
  <section aria-labelledby="tasks-heading">
57
60
  <h2 id="tasks-heading" class="visually-hidden">Tasks</h2>
58
61
  <div id="task-list" class="task-list"></div>
@@ -90,7 +90,10 @@ time { font-size: 0.78rem; }
90
90
  .empty-state { padding: 60px 20px; border: 1px dashed var(--border); border-radius: 10px; text-align: center; color: var(--muted); }
91
91
  .empty-state h2 { margin-bottom: 6px; color: var(--text); }
92
92
 
93
- .dashboard-message { margin-bottom: 18px; padding: 11px 14px; border: 1px solid #d8c58e; border-radius: 7px; background: #fff7de; color: #604613; }
93
+ .dashboard-message { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 8px 8px 8px 14px; border: 1px solid #d8c58e; border-radius: 7px; background: #fff7de; color: #604613; }
94
+ .dashboard-message[hidden] { display: none; }
95
+ .dashboard-message span { flex: 1; }
96
+ .dashboard-message .icon-button { flex: none; padding: 4px 7px; color: inherit; }
94
97
 
95
98
  .notifications { position: fixed; right: 20px; bottom: 20px; z-index: 3; width: min(380px, calc(100vw - 40px)); padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
96
99
  .notifications-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }