@necrolab/dashboard 0.5.29 → 0.5.30

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necrolab/dashboard",
3
- "version": "0.5.29",
3
+ "version": "0.5.30",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rm -rf dist && vite build && npx workbox-cli generateSW workbox-config.cjs",
@@ -4,7 +4,7 @@
4
4
  <div class="page-header-card">
5
5
  <MailIcon />
6
6
  <h4>Accounts</h4>
7
- <span class="pl-1.5 text-sm font-medium text-light-400">{{ ui.accounts.length }}</span>
7
+ <span class="pl-1.5 text-sm font-medium text-light-400">{{ ui.search.accounts.results.length }}</span>
8
8
  </div>
9
9
  <ul class="mobile-icons">
10
10
  <li>
@@ -4,7 +4,7 @@
4
4
  <div class="page-header-card">
5
5
  <GroupIcon />
6
6
  <h4>Profiles</h4>
7
- <span class="pl-1.5 text-sm font-medium text-light-400">{{ ui.profiles.length }}</span>
7
+ <span class="pl-1.5 text-sm font-medium text-light-400">{{ ui.search.profiles.results.length }}</span>
8
8
  </div>
9
9
  <ul class="mobile-icons">
10
10
  <li>
@@ -243,7 +243,35 @@ const QuickSettings = defineAsyncComponent(() => import("@/components/Tasks/Quic
243
243
 
244
244
  const ui = useUIStore();
245
245
  const activeModal = computed(() => ui.activeModal);
246
- const taskCount = computed(() => Object.keys(ui.getSelectedTasks()).length);
246
+
247
+ // Count of visible tasks after filters (country, event, All/Checkout) - synced with table
248
+ const taskCount = computed(() => {
249
+ const siteIdEdgeCases = {
250
+ LN_US: ["TM_US"],
251
+ TM_CA: ["TM_US"],
252
+ TM_IE: ["TM_UK"],
253
+ TM_NZ: ["TM_AU"]
254
+ };
255
+
256
+ let count = 0;
257
+ for (const id of ui.taskIdOrder) {
258
+ const task = ui.tasks[id];
259
+ if (!task || task.hidden) continue;
260
+
261
+ // Filter by country
262
+ if (task.siteId !== ui.currentCountry.siteId && !siteIdEdgeCases[task.siteId]?.includes(ui.currentCountry.siteId)) continue;
263
+
264
+ // Filter by event
265
+ if (ui.currentEvent && task.eventId !== ui.currentEvent) continue;
266
+
267
+ // Filter by All/Checkout
268
+ if (ui.taskFilter === "Checkout" && !task.checkoutUrl) continue;
269
+
270
+ count++;
271
+ }
272
+ return count;
273
+ });
274
+
247
275
  ui.refreshQueueStats();
248
276
 
249
277
  const taskSearchQuery = ref("");