Improve MineGeo exploration and mapping features
This commit is contained in:
@@ -8,6 +8,7 @@ type ReviewMap = {
|
||||
name: string;
|
||||
description: string;
|
||||
state: string;
|
||||
update_state: string | null;
|
||||
source: string;
|
||||
panorama_count: number;
|
||||
map: string | null;
|
||||
@@ -82,6 +83,9 @@ export function Moderation() {
|
||||
{maps.map((m) => (
|
||||
<article className="tool-card" key={m.id}>
|
||||
<span className="badge">{m.state}</span>
|
||||
{m.update_state === "review" && (
|
||||
<span className="badge">Map update awaiting review</span>
|
||||
)}
|
||||
<h2>{m.name}</h2>
|
||||
<p className="muted">
|
||||
{m.source} · {m.panorama_count} locations · {m.description}
|
||||
@@ -109,14 +113,16 @@ export function Moderation() {
|
||||
<button className="button" onClick={() => setPreview(m.id)}>
|
||||
Inspect 360° locations
|
||||
</button>
|
||||
{m.state === "review" ? (
|
||||
{m.state === "review" || m.update_state === "review" ? (
|
||||
<>
|
||||
<button
|
||||
className="button primary"
|
||||
disabled={busy}
|
||||
onClick={() => decide(m.id, "approve")}
|
||||
>
|
||||
Approve map
|
||||
{m.update_state === "review"
|
||||
? "Approve update"
|
||||
: "Approve map"}
|
||||
</button>
|
||||
<button
|
||||
className="button"
|
||||
@@ -126,7 +132,8 @@ export function Moderation() {
|
||||
Return with feedback
|
||||
</button>
|
||||
</>
|
||||
) : (
|
||||
) : null}
|
||||
{m.state === "published" && (
|
||||
<button
|
||||
className="button"
|
||||
disabled={busy}
|
||||
|
||||
Reference in New Issue
Block a user