You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IE-LOI-23-01693,25.00,Error: No song found with ISRC: IE-LOI-23-01693
196
+
```
197
+
198
+
6. Show summary toast: "Processed X records: Y succeeded, Z failed"
199
+
7. If any failures: Show warning toast prompting user to check output file
200
+
201
+
##### Delete Earnings (Multi-Select)
202
+
203
+
**Button:** "Delete Selected" in the toolbar (disabled when no rows selected)
204
+
205
+
**UI Requirements:**
206
+
| Element | Description |
207
+
|---------|-------------|
208
+
| Checkbox column | Leftmost column with checkbox for each row |
209
+
| Select All | Header checkbox to select/deselect all filtered rows. Shows indeterminate (minus icon) when some rows selected, check when all selected |
210
+
| Delete Button | Enabled only when 1+ rows selected, shows count |
211
+
| Confirmation | Modal dialog before deletion |
212
+
213
+
**Process:**
214
+
1. User selects one or more rows via checkboxes
215
+
2. "Delete Selected (N)" button becomes enabled
216
+
3. User clicks delete button
217
+
4. Confirmation dialog: "Delete N earnings records? This cannot be undone."
218
+
5. On confirm: Call `DELETE /v1/earnings/admin` with list of earning IDs
219
+
6. On success: Refresh table, show success toast
220
+
7. On failure: Show error toast with API error message
Copy file name to clipboardExpand all lines: .agent/workflows/admin.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,18 +56,24 @@ cd newm-admin && cargo run
56
56
cd newm-admin && cargo build --release
57
57
```
58
58
59
+
### Format Code Check
60
+
// turbo
61
+
```bash
62
+
cd newm-admin && cargo fmt --all -- --check
63
+
```
64
+
59
65
### Format Code
60
66
61
67
// turbo
62
68
```bash
63
-
cd newm-admin && cargo fmt
69
+
cd newm-admin && cargo fmt --all
64
70
```
65
71
66
72
### Lint
67
73
68
74
// turbo
69
75
```bash
70
-
cd newm-admin && cargo clippy
76
+
cd newm-admin && cargo clippy --all-targets --all-features -- -D warnings
71
77
```
72
78
73
79
---
@@ -206,4 +212,4 @@ When visual verification of UI changes is needed:
206
212
4. Document what specific UI elements should be visible in the screenshot
207
213
208
214
Example prompt to user:
209
-
> "Please run the application and take a screenshot of [specific view]. I need to verify that [specific UI element] appears correctly. Attach the screenshot to your reply."
215
+
> "Please run the application and take a screenshot of [specific view]. I need to verify that [specific UI element] appears correctly. Attach the screenshot to your reply."
0 commit comments