Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Metadata on /tradeoffers-pages #283

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

GODrums
Copy link
Collaborator

@GODrums GODrums commented Dec 13, 2024

Motivation

Closes #143.

Description

This PR adds the well-known enhancements from tradeoffer-popouts to the /tradeoffers-overview:

  • FetchSteamTrades-handler to fetch the data from the Steam API through the access token
  • trade_offers.ts page script:
    • Calculates and stores the api data in an accessible format in the DOM
    • Utilizes the localStorage as cache to avoid refetching from the API if there are no new trades since the last fetch
  • TradeOfferHolderMetadata Lit-component, which reads the required properties from the DOM
  • Removes the check regarding a CSFloat account for the "offer tracking on csfloat"-button. Since all Steam-API features rely on the same host permission, enabling the "offer tracking" is a mandatory pre-condition

Screenshots

Received tradeoffer example:
Screenshot 2024-12-13 211319
Sent tradeoffer example:
Screenshot 2024-12-13 211311

@GODrums GODrums requested a review from Step7750 December 13, 2024 20:27
@GODrums GODrums self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Show Float Values on Trade Offers Page
1 participant