Components Import & Export

JSON Import & Export

  1. Added JSON import for all component types (cards, tokens, dice, boards, packaging, rulebooks, spinners, other)
  2. Added JSON export — downloads current components as a structured JSON array
  3. Added JSON template download — empty array with one example object showing all valid fields
  4. Import mode toggle now offers three options: Upload CSV, Upload JSON, Google Sheets


Import UX Overhaul

  1. CSV and JSON file imports now use a two-step pick-and-confirm flow:
  2. Step 1: Dashed "Choose file…" picker — no submit button until a file is selected
  3. Step 2: After selecting a file, a confirmation panel replaces the picker showing the filename, file size, and an amber warning that existing rows will be updated and new rows will be created
  4. The ✕ button lets you deselect and choose a different file before committing
  5. The submit button shows a spinner and changes to "Importing…" while the request is in flight, preventing double-submits
  6. After a successful import, the page redirects to the #components section and displays a green success banner reporting how many rows were created and updated (e.g. "Import complete: 5 created, 2 updated.")
  7. Inline validation errors for csv_file, json_file, and sheets_url now display directly in the import panel in red


Field Reference

  1. Updated all image fields (image_url, back_image_url, die_face_urls, and the spinner image_url per section) to note that they accept either a full https:// URL or a relative storage path (e.g. images/card.png)
  2. Added an amber info banner at the top of the field reference table explaining that relative paths are resolved against your DDD hosted storage and replaced with the public URL on import


My Files -> Copy Path

  1. Added a "Copy Path" button to the file hover overlay in My Files (both the global and project-scoped views)
  2. Copies the relative path from your storage root (e.g. images/card.webp) — ready to paste directly into any image field during CSV/JSON import