Skip to content

feat: dataset import dedup round-trip and prompt import/export#752

Open
LIYUE1918 wants to merge 1 commit into
ConardLi:mainfrom
LIYUE1918:feat/dataset-import-dedup-prompt-export
Open

feat: dataset import dedup round-trip and prompt import/export#752
LIYUE1918 wants to merge 1 commit into
ConardLi:mainfrom
LIYUE1918:feat/dataset-import-dedup-prompt-export

Conversation

@LIYUE1918

Copy link
Copy Markdown

Summary

Dataset Import Improvements

  • Import dedup: Skip/create-update existing datasets by \id, \questionId, or question text to avoid duplicates on re-import
  • Export round-trip: Added _easyDatasetId\ / _easyDatasetQuestionId\ to custom CSV/JSON exports, enabling lossless re-import
  • Field mapping: Auto-skip metadata fields (_easyDatasetId, _easyDatasetQuestionId) during import field auto-detection
  • Import progress: Show separate "created" / "updated" counts in the import progress UI

Prompt Import/Export

  • Export all prompts: New API \GET /api/projects/:id/prompts/export\ and UI button to download all prompt templates + custom overrides as JSON
  • Import prompts: New API \POST /api/projects/:id/prompts/import\ with preview dialog showing what will be imported (merge or replace mode)
  • New \getAllCustomPrompts\ / \clearAllCustomPrompts\ DB functions
  • New \PromptSelector\ component for selecting prompts across categories
  • i18n strings for all 5 locales (en, it, pt-BR, tr, zh-CN)

Fixes

  • ActionBar icon swap: Fixed reversed icons (Import now shows download icon, Export shows upload icon)
@netlify

netlify Bot commented May 31, 2026

Copy link
Copy Markdown

Deploy Preview for gleeful-palmier-13a6af ready!

Name Link
🔨 Latest commit 002f4c3
🔍 Latest deploy log https://app.netlify.com/projects/gleeful-palmier-13a6af/deploys/6a1c19fea58f9700075d270a
😎 Deploy Preview https://deploy-preview-752--gleeful-palmier-13a6af.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@LIYUE1918

Copy link
Copy Markdown
Author
image image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant