This is a minimal, production-grade React + TypeScript + MUI application that implements the first module of the SELJI workflow engine: an ASIN & AAID extractor tailored to the HTML produced by your SELJI product editor.
- Node.js (latest LTS recommended)
- React 18
- TypeScript
- Vite
- Material UI (
@mui/material,@mui/icons-material) - Emotion (
@emotion/react,@emotion/styled)
- Paste raw HTML from your editor (including the
button.input.tocopynodes). - Extract
ASINandIDpairs based on:data-prefix="ASIN"anddata-prefix="ID"buttons- Primary strategy: per product tile container (
.product_tile_editorbar,.product_tile, etc.) - Fallback strategy: global index-based pairing of ASIN and ID buttons
- Outputs:
aaid.txtformat:ASIN=AAID(one per line)asin.txtformat: comma-separated ASIN list
- Copy-to-clipboard and download buttons for both outputs
- MUI-based tab layout to host multiple workflow modules over time
# Install dependencies
npm install
# Start dev server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewThen open the printed local URL in your browser (default is http://localhost:5173).
src/main.tsx– App bootstrap and MUI theme wiring.src/App.tsx– Global layout, app bar, and workflow tabs.src/components/AsinAaidExtractor.tsx– Core extraction module.
To add more workflow steps/tabs:
- Create a new component under
src/components, e.g.MyNewModule.tsx. - Import it into
App.tsx. - Add a new
<Tab />and corresponding<TabPanel>entry.
The ASIN & AAID extractor is intentionally self-contained and can be lifted as a reusable module in a larger SELJI orchestration context (desktop app, Electron shell, etc.).