Skip to content

Fix ESLint config and unblock production build#1

Open
Dawittekle wants to merge 4 commits intoiCog-Labs-Dev:mainfrom
Dawittekle:fix/build-failure
Open

Fix ESLint config and unblock production build#1
Dawittekle wants to merge 4 commits intoiCog-Labs-Dev:mainfrom
Dawittekle:fix/build-failure

Conversation

@Dawittekle
Copy link
Copy Markdown

Summary

This PR restores a working lint/build pipeline for the frontend.

What changed

  • fixed the flat ESLint config so the configured rules load correctly
  • fixed hook naming/order issues that were blocking lint/build
  • moved hook-based table action logic out of table cell callbacks into proper client components
  • moved repeated waveform hook logic out of table cell callbacks into a reusable client component

Why this was needed

After fixing the ESLint config, the real build blockers were react-hooks/rules-of-hooks errors.

The blocking patterns were mainly:

  • hooks used in lowercase components
  • hooks used inside table cell callbacks
  • hooks used in plain helper functions
  • hooks called conditionally / after early returns

Some larger-looking refactors in this PR were still required, because those hook-rule violations were present in table action cells and waveform preview cells across several screens.

Verification

Ran locally:

  • corepack pnpm lint
  • corepack pnpm build

Both pass.

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.

1 participant