OmniLog is a high-performance, client-side data management tool designed to streamline employee record tracking. It solves the problem of volatile data loss during browser sessions by implementing a persistent state layer, ensuring that administrative records remain intact across reloads.
The application operates on a Unidirectional Data Flow principle:
- Capture: UI-bound event listeners intercept user input from the DOM.
- Validation & Transformation: Raw data is validated and structured into a JSON-serializable object.
- Persistence: The State is synchronized with
LocalStorageto ensure 100% data retention. - Reconciliation: The
displayList()function performs a complete DOM purge and re-render based on the updated state, ensuring the UI is a "Single Source of Truth."
This project demonstrates technical mastery of the MERN-essential concepts:
- State Persistence: Using
JSON.parseandstringifyfor local database simulation. - Conditional UI Logic: Dynamic styling (High-Salary highlighting) based on data thresholds.
- DOM Optimization: Efficient event-driven updates and manual DOM manipulation without heavy frameworks.
- Responsive Architecture: A mobile-first CSS approach using Flexbox and Media Queries for cross-device compatibility.