Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion frontend/.lighthouserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"ci": {
"collect": {
"numberOfRuns": 1,
"url": ["http://localhost:3000/", "http://localhost:3000/verify"]
"url": [
"http://localhost:3000/",
"http://localhost:3000/verify",
"http://localhost:3000/map"
]
},
"assert": {
"assertions": {
Expand Down
23 changes: 5 additions & 18 deletions frontend/components/map/ParcelSidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
"use client";

import React, { useEffect, useRef } from "react";
import type { DocumentStatus, ParcelDocument } from "@/types/parcel";

// ─────────────────────────────────────────────
// Types
// ─────────────────────────────────────────────
export type DocumentStatus = "VERIFIED" | "PENDING" | "FLAGGED" | "REJECTED";

export interface ParcelDocument {
id: string;
name: string;
status: DocumentStatus;
/** 0–100 */
riskScore: number;
ownerName: string | null;
isOwnedByViewer: boolean;
stellarAnchorDate: string | null;
stellarTxHash: string | null;
flags: string[];
detailsUrl: string;
}
// Re-exported for backward compatibility with any existing imports of
// these types from this component file; the canonical definitions now
// live in @/types/parcel.
export type { DocumentStatus, ParcelDocument };

interface ParcelSidebarProps {
document: ParcelDocument | null;
Expand Down
17 changes: 0 additions & 17 deletions frontend/next.config.ts.bak

This file was deleted.

20 changes: 20 additions & 0 deletions frontend/types/parcel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Shared shape for a parcel/document as consumed by the map sidebar
* (ParcelSidebar). Lives here so future consumers import this instead of
* duplicating the shape inline.
*/
export type DocumentStatus = "VERIFIED" | "PENDING" | "FLAGGED" | "REJECTED";

export interface ParcelDocument {
id: string;
name: string;
status: DocumentStatus;
/** 0–100 */
riskScore: number;
ownerName: string | null;
isOwnedByViewer: boolean;
stellarAnchorDate: string | null;
stellarTxHash: string | null;
flags: string[];
detailsUrl: string;
}
Loading