Track item updatedBy as readonly metadata and inspect field

This commit is contained in:
Jage9
2026-02-27 02:27:16 -05:00
parent ac88195c6e
commit 4fcd006856
12 changed files with 35 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
// Maintainer-controlled web client version.
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
window.CHGRID_WEB_VERSION = "2026.02.27 R281";
window.CHGRID_WEB_VERSION = "2026.02.27 R282";
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
window.CHGRID_TIME_ZONE = "America/Detroit";

View File

@@ -184,6 +184,7 @@ export function getInspectItemPropertyKeys(item: WorldItem): string[] {
'carrierId',
'version',
'createdBy',
'updatedBy',
'createdAt',
'updatedAt',
'capabilities',

View File

@@ -7,6 +7,7 @@ export const itemSchema = z.object({
x: z.number().int(),
y: z.number().int(),
createdBy: z.string(),
updatedBy: z.string(),
createdAt: z.number().int(),
updatedAt: z.number().int(),
version: z.number().int(),

View File

@@ -11,6 +11,7 @@ export type WorldItem = {
x: number;
y: number;
createdBy: string;
updatedBy: string;
createdAt: number;
updatedAt: number;
version: number;