Skip to content
Forje— home

HOCCAPITAL A.M.S

A data-aware operations interface for portfolio clarity, location governance, and faster asset actions.

Client
HOCCAPITAL
Users
Admins, managers, and staff
Scope
Asset register, lifecycle, QR labels, maintenance, audit trail, reports
Year
2026
  1. 01

    In Stock

    On the shelf and ready to issue.

    Available · Defective · Pending Disposal · Pending Repair · Reserved

  2. 02

    In Use

    With a named holder.

    Shared · Pending Return · On Loan

  3. 03

    In Maintenance

    With a technician or a vendor.

  4. 04

    Damaged

    Waiting for a repair or retirement decision.

  5. 05

    Missing

    Not where the record says it is.

    Stolen

  6. 06

    Retired

    Out of service, record kept.

    Disposed · Sold · Wrongly created

The problem and the role

HOC Capital Club had no single source of truth for its physical assets.

The register lived in Excel, and it began as a fixed asset workbook. Same-model items sat with no photos, and nobody could say where an item was, who held it or what it was worth now.

Sole designer and builder.

Forje was the sole designer and builder: product design, the data model, the permissions system and the build, plus the asset intake itself.

Intake came from room walkthrough videos. Forje ingested the extracted register into A.M.S.

How it was built

  1. Started from the Excel register, then designed the asset lifecycle from In Stock to Retired.

    [ 02 ]
  2. Added QR tags and labels so every physical item maps to a record.

    [ 04 ]
  3. Built a permissions system so each role sees and does only what it should.

    [ 05 ]
  4. Built an audit trail and a depreciation calculator.

    [ 07 ]
  5. Built bulk import from a single 18-column Excel template.

    [ 02 ]
  6. Built bulk photo assignment, because per-asset upload across hundreds of items was too tedious. Image rules are keyed on model and location, and the most specific rule wins.

    [ 03 ]
  7. Made same-type assets share an identical name, so the system can group them for bulk photo uploads.

    [ 03 ]

From workbook to register

Stage 1 of 6, In Stock

Intake came first. Room walkthrough videos supplied the items, and the extracted register went into A.M.S through one Excel template with 18 columns, from name and model to depreciation method.

asset-import-template.xlsx

18 columns

  • name (required)
  • model
  • fixed_asset_number
  • category
  • serial_number
  • description
  • purchase_date
  • purchase_cost
  • vendor
  • location
  • status
  • substate
  • condition
  • assigned_to
  • department
  • useful_life_years
  • salvage_value
  • depreciation_method

name is the only required column. A blank category becomes Other.

Seven rows of an import file and what the import does with each
Rownamemodelserial_numberlocationResult
1Laptop, 14-inchStandard 14SN-LT-1001Store roomNew asset
2Laptop, 14-inchStandard 14SN-LT-1002Store roomNew asset
3Monitor, 27-inchView 27SN-MN-2001Floor 2, Office BNew asset, In Use: a holder is named
4Office chairMesh 5blankblankUpdates the asset with this tag. Blank cells keep their values
5ProjectorBeam 3SN-PJ-3001Meeting room 1New asset
6RouterMesh 6SN-RT-4001Server cupboardHeld back: serial appears on more than one row
7RouterMesh 6SN-RT-4001Floor 2, Office BHeld back: serial appears on more than one row
Sample data. The columns are the product's own; the rows are invented.

Three rules protect the register while it fills

  • Matches are checked on every identifier

    Each row is compared with the register by UUID, asset tag, fixed asset number and serial. A row that matches one asset updates it instead of creating a second copy.

  • Ambiguous rows are held back

    If identifiers point at two different assets, or repeat inside the file, the row is flagged with the reason and never imported.

  • Blank cells keep what is there

    Only columns that carry a value are written. An empty cell never wipes a field on an asset that already exists.

One name for one kind of thing

Same-type assets carry the same name. The register groups assets by model and falls back to the name when there is no model, so identical names are what let one photo reach the whole group.

Photos at scale

Stage 1 of 6, In Stock

