π₯οΈFor Developers
Source Code
You may see the all of the repository here: https://github.com/KobeSergio.
The GitHub repository https://github.com/KobeSergio/PRC-IaM-PRB includes the source code, configuration files, and documentation. Here's a breakdown of some key files and directories:
Build Files:
package.jsonandpackage-lock.json: Define dependencies and project metadata.tsconfig.json: Configuration for TypeScript.
Configuration Files:
.env: Contains environment variables..eslintrc.json: Configuration for ESLint, a static code analysis tool.next.config.js,postcss.config.js,tailwind.config.js: Configuration files for Next.js, PostCSS, and Tailwind CSS respectively.
Styles and Assets:
styles/: CSS files for styling the application.public/assets/: Contains images and icons used in the app.
App Directory:
The /app directory of the "PRC-IaM-PRB" GitHub repository contains several subdirectories and files, each serving a specific purpose in the application. Here's an overview based on the content of key files:
Dashboard (
/app/dashboard):layout.tsx: Defines the layout for the dashboard, including session checks and styling.loading.tsx: A loading component displayed during data fetching or processing.page.tsx: The main page for the dashboard, featuring UI elements like a sidebar, charts, and a filter modal.
Inspection Calendar (
/app/inspection-calendar):layout.tsx: Similar to the dashboard layout, it sets up the layout for the inspection calendar section.loading.tsx: A loading component for the inspection calendar.page.tsx: The main page for the inspection calendar, incorporating a full calendar view, filtering options, and various UI components.
Inspection (
/app/inspection):[id]/page.tsx: A dynamic route handling individual inspection details. It includes various UI components like modals for cancellation, rescheduling, and task-specific actions.layout.tsx: Sets up the layout for the inspection pages.
Logs (
/app/logs):layout.tsx: Defines the layout for the logs section.loading.tsx: A loading screen for the logs section.page.tsx: The main page for logs, likely displaying logs related data (the content of this file wasn't returned in the query).
Root Layout (
app/layout.tsx):This file likely defines the root layout structure for the application, incorporating elements like navigation, footer, and global styles.
Main Entry (
app/page.tsx):Serves as the entry point for the application, likely handling the initial routing and rendering of the main content.
Components Directory:
The components directory of the "PRC-IaM-PRB" GitHub repository contains various React components used throughout the application. Here's a brief overview of some of the key components:
Breadcrumbs.tsx: Implements a breadcrumb navigation system, displaying the user's current location within the application and allowing easy navigation to previous pages.
Footer.tsx: Defines the footer of the application, including copyright information and social media links.
IMWPR Components (IMWPR/Sections.tsx, IMWPR/Summary.tsx): These components are related to the Inspection and Monitoring Work Program and Report (IMWPR) section. They handle displaying sections and summaries of the IMWPR.
InspectionSummary Components (InspectionSummary/IMATVS/IMAT.tsx, InspectionSummary/IMWPR/IMWPR.tsx, etc.): These components are used in the inspection summary section of the application, providing detailed views and summaries of various inspections.
Modals (AddNewInspection.tsx, CancellationRequest.tsx, etc.): A collection of modal components used for different purposes like adding new inspections, handling cancellation requests, and other interactive user dialogs.
Sidebar.tsx: Defines the sidebar component, which is likely used for navigation within the application.
Spinner.tsx: A loading spinner component, likely used across the application to indicate loading states.
Tasks Components (Tasks/CheckRequirements.tsx, Tasks/IMWPR.tsx, etc.): These components seem to be task-related, handling specific functionalities like checking requirements, summarizing inspections, and other task-oriented actions.
Nav.tsx and ReschedulingRequest.tsx: Components that likely handle navigation and rescheduling requests within the application.
The components are designed to modularize the functionality and user interface of the application, making it easier to manage and reuse code across different parts of the project.
The GitHub repository https://github.com/KobeSergio/PRC-IaM-RO includes the source code, configuration files, and documentation. Here's a breakdown of some key files and directories:
Build Files:
package.jsonandpackage-lock.json: Define dependencies and project metadata.tsconfig.json: Configuration for TypeScript.
Configuration Files:
.env: Contains environment variables..eslintrc.json: Configuration for ESLint, a static code analysis tool.next.config.js,postcss.config.js,tailwind.config.js: Configuration files for Next.js, PostCSS, and Tailwind CSS respectively.
Styles and Assets:
styles/: CSS files for styling the application.public/assets/: Contains images and icons used in the app.
App Directory: The /app directory of the "PRC-IaM-RO" repository contains several subdirectories and files, each serving a specific purpose in the application:
Dashboard (/app/dashboard):
layout.tsx: Defines the layout for the dashboard, including session checks and styling.loading.tsx: A loading component displayed during data fetching or processing.page.tsx: The main page for the dashboard, featuring UI elements like a sidebar, charts, and a filter modal.
Inspection Calendar (/app/inspection-calendar):
layout.tsx: Similar to the dashboard layout, it sets up the layout for the inspection calendar section.loading.tsx: A loading component for the inspection calendar.page.tsx: The main page for the inspection calendar, incorporating a full calendar view, filtering options, and various UI components.
Inspection (/app/inspection):
[id]/page.tsx: A dynamic route handling individual inspection details. It includes various UI components like modals for cancellation, rescheduling, and task-specific actions.layout.tsx: Sets up the layout for the inspection pages.
Logs (/app/logs):
layout.tsx: Defines the layout for the logs section.loading.tsx: A loading screen for the logs section.page.tsx: The main page for logs, likely displaying logs related data (the content of this file wasn't returned in the query).
Root Layout (app/layout.tsx):
Likely defines the root layout structure for the application, incorporating elements like navigation, footer, and global styles.
Main Entry (app/page.tsx):
Serves as the entry point for the application, likely handling the initial routing and rendering of the main content.
Components Directory: The components directory of the "PRC-IaM-RO" repository contains various React components used throughout the application:
Breadcrumbs.tsx: Implements a breadcrumb navigation system, displaying the user's current location within the application and allowing easy navigation to previous pages.Footer.tsx: Defines the footer of the application, including copyright information and social media links.IMWPR Components (IMWPR/Sections.tsx, IMWPR/Summary.tsx): These components are related to the Inspection and Monitoring Work Program and Report (IMWPR) section. They handle displaying sections and summaries of the IMWPR.InspectionSummary Components (InspectionSummary/IMATVS/IMAT.tsx, InspectionSummary/IMWPR/IMWPR.tsx, etc.): These components are used in the inspection summary section of the application, providing detailed views and summaries of various inspections.Modals (AddNewInspection.tsx, CancellationRequest.tsx, etc.): A collection of modal components used for different purposes like adding new inspections, handling cancellation requests, and other interactive user dialogs.Sidebar.tsx: Defines the sidebar component, which is likely used for navigation within the application.Spinner.tsx: A loading spinner component, likely used across the application to indicate loading states.Tasks Components (Tasks/CheckRequirements.tsx, Tasks/IMWPR.tsx, etc.): These components seem to be task-related, handling specific functionalities like checking requirements, summarizing inspections, and other task-oriented actions.Nav.tsxandReschedulingRequest.tsx: Components that likely handle navigation and rescheduling requests within the application.
The GitHub repository PRC-IaM-ACD includes the source code, configuration files, and documentation for the application. Here's a breakdown of some key files and directories:
Build Files:
package.jsonandpackage-lock.json: Define dependencies and project metadata.tsconfig.json: Configuration for TypeScript.
Configuration Files:
.env: Contains environment variables..eslintrc.json: Configuration for ESLint, a static code analysis tool.next.config.js,postcss.config.js,tailwind.config.js: Configuration files for Next.js, PostCSS, and Tailwind CSS respectively.
Styles and Assets:
styles/: CSS files for styling the application.public/assets/: Contains images, icons, and PDF documents used in the app.
App Directory: The /app directory of the "PRC-IaM-ACD" repository contains several subdirectories and files, each serving a specific purpose:
Dashboard (/app/dashboard):
layout.tsx: Defines the layout for the dashboard, including session checks and styling.loading.tsx: A loading component displayed during data fetching or processing.page.tsx: The main page for the dashboard, featuring UI elements like a sidebar, charts, and a filter modal.
Inspection Calendar (/app/inspection-calendar):
layout.tsx: Similar to the dashboard layout, it sets up the layout for the inspection calendar section.loading.tsx: A loading component for the inspection calendar.page.tsx: The main page for the inspection calendar, incorporating a full calendar view, filtering options, and various UI components.
Inspection (/app/inspection):
[id]/page.tsx: A dynamic route handling individual inspection details. It includes various UI components like modals for cancellation, rescheduling, and task-specific actions.layout.tsx: Sets up the layout for the inspection pages.
Logs (/app/logs):
layout.tsx: Defines the layout for the logs section.loading.tsx: A loading screen for the logs section.page.tsx: The main page for logs, likely displaying logs related data.
Accounts (/app/accounts):
layout.tsx: Defines the layout for the accounts section.loading.tsx: A loading component for the accounts section.page.tsx: The main page for managing accounts.
Root Layout (app/layout.tsx):
Likely defines the root layout structure for the application, incorporating elements like navigation, footer, and global styles.
Main Entry (app/page.tsx):
Serves as the entry point for the application, likely handling the initial routing and rendering of the main content.
Components Directory: The components directory of the "PRC-IaM-ACD" repository contains various React components:
Breadcrumbs.tsx: Implements a breadcrumb navigation system.Footer.tsx: Defines the footer of the application.IMWPR Components (IMWPR/Sections.tsx, IMWPR/Summary.tsx): Related to the Inspection and Monitoring Work Program and Report (IMWPR) section.InspectionSummary Components (InspectionSummary/IMATVS/IMAT.tsx, InspectionSummary/IMWPR/IMWPR.tsx, etc.): Used in the inspection summary section of the application.Modals (AddNewAccount.tsx, DeleteAccount.tsx, ManageAccount.tsx, etc.): Modal components used for various purposes like managing accounts, editing inspections, and filtering options.Tasks Components (Tasks/COCUpload.tsx, Tasks/InspectionCancellation.tsx, etc.): Task-related components for functionalities like uploading certificates of compliance, handling inspection cancellations, and more.Nav.tsx,Sidebar.tsx,Spinner.tsx,ReschedulingRequest.tsx: Components for navigation, sidebar, loading indication, and handling rescheduling requests.
The repository is structured to modularize the application's functionality and user interface, facilitating easier management and code reuse.
The GitHub repository PRC-IaM-OC includes the source code, configuration files, and documentation for the application. Here's a breakdown of some key files and directories:
Build Files:
package.jsonandpackage-lock.json: Define dependencies and project metadata.tsconfig.json: Configuration for TypeScript.
Configuration Files:
.env: Contains environment variables..eslintrc.json: Configuration for ESLint, a static code analysis tool.next.config.js,postcss.config.js,tailwind.config.js: Configuration files for Next.js, PostCSS, and Tailwind CSS respectively.
Styles and Assets:
styles/: CSS files for styling the application.public/assets/: Contains images, icons, and other static resources used in the app.
App Directory: The /app directory of the "PRC-IaM-OC" repository contains several subdirectories and files, each serving a specific purpose:
Dashboard (/app/dashboard):
layout.tsx: Defines the layout for the dashboard, including session checks and styling.loading.tsx: A loading component displayed during data fetching or processing.page.tsx: The main page for the dashboard, featuring UI elements like a sidebar, charts, and a filter modal.
Inspection Calendar (/app/inspection-calendar):
layout.tsx: Similar to the dashboard layout, it sets up the layout for the inspection calendar section.loading.tsx: A loading component for the inspection calendar.page.tsx: The main page for the inspection calendar, incorporating a full calendar view, filtering options, and various UI components.
Inspection (/app/inspection):
[id]/page.tsx: A dynamic route handling individual inspection details. It includes various UI components like modals for cancellation, rescheduling, and task-specific actions.layout.tsx: Sets up the layout for the inspection pages.
Logs (/app/logs):
layout.tsx: Defines the layout for the logs section.loading.tsx: A loading screen for the logs section.page.tsx: The main page for logs, likely displaying logs related data.
Root Layout (app/layout.tsx):
Likely defines the root layout structure for the application, incorporating elements like navigation, footer, and global styles.
Main Entry (app/page.tsx):
Serves as the entry point for the application, likely handling the initial routing and rendering of the main content.
Components Directory: The components directory of the "PRC-IaM-OC" repository contains various React components:
Breadcrumbs.tsx: Implements a breadcrumb navigation system.Footer.tsx: Defines the footer of the application.InspectionSummary Components (InspectionSummary/IMATVS/IMAT.tsx, InspectionSummary/IMWPR/IMWPR.tsx, etc.): Used in the inspection summary section of the application.Modals (EditInspection.tsx, FilterModal.tsx, etc.): Modal components used for various purposes like editing inspections, filtering options, and handling regional offices.Tasks Components (Tasks/InspectionApproval.tsx, Tasks/InspectionCancellation.tsx, etc.): Task-related components for functionalities like inspection approval, cancellation, and summarizing inspections.Nav.tsx,Sidebar.tsx,Spinner.tsx: Components for navigation, sidebar, and loading indication.
The repository is structured to modularize the application's functionality and user interface, facilitating easier management and code reuse.
The GitHub repository PRC-IaM-Client includes the source code, configuration files, and documentation for the application. Here's a breakdown of some key files and directories:
Build Files:
package.jsonandpackage-lock.json: Define dependencies and project metadata.tsconfig.json: Configuration for TypeScript.
Configuration Files:
.env: Contains environment variables..eslintrc.json: Configuration for ESLint, a static code analysis tool.next.config.js,postcss.config.js,tailwind.config.js: Configuration files for Next.js, PostCSS, and Tailwind CSS respectively.
Styles and Assets:
styles/: CSS files for styling the application.public/assets/: Contains images, icons, and other static resources used in the app.
App Directory: The /app directory of the "PRC-IaM-Client" repository contains specific subdirectories and files:
NIM (/app/NIM):
[unique_id]/page.tsx: A dynamic route handling specific functionalities, likely related to a feature or module named NIM.
Root Layout (app/layout.tsx):
Defines the root layout structure for the application, incorporating elements like navigation, footer, and global styles.
Main Entry (app/page.tsx):
Serves as the entry point for the application, likely handling the initial routing and rendering of the main content.
Components Directory: The components directory contains various React components:
Dropzone.tsx: Likely a component for handling file uploads or similar drag-and-drop functionalities.Footer.tsx: Defines the footer of the application.Spinner.tsx: A loading spinner component, used to indicate loading states.
Firebase Integration:
lib/firebase.ts: Contains Firebase integration logic, possibly for authentication, database interactions, or other Firebase services.
Utility Scripts:
lib/formatDates.ts: A utility script for date formatting.lib/regional_offices.json: A JSON file containing data about regional offices, potentially used for dropdowns or data displays.
Type Definitions:
types/: TypeScript definitions for various entities like clients, inspections, logs, etc.
The repository is structured to modularize the application's functionality and user interface, facilitating easier management and code reuse
Installation
The project is a Next.js application, bootstrapped with create-next-app.
For more information about Next.js, refer to the Next.js Documentation and the interactive Learn Next.js tutorial.
To install packages use one of the following commands in your terminal:
To run the development server, use one of the following commands in your terminal:
Once the development server is running, open http://localhost:3000 in your browser to view the application.
Editing and Development
You can start editing the application by modifying
app/page.tsx. The page auto-updates as you edit the file.The project uses
next/fontfor font optimization.
Deployment
For deployment, the Vercel Platform was used. Detailed deployment instructions are available in the Next.js deployment documentation.
Last updated