Arxec Systems
Back to Archive
Case Study · 2025INTERNAL

Ashly

Ashly

Internal operations portal for project tracking, employee leaves, circulars, and Cloudflare R2 document storage.

Ashly

Internal company portal built with Next.js 15, React 19, Prisma, and PostgreSQL. Combines an active project tracker, employee directory, leave approvals, multi-step field forms (site inspection, expense, material receipt), anonymous grievance reporting, and a recursive folder/document drive backed by Cloudflare R2.

Problem Visual
The Problem

Scattered spreadsheets & shared drives

Internal teams were tracking project deadlines, employee leave requests, site inspection forms, and company circulars across separate spreadsheets and shared drives without role-based access control.

Solution Visual
The Solution

Single portal for projects, HR & documents

Built a single Next.js + Prisma portal backed by PostgreSQL and Supabase Auth. Implemented a recursive folder tree with Cloudflare R2 presigned uploads for company documents, focus-mode form wizards for field inspections and material receipts, and an admin console for HR, circulars, and department management.

Feature Visual
Implementation

Recursive R2 Document Tree & Field Forms

Recursive File System
Multi-step Inspection Engine
Real-time Resource Dashboard
Dynamic Material Tracking
Anonymous Reporting Portal

System Core · findFolderById

const findFolderById = (node, id) => {
  if (!node) return null;
  if (node.id === id) return node;
  if (node.children) {
    for (let child of node.children) {
      if (child.type === 'folder') {
        const found = findFolderById(child, id);
        if (found) return found;
      }
    }
  }
  return null;
};

const handleNavigate = (folderId, folderName) => {
  setIsLoading(true);
  setTimeout(() => {
    setCurrentFolderId(folderId);
    setBreadcrumbs(prev => {
      const existingIndex = prev.findIndex(b => b.id === folderId);
      if (existingIndex >= 0) return prev.slice(0, existingIndex + 1);
      return [...prev, { id: folderId, name: folderName }];
    });
    setIsLoading(false);
  }, 200);
};
javascript
Next Project

Next Case Study

CML Kothamangalam