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

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.


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.

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.

Recursive R2 Document Tree & Field Forms
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);
};
Next Case Study