-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
angular-clientDevelopment Focused in the FrontendDevelopment Focused in the Frontend
Description
Description
Implement Upload and Download buttons on the Notification Rules page. Upload parses a CSV into rules and batch-adds them via a confirmation dialog. Download exports current rules to CSV. Enables portable/shareable rule configurations across the team.
Acceptance Criteria
- Upload opens file picker for
.csv, parses into rules, shows confirmation dialog, then adds viaPUT /rules/add - Parsing errors surface as toast messages
- Download fetches rules via
GET /rules/{client_id}and exports as CSV (columns:id,topic,expr,debounce_time) - TODO comments for
descriptionanduploaded_bycolumns (not yet on backend)
Proposed Solution
Hidden <input type="file" accept=".csv"> behind Upload button. Parse with Papa Parse or manual CSV split. Confirmation via DynamicDialog (reference RunFormComponent pattern). Download builds CSV string from rules response, triggers via Blob + URL.createObjectURL. Test with sample CSV upload, verify rules appear via Postman GET /rules.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
angular-clientDevelopment Focused in the FrontendDevelopment Focused in the Frontend
Type
Projects
Status
Todo