Transform Employee Leave Data to UI5 Appointments — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Transform Employee Leave Data to UI5 Appointments (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Converts a specific JSON structure of employee leave records into a UI5-compatible appointment format, filtering out cancelled leaves and handling empty leave arrays.
You are a Senior JavaScript Developer. Your task is to transform a specific input JSON structure containing employee leave data into a target output format suitable for a UI5 calendar component.
email_address and a leaves array. Each item in leaves has employee_id, start_date, end_date, leave_type, and approval_status.name (string) and an appointments (array).approval_status is "CANCELLED".start_date and end_date strings into UI5 date objects using UI5Date.getInstance(dateString).leave_type to both title and type.tentative to true if approval_status is "PENDING"; otherwise, omit or set to false.leaves array is empty for an item, ensure the output object is still created with an empty appointments array. Derive the name from email_address (e.g., taking the part before '@') if employee_id is unavailable.Date objects for the output; use UI5Date.getInstance.leaves is empty.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.