A photo for every asset does not survive hundreds of items. A.M.S sets photos by rule instead.

  • A rule names a model and, optionally, a location. Every asset that matches takes the rule's photo.
  • When two rules match, the most specific wins: a location rule beats the model-wide default.
  • Rules are archived, never destroyed. A merge, a group delete or a manual remove can be undone.

Chairs in Room A: no photo. Chairs in Room B: no photo. Lamps: no rule, so no photo.

  • No photo

    Chair 1

    Room A · no rule

  • No photo

    Chair 2

    Room A · no rule

  • No photo

    Chair 3

    Room A · no rule

  • No photo

    Chair 4

    Room B · no rule

  • No photo

    Chair 5

    Room B · no rule

  • No photo

    Lamp 1

    Room A · no rule

  • No photo

    Lamp 2

    Room A · no rule

Rules

None yet. Every asset is waiting for a photo.

Set the model photo, give Room B its own, then replace the model photo. Room B keeps its picture.

Holders and tags

Stage 2 of 6, In Use

An asset in use has a holder, the date it went out, the date it is due back, and a condition recorded at both ends. The holder signs for it by typing their name and confirming. An unsigned assignment and an overdue return each raise an alert.

Anyone can ask for an asset to move to someone else, with a reason. An admin or manager approves or rejects the request with a note, and the move writes itself into the audit trail.

Assignment

Laptop, 14-inch, held by Sam Reyes

Assigned on
2026-06-02
Due back
2026-12-02
Condition out
Good
Condition back
Recorded on return

Receipt signedSam Reyes · 2026-06-02

Label sheet

A4, three across

  • A.M.S

    Laptop, 14-inch

    Laptops

    HCP-LAP-4M7Z0QK2

  • A.M.S

    Monitor, 27-inch

    Monitors

    HCP-MON-9C3T5B1R

  • A.M.S

    Office chair

    Chairs

    HCP-CHR-2H8W6D4P

Sample data. The codes are pictures of codes and do not scan.

Two numbers and a label

HCP-LAP-4M7Z0QK2
HCP, the first three letters of the category, then eight characters drawn from the clock and a random number. A blank category becomes AST.
HOC-FA-0042
Counts up from a database sequence and fills itself in whenever the field is blank. No two assets can share one.

A label sheet prints three to a row on A4, each with the asset's name, category and tag beside a QR code that opens the asset's page. The register builds the codes in the browser, so printing needs no network.

Asking to move an asset

  1. A member asks

    They name the asset, the person who should hold it, and why.

  2. A manager or admin decides

    Approve or reject, with a note. Only a manager or admin can resolve the request.

  3. The database makes the move

    Approval sets the new holder and the In Use state in one step, and the audit trail records a transfer.

Who sees what

Stage 2 of 6, In Use

Three roles share one register. A staff member sees the assets they hold and can report a fault on them. A manager works the whole register, or only their own departments when an admin scopes them. An admin also owns people, departments, approvals and keys.

The sidebar and the database agree. Each page declares who may open it, and row-level security applies the same rule to the data, so a hidden button is not the only guard.

View as

Staff capabilities

  • Can: See the assets they hold
  • Cannot: See every asset in their remit
  • Cannot: Add, edit and import assets, and set photo rules
  • Can: Report a fault on an asset they hold
  • Cannot: Log repairs, schedules, parts and vendors
  • Can: Ask for an asset to move to someone else
  • Cannot: Open the Users page
  • Cannot: Open the Approvals page
  • Cannot: Invite people, change roles, edit departments
  • Cannot: Issue API keys and webhooks
Sample data. The pages and rules are the product's; nothing here reads a real account.

Each row is a rule in the code: the page list, a row-level security policy, or a server check, so it holds even if a screen forgets to hide a control.

Repairs with a clock

Stage 3 of 6, In Maintenance

A fault report becomes a maintenance record with a target date set by its priority: urgent in 1 day, high in 3 days, normal in 7 days, low in 14 days. The database sets the target date when a record is saved, so the maintenance page, the asset page and the stat strip all read the same answer.

