Commit Graph

17 Commits

Author SHA1 Message Date
vamsi.balaga
b8f50efaf0 fix: tidy the Employees list columns and export
- Show "Joined <date>" as the main text in the Date column, with the
  employee type below it (was the other way around)
- Hide the raw status column from the list; the Employment badge
  already shows Active / Inactive
- Drop the duplicate status column from the employee Excel export

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-11-02 16:34:11 +05:30
vamsi.balaga
5dead10c22 feat: add Export button to the Assets and Employees lists
Downloads every row (all pages) through Zino's record view export
endpoint, using the same columns the Zino screens export. If the server
emails the file instead of returning it, a notice says where it will go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 16:25:25 +05:30
vamsi.balaga
97dc3b6286 fix: show Asset Brand and Location first on the Add Asset form
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 12:31:39 +05:30
vamsi.balaga
c4ccdbf7d3 fix: pre-fill the Edit Asset form with the asset's values
- Look up each Edit value under every key the details page reads, and
  fill the asset's Add Asset values from the INIT record view (asset
  table, de18263e-…), matched by Asset ID, serial number or identifier.
  Edited values still win.
- Match select values by value or label in any case or spacing, also
  against the builder's options; read dates and formatted costs into
  what the inputs hold; pick Asset Owner by name when there's no id.
- Take activity select options from the builder; show which asset each
  assignment and return row is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:44:53 +05:30
vamsi.balaga
c0749f50e4 fix: show Update values on the employee details page
The Update activity maps its fields into the employees table, but the
detail view and workflow record view return only the INIT values, so the
details page showed old data after an Update. Read the employee's table
row and use its values for the Update fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 19:38:01 +05:30
vamsi.balaga
5b55bd267b fix: build files into static/ so /assets reloads
The /assets route shared its URL with Vite's assets/ build folder, so
nginx found a real folder with no index.html and answered 403 on reload
or a direct link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:59:28 +05:30
vamsi.balaga
0d2e7585b8 Revert "fix: allow Edit only on Available assets"
This reverts commit 72cdae3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:57:57 +05:30
vamsi.balaga
72cdae3d1c fix: allow Edit only on Available assets
The builder only allows the Asset details activity in Available, so the
runtime rejected Edit in Assigned and Under Repair. Disable the button
outside Available with a hint to return the asset first, and keep the
closed-asset notice keyed to the open states.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:53:44 +05:30
vamsi.balaga
96718d173c fix: leave Assigned by out of the Assign form
field_5 is a select in the builder and the runtime rejects any value not
in its options, so sending employee names failed with "Assigned by must be
one of the listed options". Drop it from the form, as Reassign already does
for field_11, until the builder field is changed to text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:37:07 +05:30
vamsi.balaga
1004ad4895 feat: workflow-backed asset lists with employee names and assigned-by
- Read assets, assignments and returns from their asset workflow record views
- Show employee names instead of raw lookup ids in the activity lists, and
  fall back to the assignee's department when none was picked
- Merge derived activity columns into the view's matching columns instead of
  showing them twice
- Offer active employees for "Assigned by" and default it to the signed-in user
- Edit activity uploads photos and pre-fills saved ones

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 12:38:02 +05:30
vamsi.balaga
d9f614857a feat: asset edit, repair flow, return photos and new INIT fields
- Return activity: "Return images" photo field (Front/Back/Screen/Keyboard
  + Other) uploaded via /upload, and a "Received by" dropdown
  (Praveen, Akshay, Prasad)
- Add Asset (INIT): "Monthly allowance" and "Repair status" fields
- Edit Asset activity: updates location, state, priority, condition,
  repair status, allowance and warranty; pre-filled from current values,
  and edited values replace INIT values in the list and detail page
- Repair flow: new "Under Repair" state with Send for Repair and
  Repair Completed activities, a Repair card, history events and filters,
  and an Under repair tile and chart color on the dashboard
- Activity list rows open the asset by assetRowId

New builder field and activity ids are placeholders (marked PLACEHOLDER
in api/assets.js) until they are created in the Zino builder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 15:04:24 +05:30
vamsi.balaga
f845af5125 feat: asset table view, file uploads, rich list columns and label cleanup
Assets
- Read assets from the asset table record view (de18263e-…), keyed by
  _pk_value; rows open by assetRowId and the list sorts newest first.
- Update INIT fields to the builder: Asset Details (was Category), Asset
  State/Priority/Classification options, warranty fields, Brand, ID,
  Location, and the images field (field_53); Asset Owner is field_51.
- Upload photos and an Invoice document before the activity runs, and
  send the returned file objects. The Invoice field id is a placeholder
  until the field exists in the builder.
- Show every Add Asset field as a list and details column, with option
  labels, and group related columns into rich cells.
- Use the INIT activity's detail view template (a573754f-…).
- Drop Assigned by, Condition and Type from the reassign, return and
  lost forms; add Lost manager name options.

Employees
- Department is a select from DEPARTMENTS; more employee types; status
  removed from the forms; rich columns in the employee list.

Shared
- apiFetch sends FormData bodies as multipart.
- Default workflow host is dev-apps.getzino.in.
- displayLabel() for readable field labels; Raw response panels removed.
- useRecordView accepts an initial sort.
- Temporary dev proxy in vite.config.js for rv-screens lookups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 11:32:19 +05:30
frontgen
48b8f05204 fix: relative base + runtime config for frontgen placement 2026-09-30 11:10:35 +00:00
jayanth
e9478838d4 Replace starter with office asset management app 2026-09-30 16:14:23 +05:30
jayanth
b67b6783cd Replace starter with office asset management app 2026-09-30 16:11:06 +05:30
frontgen
d2d3a12e92 chore: initial scaffold 2026-09-30 09:48:01 +00:00
ebcc0486df Initial commit 2026-09-30 09:46:57 +00:00