Skip to content

Refactor/project datasets split - #4439

Merged
MuhammadKhalilzadeh merged 10 commits into
developfrom
refactor/project-datasets-split
Aug 12, 2026
Merged

Refactor/project datasets split#4439
MuhammadKhalilzadeh merged 10 commits into
developfrom
refactor/project-datasets-split

Conversation

@Innagl

@Innagl Innagl commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Describe your changes

  • Mechanically split the oversized ProjectDatasets page (~3.5k lines) into focused modules under ProjectDatasets/, leaving the parent as composition + hook wiring.
  • No intentional behavior changes — UI, loaders/filters/CRUD, and flows preserved.
  • Parent reduced to ~261 lines.

Write your issue number after "Fixes "

Fixes #4438

Please ensure all items are checked off before requesting a review:

  • I deployed the code locally.
  • I have performed a self-review of my code.
  • I have included the issue # in the PR.
  • I have labelled the PR correctly.
  • The issue I am working on is assigned to me.
  • I have avoided using hardcoded values to ensure scalability and maintain consistency across the application.
  • I have ensured that font sizes, color choices, and other UI elements are referenced from the theme.
  • My pull request is focused and addresses a single, specific feature.
  • If there are UI changes, I have attached a screenshot or video to this PR.
  • If I added or modified an API endpoint, the change is reflected in the generated OpenAPI spec (npm run generate:swagger).
  • If the endpoint requires authentication, it uses authenticateJWT and the generated spec declares bearerAuth security.
  • I ran npm run check:api-drift and committed the regenerated swagger.yaml and endpoints.ts.
  • If this PR adds or modifies an organization-scoped table, the tenant isolation registry and test matrix are updated. See the tenant isolation runbook for details.

Innagl and others added 5 commits August 6, 2026 12:54
Move static download-example JSON into ProjectDatasets/exampleDatasetPayloads.ts so the page stays focused on orchestration.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move the upload instructions modal (turn type, use case, JSON preview, download example) into ProjectDatasets/UploadDatasetModal.tsx.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move the add-dataset choice and format-selection modals into a dedicated
component to continue splitting the oversized ProjectDatasets page.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move read-only My datasets and Templates preview drawers into ProjectDatasets/ with expand state kept on the template drawer.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move DatasetInlineEditor, PromptEditDrawer, MyDatasetsTab, TemplatesTab,
shared types, and dataset loaders/filters/CRUD into ProjectDatasets/,
leaving the parent as composition.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Innagl Innagl added this to the 2.5 milestone Aug 7, 2026
@Innagl Innagl self-assigned this Aug 7, 2026
@Innagl Innagl added the frontend Frontend related tasks/issues label Aug 7, 2026
Innagl and others added 2 commits August 10, 2026 16:32
Force nanoid@3 to 3.3.17 and nanoid@5 to 5.1.16 so the frontend audit gate passes GHSA-28wg-ghj8-5hjv and GHSA-2v37-7h3g-55p8.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

✅ Coverage Gate Passed

All coverage thresholds are met.

Innagl and others added 3 commits August 11, 2026 19:58
Install presidio-anonymizer with --no-deps so E2E can keep cryptography>=50 while Presidio still caps it below 49.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@MuhammadKhalilzadeh
MuhammadKhalilzadeh merged commit a2384e9 into develop Aug 12, 2026
16 checks passed
@MuhammadKhalilzadeh
MuhammadKhalilzadeh deleted the refactor/project-datasets-split branch August 12, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Frontend related tasks/issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor: Split oversized ProjectDatasets page into modular components

2 participants