Recurring work has a schedule: a service every set number of days, 90 by default. Completing one moves the next due date forward by that interval. Parts live in a catalogue with a unit cost and a reorder level, and the parts page flags any part at or below it.

Priority

Target

Due on day 7

Due soon, 2 days left.

Sample data. Day 0 is the day the fault is reported.

The ledger

Stage 4 of 6, Damaged

An asset marked Damaged or Missing stays in the register with its history. Missing can carry a substate such as Stolen, and an alert goes to the people who can act on it.

Every change to an asset writes a row to the audit log. Each entry stores who made the change and when, and copies the asset's tag, name and serial beside it. The log has no foreign key to the asset, so the history of a deleted asset stays readable.

HCP-LAP-4M7Z0QK2

asset_audit_log

Every change to the sample asset, oldest first, with the old and new values
WhenActionChangeBy
2026-05-14 09:12created
  • status set to available
Alex Moreau
2026-05-14 09:40updated
  • image_url set to model photo
Alex Moreau
2026-06-02 10:05status_changed
  • status available to assigned
  • assigned_to set to Sam Reyes
Priya Nandi
2026-07-21 14:30transferred
  • assigned_to Sam Reyes to Jo Whitfield
Alex Moreau
2026-08-18 11:02status_changed
  • status assigned to under_repair
Priya Nandi
2026-09-04 16:45status_changed
  • status under_repair to damaged
Priya Nandi
2026-09-22 08:20status_changed
  • status damaged to retired
  • substate set to Disposed
Alex Moreau
Sample data. Seven entries, written by the database as the asset moved through its life.

Five kinds of entry

created
A new asset, with its first values.
status_changed
The state moved; old and new values are kept.
transferred
The holder changed and the state did not.
updated
Any other field changed.
deleted
The asset was removed; its last values are kept.

Eight alerts

  • Overdue return
  • Waiting for acknowledgement
  • Repair open
  • Maintenance due
  • Low availability
  • Ageing
  • Damaged
  • Reassignment pending

What it is worth now

Stage 6 of 6, Retired

Retirement closes a record without removing it. The substate says how: Disposed, Sold or Wrongly created. The history stays.

Book value comes from the asset's cost, purchase date, useful life and salvage value. The register offers three methods, and the depreciation schedule is one of eight reports.

The same amount each year: cost minus salvage, divided by useful life.

Book value now
₦487,200
Depreciated so far
₦712,800
Share of cost left
41%
₦0₦600k₦1.2M01234years ownedStraight lineDeclining balanceSum of the years' digits
Book value at the end of each year under straight line
YearBook valueDepreciated
0₦1,200,000₦0
1₦930,000₦270,000
2₦660,000₦540,000
3₦390,000₦810,000
4₦120,000₦1,080,000
Sample figures. The three methods and their formulas are the product's.

Eight reports

  • All assets
  • By department
  • Assigned assets
  • Repairs
  • Lost / damaged
  • Valuation
  • Category × location
  • Depreciation schedule

Each report exports to CSV or prints to PDF.

What an admin works with

HoccaAsset Hub is an asset intelligence system for HOCCAPITAL, bringing portfolio overview, location-based filtering, data health, and instant command actions into one operational workspace.

The new A.M.S direction reframes asset management as portfolio intelligence. Instead of only showing records, the system reads the health of the operation: missing purchase costs, photo gaps, category distribution, and status mix.

