EmilySun621 opened a new pull request, #5113: URL: https://github.com/apache/texera/pull/5113
Discover, fork, and share data science workflows. A community-powered gallery where researchers publish their workflows and others can learn from, star, and fork them — like GitHub for data science pipelines. ## The Problem A new student joins Dr. Sarah's lab. She needs to build a diabetes prediction pipeline but has no idea where to start. There's no way to discover and reuse other people's workflows in Texera today. ## The Solution Workflow Hub — a browsable, searchable gallery of community workflows. Star your favorites, fork them into your workspace, publish your own. ## What's New ### Hub List Page (Sidebar → Hub → Workflow Hub) - Full-text search by name, tag, or description - Category filters: Biomedical, NLP, CV, Finance, EDA, Education, Tabular - Sort by: Trending, Most Stars, Most Forks, Recent - Featured workflows highlighted in a 3-column grid with DAG preview - Workflows generated by custom agents show an agent badge ### Workflow Detail Page - Author avatar, name, publish date - Full description - DAG preview showing operators as connected boxes - Tags - Fork button, Star toggle, stats panel (stars, forks, views, operators) - Agent config card with "Import Agent Config" button (when applicable) ### Fork — One-Click Reuse Click Fork → new workflow created as "[Fork] Original Title" → opens in workspace with all operators pre-configured → user adds their own data and runs. Fork creates a real workflow in Texera's backend, not a localStorage copy. ### Star — Save Favorites Toggle star on any workflow. Star count updates instantly. Persists across sessions. ### Publish — Share Your Work Click "Publish Workflow" on the Hub page → select one of your saved workflows → add title, description, category, tags → operators auto-extracted from workflow content → published workflow appears in the Hub for everyone. ### 15 Seed Workflows — Never Empty The Hub ships with curated community workflows: Biomedical: Diabetes Prediction (CRISP-DM), Heart Disease, Breast Cancer, COVID-19 Clinical Trials NLP: Sentiment Analysis, News Topic Classification Finance: Credit Card Fraud, Stock Price Regression CV: MNIST Digits EDA: Movie Recommendation EDA, Air Quality Education: UCI Iris Beginner, Titanic Survival, Wine Quality Tabular: Census Income Prediction Each seed includes title, author, description, category, tags, operator list, and star/fork/view counts. ## Demo Flow 1. Sidebar → "Workflow Hub" → 15 community workflows 2. Filter "Biomedical" → see diabetes, heart disease, cancer workflows 3. Click "Diabetes Prediction (CRISP-DM)" 4. See description, DAG preview, 142 stars, 38 forks 5. Click "Fork to My Workflows" 6. "[Fork] Diabetes Prediction" opens in workspace with operators 7. Configure CSV source with your own data → Run 8. Click "Publish Workflow" → share your own workflow back to the Hub <img width="1558" height="886" alt="Screenshot 2026-05-16 at 12 15 24 PM" src="https://github.com/user-attachments/assets/012d4464-5b60-4c16-b607-d53f89fb703a" /> <img width="1312" height="639" alt="Screenshot 2026-05-16 at 12 15 29 PM" src="https://github.com/user-attachments/assets/cdb3b817-32f4-4f96-a06d-2c8401e3fecd" /> <img width="1366" height="894" alt="Screenshot 2026-05-16 at 12 15 39 PM" src="https://github.com/user-attachments/assets/a219bf23-0611-4345-8627-1438483da4f7" /> <img width="634" height="537" alt="Screenshot 2026-05-16 at 12 16 08 PM" src="https://github.com/user-attachments/assets/78ede57c-3ca5-47ce-9767-130eb1cc7428" /> ## Files Changed New files: - dashboard/component/user/workflow-hub/workflow-hub-list/ — Hub list page with search, sort, categories, cards - dashboard/component/user/workflow-hub/workflow-hub-detail/ — Detail page with DAG preview, fork, star, stats - dashboard/component/user/workflow-hub/workflow-hub-publish-dialog/ — Publish modal - dashboard/service/workflow-hub/workflow-hub.service.ts — Service with seed data, localStorage CRUD, star/fork logic Modified files (additive only): - app-routing.module.ts — 2 new routes - app-routing.constant.ts — route constants - dashboard.component.html/ts — "Workflow Hub" sidebar link ## Testing - Angular typecheck: clean - Seed data renders on first visit - Search filters by name/tag/description - Category chips filter correctly - Sort works (trending/stars/forks/recent) - Star toggle persists - Fork creates real workflow in backend - Forked workflow opens in editor with operators - Publish extracts operators from workflow content -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
