Skip to content

fix(build): repair 3 merge-corrupted files (refs #445)#449

Open
winsznx wants to merge 1 commit into
StellarFlow-Network:mainfrom
winsznx:fix/build-parse-errors
Open

fix(build): repair 3 merge-corrupted files (refs #445)#449
winsznx wants to merge 1 commit into
StellarFlow-Network:mainfrom
winsznx:fix/build-parse-errors

Conversation

@winsznx

@winsznx winsznx commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

main does not build. Several Merge branch 'main' into <feature> commits were resolved by keeping both sides of the conflict, landing parse errors on main (no CI build gate to catch them). Full diagnosis in #445.

This PR repairs 3 of the 4 affected files. useSocket.ts is intentionally left out — it needs a maintainer decision (see #445 and the note below).

Refs #445

Changes

  • OracleHealthIndicator.tsx — restore the status-dot block (ping-ring className + the core-dot's opening <div> and className={[...]} array) that merge 77f2658 deleted, leaving an orphan ]. The same merge's legitimate style={{ contain: "layout paint" }} change is preserved.
  • useValidatorBatch.ts — merge 736792a nested two useQuery calls and left duplicate keys (refetchOnWindowFocus, staleTime). Collapsed to one, reconciling both branches: normalizedAddresses + in-fn cache check and getCacheOptions('SHORT_INTERVAL')-driven staleTime/gcTime.
  • PriceFeedCard.tsx — merge be3793b kept both sides at several sites:
    • deduped the Shimmer import and switched to the individual skeleton paths (the @/components/skeletons barrel was removed in the "eliminate barrel files" commit, so that import didn't resolve);
    • removed the duplicate const [data, setData] = useState(...) (kept the cache-seeded initializer);
    • kept the mounted-guarded dependency arrays on the WS-merge and WS-error effects;
    • collapsed the duplicated polling useEffect.

Verification

npx tsc --noEmit

After this PR, the only remaining error is the pre-existing useSocket.ts parse error — every other file now type-checks. Each change was recovered from git history / reconciled to the evident intent of the conflicting branches; no behavior was invented.

⚠️ Not included: useSocket.ts (needs a maintainer decision)

useSocket.ts was corrupted by merge b9e517f, which interleaved two incompatible implementations — an older wsManager connection-pool version and a newer direct-new WebSocket() rewrite. The result is semantically broken (e.g. disconnect is defined twice, and one body subscribes instead of disconnecting), and there's no clean version to recover from. Repairing it safely means choosing one implementation and rebuilding the hook — a call for the maintainers, since it's the live data-feed core. Details in #445.

So this PR gets the tree down to a single remaining broken file; once the useSocket.ts direction is decided, the build goes green. Happy to follow up on useSocket.ts once you confirm which implementation to keep.

)

main does not build — several mis-resolved merge conflicts committed both sides
of a conflict into the same file. This repairs 3 of the 4 affected files;
useSocket.ts is intentionally left out pending a maintainer decision (see StellarFlow-Network#445).

- OracleHealthIndicator.tsx: restore the status-dot block (ping-ring className +
  core-dot opening/className array) deleted by merge 77f2658, keeping that
  merge's legit `contain: layout paint` change.
- useValidatorBatch.ts: collapse the two nested useQuery calls into one,
  reconciling both branches' intent (normalizedAddresses + in-fn cache check,
  plus getCacheOptions('SHORT_INTERVAL')-driven staleTime/gcTime); drop the
  duplicate option keys.
- PriceFeedCard.tsx: dedupe the Shimmer import and use individual skeleton
  paths (the @/components/skeletons barrel was removed); drop the duplicate
  useState(data); keep the mounted-guarded effect dependency arrays; collapse
  the duplicated polling effect.

After this, `tsc --noEmit` reports only the pre-existing useSocket.ts parse
error. useSocket.ts needs the implementation decision documented in StellarFlow-Network#445
(wsManager pool vs direct WebSocket) and is out of scope here.
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

Hey @winsznx! 👋 It looks like this PR isn't linked to any issue.

If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g., Closes #123), or by clicking a button below:

Issue Title
#397 🧱 Core-Vitals | Hard-Coding Sizing Outlines for Regional Image Maps Link to this issue

ℹ️ Learn more about linking PRs to issues

@GBOYEE

GBOYEE commented Jun 28, 2026

Copy link
Copy Markdown

@GBOYEE has applied to work on this issue as part of the Stellar Wave Program's 6th wave.

I'll manually repair the merge-corrupted files by reconstructing their correct contents from the PR diffs and resolving all conflicts. Clean commit history, no broken imports.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @GBOYEE to this issue.

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.

2 participants