Skip to content

Integrate Fiber State Management and Float Ranks#399

Merged
GODrums merged 13 commits into
masterfrom
feat/beta-listing-enhancements
Jul 5, 2026
Merged

Integrate Fiber State Management and Float Ranks#399
GODrums merged 13 commits into
masterfrom
feat/beta-listing-enhancements

Conversation

@GODrums

@GODrums GODrums commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Closes #398

Step 2 of #395

Adds state management integration with Fiber and first Fiber-based listing enhancement: float ranks. More enhancements to follow separately.

Screenshot

image

Note

Medium Risk
Relies on undocumented React Fiber/DOM structure and brittle card selectors that may break when Steam updates the beta UI; changes are gated to the beta market only.

Overview
Adds React Steam Market (beta) support by reading listing data from React Fiber instead of legacy g_rgListingInfo / g_rgAssets.

A new getFiberProps helper walks the __reactFiber$ tree to pull typed MarketListing props (listing id, asset, inspect link, wear from asset properties). BetaListingEnhancer continuously injects into beta listing cards when isReactSteamMarket() is true, fetches inspect ItemInfo via the existing float fetcher, and mounts BetaListingRank beside the wear value span (matched by float text). The market listing page script now loads this enhancer alongside the legacy ItemRowWrapper path.

Only a trivial newline fix in mode.ts; legacy market behavior is unchanged.

Reviewed by Cursor Bugbot for commit 48bc033. Configure here.

@GODrums GODrums self-assigned this Jun 5, 2026
@GODrums GODrums changed the title add Fiber management and rank enhancement Integrate Fiber State Management and Float Ranks Jun 5, 2026
@GODrums GODrums marked this pull request as ready for review June 8, 2026 22:01
@GODrums GODrums requested a review from Step7750 June 8, 2026 22:01

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 48bc033. Configure here.

Comment thread src/lib/components/market/react/listing.ts Outdated
Comment thread src/lib/components/market/react/rank.ts Outdated
Comment thread src/lib/components/market/react/rank.ts Outdated
Base automatically changed from fix/comp-with-steam-beta to master June 9, 2026 22:45

@Step7750 Step7750 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Apologies for the late review!

The fiber parsing is quite nifty, thanks for figuring all that out -- certainly seems required with the lack of context when injecting.

I'm thinking we can potentially move this PR to be more declarative instead of injecting a wrapper that then finds a child element to manually inject into. This would require expanding the InjectionGuard to a degree, but IMO would enable us to directly configure injecting the rank element.

Comment thread src/lib/components/market/react/listing.ts Outdated
Comment thread src/lib/components/market/react/rank.ts Outdated
Comment thread src/lib/components/market/react/rank.ts Outdated
Comment thread src/lib/components/market/react/listing.ts Outdated
@GODrums GODrums requested a review from Step7750 June 16, 2026 21:54
Comment thread src/lib/components/market/react/listing.ts Outdated
Comment thread src/lib/components/market/react/rank.ts Outdated

@Step7750 Step7750 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

@GODrums GODrums merged commit e9aa299 into master Jul 5, 2026
2 checks passed
@GODrums GODrums deleted the feat/beta-listing-enhancements branch July 5, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore listing enhancements in the market beta using a React Fiber compatible state management integration

2 participants