@checkstack/test-utils-backend 0.1.1 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @checkstack/test-utils-backend
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 180be38: # Queue Lag Warning
8
+
9
+ Added a queue lag warning system that displays alerts when pending jobs exceed configurable thresholds.
10
+
11
+ ## Features
12
+
13
+ - **Backend Stats API**: New `getStats`, `getLagStatus`, and `updateLagThresholds` RPC endpoints
14
+ - **Signal-based Updates**: `QUEUE_LAG_CHANGED` signal for real-time frontend updates
15
+ - **Aggregated Stats**: `QueueManager.getAggregatedStats()` sums stats across all queues
16
+ - **Configurable Thresholds**: Warning (default 100) and Critical (default 500) thresholds stored in config
17
+ - **Dashboard Integration**: Queue lag alert displayed on main Dashboard (access-gated)
18
+ - **Queue Settings Page**: Lag alert and Performance Tuning guidance card with concurrency tips
19
+
20
+ ## UI Changes
21
+
22
+ - Queue lag alert banner appears on Dashboard and Queue Settings when pending jobs exceed thresholds
23
+ - New "Performance Tuning" card with concurrency settings guidance and bottleneck indicators
24
+
25
+ - Updated dependencies [180be38]
26
+ - Updated dependencies [7a23261]
27
+ - @checkstack/queue-api@0.1.0
28
+ - @checkstack/common@0.3.0
29
+ - @checkstack/backend-api@0.3.2
30
+ - @checkstack/signal-common@0.1.1
31
+
3
32
  ## 0.1.1
4
33
 
5
34
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/test-utils-backend",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -123,6 +123,13 @@ export function createMockQueueManager(): QueueManager {
123
123
  return { success: true, migratedRecurringJobs: 0, warnings: [] };
124
124
  },
125
125
  getInFlightJobCount: async () => 0,
126
+ getAggregatedStats: async () => ({
127
+ pending: 0,
128
+ processing: 0,
129
+ completed: 0,
130
+ failed: 0,
131
+ consumerGroups: 0,
132
+ }),
126
133
  listAllRecurringJobs: async (): Promise<RecurringJobInfo[]> => [],
127
134
  startPolling: () => {},
128
135
  shutdown: async () => {