The interface now supports location-led governance and faster action. Teams can review floors and zones, view assets by location, rename messy entries, merge duplicates, clean up records, import/export data, add assets, scan tags, and jump through the product with a Command K palette built for daily operations.

  • Portfolio intelligence for the whole register

    A.M.S now opens around a portfolio overview that turns the register into an operational readout: availability, assignment utilization, book-value readiness, data health, category distribution, and status mix.

    • Import, export, and add-asset actions are available from the dashboard
    • Data-health gaps expose missing costs and photos before reporting breaks
    • Category and status breakdowns help leaders see portfolio shape quickly
  • Asset locations that act like operational filters

    The locations view groups the portfolio by physical site and floor so teams can inspect every space with category counts and portfolio-value context.

    • View assets opens a filtered register for that location
    • Rename and merge reduce duplicate site names and messy records
    • Delete-all controls support careful cleanup for full locations
  • Critical actions in a second

    The Cmd/Ctrl+K palette gives admins a fast operating layer for searching assets, jumping to pages, adding an asset, scanning an asset tag, or signing out without digging through navigation.

    • Asset search uses the same register data
    • Quick actions cover add asset, scan asset tag, and sign out
    • Navigation is grouped into Operations, Intelligence, and Administration
  • A React and Supabase foundation for real operations

    The product is built as a functional internal system, not a static mockup, with authenticated roles, protected routes, Supabase-backed asset records, audit activity, reports, notifications, QR workflows, and responsive enterprise UI.

    • Admin, manager, and staff roles shape visible actions
    • Asset lifecycle workflows cover assignment, maintenance, reporting, and approvals
    • Designed to keep data quality and daily operations connected

Under the hood

  1. Browser

    React 19 with TanStack Router and Query. The register is cached in the browser, so search and filters answer at once. Offline, single-field edits queue and replay when the connection returns.

    Server functions carry the member's session token.

  2. Server

    TanStack Start server functions on Cloudflare Workers. They do what a browser must not: send invitations, issue API keys, run webhooks and write the short summary on the Insights page. Several are rate limited.

    The server's own connection is used only on the server.

  3. Data

    Supabase: Postgres with row-level security, Auth and file storage for photos. The rules that matter most live here, as triggers and policies.

Most reads and writes go from the browser straight to the database, under row-level security. Admins get an instant alert over Realtime when a reassignment request arrives.

Rules the database keeps

  • Audit trigger

    Every insert, update and delete on an asset writes a row to the audit log.

  • Fixed asset numbers

    A sequence hands out HOC-FA numbers when the field is blank.

  • Due dates

    A trigger sets a repair's target date from its priority.

  • Department access

    One function decides whether a manager may see an asset, an assignment or a repair.

  • Photo precedence

    Functions resolve and apply image rules, most specific first.

  • Typo-tolerant search

    A trigram function finds assets by approximate name, tag or model.

The tables

Register

  • assets

    One row per physical item.

  • models

    Manufacturer and category.

  • locations

    Rooms and sites.

  • departments

    Who owns what.

People

  • profiles

    Name, email, department.

  • user_roles

    admin, manager or staff.

  • manager_departments

    Opt-in manager scope.

Movement

  • assignments

    Holder, dates, conditions, signature.

  • custodian_requests

    Asks to move an asset.

Care

  • maintenance_records

    Faults and repairs, with due dates.

  • maintenance_schedules

    Recurring service.

  • parts

    Catalogue with reorder levels.

  • vendors

    Suppliers and technicians.

Evidence

  • asset_audit_log

    Every change, kept after deletion.

Photos

  • asset_image_rules

    Model and location photo rules.

assets sits in the middle. It belongs to a model, a location and a department, and it can parent other assets, as a kit does. Assignments, custodian requests, repairs and schedules point at it. Photo rules match on model and location. The audit log copies each asset's tag, name and serial and holds no foreign key to the asset, so a deleted asset keeps its history.
Interface
React 19, TanStack Router, TanStack Query, Tailwind CSS 4, Recharts, Radix UI, cmdk
Data and access
Supabase, Postgres, Row-level security, Auth, Storage, Database triggers
Server
TanStack Start, Server functions, Cloudflare Workers
Files and design
Excel import and export, QR codes, Photo cropping, Spectral, Archivo, IBM Plex Mono

Outcome

One system holds the register.

It covers the full asset lifecycle, printable labels and exports, and role-based access.

Lessons

Data hygiene is a design problem.

Identical names for same-type assets is a product rule that came from wanting bulk actions to work.

If an action is tedious, people skip it, so the bulk photo feature exists.

Precedence rules (location overrides model default) stop bulk tools from overwriting careful work.

This case study documents Forje's design and implementation work on A.M.S. HOC Capital Club retains ownership of its systems, data, and marks. The assets, people, photos, and figures shown here are sample data.