Frontend & Printing Engine

Frontend & Printing Engine

The frontend client portal is built as a Single Page Application (SPA) using Next.js. It leverages reactive data tables and strictly typed endpoints to render complex analytical reports securely based on the active user's authorization tier.

Premium Document Preview & Live Canvas

A core requirement for enterprise HR departments is the generation of physical timesheets for wet-ink signatures. The interface features an interactive, high-fidelity sheet preview workspace designed to perfectly mirror the physical hardcopy layout before any export action occurs.

👤 Select Personnel...
📅 Start Date
📅 End Date
EMPLOYEE TIME SHEET REPORT
Staff: Martin Jacob
ID Token: #9042
Unit Scope: Human Resources
Date
Shift
In
Out
Variance
05/06
Day Shift
08:14
17:00
+14m Late
06/06
Day Shift
07:55
17:05
On Time
Staff Verification Line
Supervisor Sign-off

Native Browser A4 Portrait Printing

Rather than relying on heavy server-side PDF generation libraries, TitanGrid utilizes a highly optimized browser-native printing engine via CSS @media print queries.

This approach shifts the rendering workload to the client's local machine, ensuring the application server resources remain entirely dedicated to database ingestion and mathematical processing.

Print Configuration Directives

When a user triggers the print command, the Next.js application executes specific stylesheet directives:

  • UI Component Stripping: Automatically hides elements like layout control sidebars, browser navigation wrappers, and download toolbars. Only the pure data matrix remains visible.
  • Canvas Grid Scaling: Locks the React data grids into a fixed print width layout container (width: 210mm / standard A4 width), ensuring metrics display clearly without column truncation.
  • Verification Footers: Automatically injects the standard supervisor and staff signature lines at the base of the layout sheet for HR compliance sign-offs.