HR

Intelligent Leave Request Portal

HR operations dashboard

Demo mode Current user: demo.user@example.com
Local demo ready

Modern leave operations, without changing the backend.

Upload leave letters, classify them instantly, review OCI storage metadata, and monitor request volume from a single polished HR surface. The UI keeps the same API contract and JavaScript hooks while adding dashboard-grade presentation and responsive behavior.

Single self-contained HTML Upload field name stays file Sample shortcuts preserved OCI download links unchanged

Upload leave request

Use drag and drop or browse manually. The underlying form still posts multipart data to /api/leave/upload with field name file.

No file selected.
Select a file to begin.
Samples below still load their preview text into the existing preview panel and prefill the file input.
Sample preview appears here when you click a sample button.

Saved leave requests

This list is rendered from /api/leave/list. Each download button continues to target /api/leave/download/{id}.

Filename Category Date OCI object Action
Loading saved requests...

Upload result

The response card surfaces category, keywords, OCI metadata, and the raw JSON response without changing the API shape.

Waiting for upload Upload a file to generate the structured response.
Waiting
Authenticated user
File name
Leave category
Upload timestamp
OCI object name
OCI object id
Matched keywords
No keywords to display yet.
Raw JSON response
{ "message": "Upload a file to see the JSON result." }

User dashboard response

This panel shows the exact JSON returned by /api/leave/dashboard and mirrors the identity state used in the header.

Current user demo.user@example.com
Portal mode Demo
{ "name": "demo.user@example.com", "email": "demo.user@example.com" }

Recent uploads

Client-side recent activity for the current browser session.

No uploads yet Your last 3 uploads will appear here.