Skip to content

refactor: simplify data-layer architecture#17096

Merged
wackerow merged 11 commits into
devfrom
data-layer-refactor
Jan 16, 2026
Merged

refactor: simplify data-layer architecture#17096
wackerow merged 11 commits into
devfrom
data-layer-refactor

Conversation

@pettinarip
Copy link
Copy Markdown
Member

@pettinarip pettinarip commented Jan 16, 2026

Summary

  • Simplifies data-layer from 12+ files to 3 core files (index.ts, storage.ts, tasks.ts)
  • Renames api/ directory to fetchers/ for clarity
  • Uses KEYS object as single source of truth for task IDs
  • Removes redundant registry pattern and complex storage abstractions
  • Updates trigger.dev config to use built-in --env-file flag

Test plan

  • Verify data fetching works in dev mode with mock data
  • Verify data fetching works in production with Netlify Blobs
  • Run type check: pnpm tsc --noEmit

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 16, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 4a18b37
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/696a4364929a0d0008530766
😎 Deploy Preview https://deploy-preview-17096.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 56 (🟢 up 3 from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

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

@github-actions github-actions Bot added config ⚙️ Changes to configuration files dependencies 📦 Changes related to project dependencies labels Jan 16, 2026
Copy link
Copy Markdown
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pettinarip!

@wackerow wackerow merged commit f152b65 into dev Jan 16, 2026
7 checks passed
@wackerow wackerow deleted the data-layer-refactor branch January 16, 2026 21:00
@wackerow wackerow mentioned this pull request Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config ⚙️ Changes to configuration files dependencies 📦 Changes related to project dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants