Skip to content

feat: component code splitting, API batching, bulk operations, and fi… - #1021

Merged
Emmzyemms merged 1 commit into
ANYTECHS:mainfrom
anumukul:feat/performance-batch-bulk-fieldset
Aug 29, 2026
Merged

feat: component code splitting, API batching, bulk operations, and fi…#1021
Emmzyemms merged 1 commit into
ANYTECHS:mainfrom
anumukul:feat/performance-batch-bulk-fieldset

Conversation

@anumukul

Copy link
Copy Markdown

closes #950
closes #951
closes #954
closes #957

Performance & API Enhancements

Changes

1. Component Code Splitting

  • Dynamic imports with ssr: false for KeyboardShortcuts, CookieConsent, ComparisonPlayer, MintConfigForm, ActivityFeed, EarningsTable
  • Extracted ComparisonPlayer into its own component
  • Added usePreloadComponent hook for preloading strategies
  • Loading skeletons for all lazy-loaded components

2. API Request Batching

  • New POST /api/batch — batch up to 20 requests in a single call
  • Parallel dispatch with per-request error isolation
  • Auth, CSRF, and rate limiting enforced

3. Bulk Operations

  • New PATCH /api/clips/bulk?operation=tags — bulk tag set/add/remove
  • New PATCH /api/clips/bulk?operation=status — bulk status update
  • Ownership validation, per-item error reporting, max 100 clips per request

4. Field Selection

  • GET /api/clips and GET /api/projects now support ?fields=id,title,score
  • Default field sets when param is omitted; invalid fields return 400

Files Changed

  • 10 modified, 6 new files
  • All new files pass ESLint with zero errors

…eld selection

- Add dynamic imports for KeyboardShortcuts, CookieConsent, ComparisonPlayer,
  MintConfigForm, ActivityFeed, and EarningsTable with loading states
- Extract ComparisonPlayer from transform page into standalone component
- Add usePreloadComponent hook for component preloading strategies
- Add POST /api/batch endpoint for batching multiple API requests
- Add PATCH /api/clips/bulk endpoint for bulk tag and status updates
- Add bulkUpdateTags and bulkUpdateStatus methods to clipsStore
- Add field selection via ?fields= query param on GET /api/clips and /api/projects
- Add fieldSelection utility with validation and default field sets
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@anumukul Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Emmzyemms
Emmzyemms merged commit 27ce4e2 into ANYTECHS:main Aug 29, 2026
0 of 2 checks passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Aug 29, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add component-level code splitting Implement API request batching Add API bulk operations Implement API field selection

2 participants