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

feat: Add More 50xx series, and add copy paste templates for adding more links #3191

Merged
merged 29 commits into from
Jan 29, 2025

Conversation

Mr-Tech-13
Copy link
Contributor

As stated in the title I added 50 series links for Bestbuy, Newegg, Pny, and Zotac. I also added some AMD CPUs. I also made copy paste templates at the bottom so it is easier to bulk add cards. The biggest thing was adding all of the Ubiquiti Switches, Cameras, Wifi, and Firewalls.

Enjoy!

@Mr-Tech-13 Mr-Tech-13 requested a review from jef as a code owner January 12, 2025 18:16
@JDIacobbo
Copy link
Contributor

JDIacobbo commented Jan 16, 2025

I attempted to build this from the docker file to test it (read: run it early) and I am getting the following error when building the docker image:

[+] Building 8.5s (16/21)                                        docker:default
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 1.10kB                                     0.0s
 => [internal] load metadata for docker.io/library/node:16.18.0-alpine3.1  0.2s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 94B                                           0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 767.79kB                                      0.0s
 => [builder  1/10] FROM docker.io/library/node:16.18.0-alpine3.16@sha256  0.0s
 => CACHED [stage-1 2/8] RUN apk add --no-cache chromium                   0.0s
 => CACHED [stage-1 3/8] RUN addgroup -S appuser && adduser -S -g appuser  0.0s
 => CACHED [stage-1 4/8] WORKDIR /app                                      0.0s
 => CACHED [builder  2/10] WORKDIR /build                                  0.0s
 => CACHED [builder  3/10] COPY package.json package.json                  0.0s
 => CACHED [builder  4/10] COPY package-lock.json package-lock.json        0.0s
 => CACHED [builder  5/10] COPY tsconfig.json tsconfig.json                0.0s
 => CACHED [builder  6/10] RUN npm ci                                      0.0s
 => CACHED [builder  7/10] COPY src/ src/                                  0.0s
 => CACHED [builder  8/10] COPY test/ test/                                0.0s
 => ERROR [builder  9/10] RUN npm run compile                              8.2s
------                                                                          
 > [builder  9/10] RUN npm run compile:                                         
0.580                                                                           
0.580 > [email protected] compile
0.580 > tsc
0.580 
7.821 src/store/lookup.ts:501:51 - error TS2551: Property 'ryzen7800x3d' does not exist on type '{ 3050: number; 3060: number; '3060ti': number; 3070: number; '3070ti': number; 3080: number; '3080ti': number; 3090: number; '4080-12g': number; '4080-16g': number; 4090: number; 5070: number; '5070ti': number; 5080: number; ... 26 more ...; xboxsx: number; }'. Did you mean 'ryzen9800x3d'?
7.821 
7.821 501     const maxPrice = config.store.maxPrice.series[link.series];
7.821                                                       ~~~~~~~~~~~
7.821 
7.822 
7.822 Found 1 error.
7.822 
------
Dockerfile:18
--------------------
  16 |     COPY src/ src/
  17 |     COPY test/ test/
  18 | >>> RUN npm run compile
  19 |     RUN npm prune --production
  20 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c npm run compile" did not complete successfully: exit code: 1

I have no issue building from jef's main branch.

@Mr-Tech-13
Copy link
Contributor Author

@JDIacobbo So sorry I mistyped something in the code.. I will update that right now

@Mr-Tech-13
Copy link
Contributor Author

Try Now? I may need to revamp my ubiquity changes

@JDIacobbo
Copy link
Contributor

Still won't compile with the same error.

jef
jef previously approved these changes Jan 17, 2025
@jef
Copy link
Owner

jef commented Jan 17, 2025

Another absolute banger!!! Thank you 🙏 😍

@jef jef changed the title Add More 50xx series, All Ubiquiti Wifi, Camera, Switching, and add copy paste templates for adding more links feat: Add More 50xx series, All Ubiquiti Wifi, Camera, Switching, and add copy paste templates for adding more links Jan 17, 2025
@jef
Copy link
Owner

jef commented Jan 17, 2025

Looks like @JDIacobbo is right. Let me know if you need any help!

@Mr-Tech-13
Copy link
Contributor Author

@jef ok so I remove all my UI stuff because of a bug I found. I will make that a separate PR. However regarding the discrepancy with the 9600 vs non x version, I dont think the 5000 series differentiated the two which is why I did it the way I did. It should be good now

@Mr-Tech-13
Copy link
Contributor Author

@JDIacobbo I found and fixed the bug. see this

@Mr-Tech-13 Mr-Tech-13 changed the title feat: Add More 50xx series, All Ubiquiti Wifi, Camera, Switching, and add copy paste templates for adding more links feat: Add More 50xx series, and add copy paste templates for adding more links Jan 18, 2025
@JDIacobbo
Copy link
Contributor

@JDIacobbo I found and fixed the bug. see this

Looks good to me. I was able to build and run the container.

@P-Adamiec
Copy link

I'm not really technical in programing, but in Poland the FE version is only available from NVIDIA store. Can you add links for it to work. I want to secure 5090 for work.

@Mr-Tech-13
Copy link
Contributor Author

@P-Adamiec sure. I'll try to get something working. Can you send me a link to the nvidia store page?

@P-Adamiec
Copy link

@Mr-Tech-13 https://marketplace.nvidia.com/pl-pl/consumer/graphics-cards/

@P-Adamiec
Copy link

@Mr-Tech-13 I'm going through 'Getting started' section and is there a way to include only this nvidia shop to constantly check one website instead of going around those that are listed OUT OF STOCK and increasing the time of checking my entry?

@Mr-Tech-13
Copy link
Contributor Author

Set STORES= to the store you want to scan

@jef
Copy link
Owner

jef commented Jan 29, 2025

Thanks @Mr-Tech-13! I just made a bunch of commits, so pull those in and then feel free to add the CA ones. After that, we'll run and merge!

@Mr-Tech-13
Copy link
Contributor Author

@jef All good to go. Just had to change config.ts to use 9600x instead of 9600 for the series. Did a test and everything is working as it should

@jef
Copy link
Owner

jef commented Jan 29, 2025

@jef All good to go. Just had to change config.ts to use 9600x instead of 9600 for the series. Did a test and everything is working as it should

Aha! Missed that 😅 Thanks for getting that fixed for me :)

Copy link
Owner

@jef jef left a comment

Choose a reason for hiding this comment

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

Amazing work @Mr-Tech-13. As always, I appreciate your support and contributions ❤️ People will be very happy!

@jef jef merged commit ce6d084 into jef:main Jan 29, 2025
3 checks passed
jef pushed a commit that referenced this pull request Jan 29, 2025
🤖 I have created a release *beep* *boop*
---


##
[3.10.0](v3.9.0...v3.10.0)
(2025-01-29)


### Features

* add 50xx series
([#3190](#3190))
([db07796](db07796))
* add 50xx series discord notification groups
([#3193](#3193))
([f59d3fc](f59d3fc))
* add more 50xx series, add templates for adding more links
([#3191](#3191))
([ce6d084](ce6d084))
* add new microcenters locations, more 4090 GPUs, fixed incorrect URLs
([#3181](#3181))
([218b0c3](218b0c3))
* add NTFY.SH agent
([#3195](#3195))
([e18f231](e18f231))


### Miscellaneous

* update bestbuy selectors
([#3186](#3186))
([810cefc](810cefc))


### Continuous Integration

* update pr linter
([25d556c](25d556c))


### Documentation

* remove badges
([4388e9a](4388e9a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@thetallchap
Copy link

There is not a way to get the links until they post them. You can guess at the links but I can't submit code knowing that it has a chance of not working

Many thanks for all your hard work on this. I'm looking at updating nvidia-gb for the 5080 / 5090 but obviously no links to work with from Nvidia's page. I'm manually modifying links from previous releases but understand you can't code those in if not confirmed and the chance of success doing that looks remote.

@Mr-Tech-13
Copy link
Contributor Author

I'm working on a pr for nvidia stores tomorrow once I can confirm the links

@thetallchap
Copy link

I'm working on a pr for nvidia stores tomorrow once I can confirm the links

You're a star, thank you for the incredible support.

@alanbixby
Copy link
Contributor

alanbixby commented Jan 30, 2025

@Mr-Tech-13

I'm working on a pr for nvidia stores tomorrow once I can confirm the links

Here is the add-to-cart HTML snippet for the 4060ti while it was still in stock on https://marketplace.nvidia.com/en-us/consumer/graphics-cards/. The last card sold out while I was looking into this, so I don't have a direct product page URL that isn't a 'Buy Now' external retailer page.

For the time being we might be able to make do with checking the list version of the site until someone gets a positive ID on what an add to cart looks like for the first party store.

<div
  _ngcontent-wox-c10=""
  aria-haspopup="true"
  tabindex="0"
  class="droplink product-details-grid-tile grid-tile-spacing nv-productTile"
>
  <!---->
  <div _ngcontent-wox-c10="" class="nv-tileTopRow">
    <div _ngcontent-wox-c10="" class="nv-bestSeller">Best Seller</div>
    <!----><!---->
  </div>
  <div
    _ngcontent-wox-c10=""
    style="
      position: relative;
      display: flex;
      flex-direction: column;
      height: 100%;
    "
  >
    <div
      _ngcontent-wox-c10=""
      class="product-details-image-container"
      style="align-self: center"
    >
      <!----><kui-image
        _ngcontent-wox-c10=""
        data-testid="kui-image"
        class="c-JRore"
        style="
          display: flex;
          background: transparent;
          visibility: visible;
          overflow: hidden;
        "
        ><img
          _ngcontent-wox-c10=""
          width="100%"
          height="100%"
          src="https://assets.nvidia.partners/images/png/GeForce-ADA-RTX4060Ti-Back.png"
          title="NVIDIA RTX 4060 Ti"
          alt="NVIDIA RTX 4060 Ti"
          data-pid-code="104138"
          data-ctatype="add_to_cart"
          data-producttitle="NVIDIA GeForce RTX 4060 Ti"
          class="nv-image"
          data-listener-added="true" /></kui-image
      ><!---->
    </div>
    <h2
      _ngcontent-wox-c10=""
      kuitext=""
      title="NVIDIA GeForce RTX 4060 Ti"
      data-pid-code="104138"
      data-ctatype="add_to_cart"
      data-producttitle="NVIDIA GeForce RTX 4060 Ti"
      class="nv-productTitle c-fOVUQc"
      data-testid="kui-text"
      data-listener-added="true"
    >
      NVIDIA GeForce RTX 4060 Ti
    </h2>
    <!----><!----><!---->
    <div
      _ngcontent-wox-c10=""
      class="specs-container 30"
      style="padding-bottom: 0px"
    >
      <!----><!---->
      <ul _ngcontent-wox-c10="">
        <li _ngcontent-wox-c10="">
          <div _ngcontent-wox-c10="" class="specs p-medium p-medium">
            <div
              _ngcontent-wox-c10=""
              kuitext=""
              style="display: inline-block; font-size: 14px !important"
              data-testid="kui-text"
              class="c-fOVUQc"
            >
              Boost Clock Speed:&nbsp;2.54 GHz
            </div>
          </div>
        </li>
        <li _ngcontent-wox-c10="">
          <div _ngcontent-wox-c10="" class="specs p-medium p-medium">
            <div
              _ngcontent-wox-c10=""
              kuitext=""
              style="display: inline-block; font-size: 14px !important"
              data-testid="kui-text"
              class="c-fOVUQc"
            >
              GPU Memory Size:&nbsp;8 GB
            </div>
          </div>
        </li>
        <!---->
      </ul>
      <!---->
    </div>
    <!----><!---->
    <div
      _ngcontent-wox-c10=""
      class="product_detail_78 nv-priceAndCTAContainer"
    >
      <div
        _ngcontent-wox-c10=""
        data-big-comm-id="3180"
        data-sku-code="NVGFT460T_US"
        class="js-product-item 12"
        style="visibility: visible"
      >
        <div _ngcontent-wox-c10="" class="nv-priceAndCTA">
          <div _ngcontent-wox-c10="" class="nv-priceAndCompare">
            <div _ngcontent-wox-c10="" class="product-details-price-stock">
              <!---->
              <div
                _ngcontent-wox-c10=""
                class="price clearfix h--smallest 81 nv-price"
              >
                <span
                  _ngcontent-wox-c10=""
                  kuitext=""
                  data-testid="kui-text"
                  class="c-fOVUQc"
                  >$399.</span
                ><span
                  _ngcontent-wox-c10=""
                  kuitext=""
                  class="decimal c-fOVUQc"
                  data-testid="kui-text"
                  >00</span
                >
              </div>
              <!---->
            </div>
            <!---->
            <div
              _ngcontent-wox-c10=""
              class="price clearfix h--smallest 81 nv-price price-strike"
            >
              <span
                _ngcontent-wox-c10=""
                kuitext=""
                data-testid="kui-text"
                class="c-fOVUQc"
                >$499.00</span
              ><!----><span
                _ngcontent-wox-c10=""
                kuitext=""
                data-testid="kui-text"
                class="c-fOVUQc"
              >
                Save $100 </span
              ><!---->
            </div>
            <div
              _ngcontent-wox-c10=""
              kuitext=""
              class="nv-compare c-fOVUQc"
              data-testid="kui-text"
            >
              <span _ngcontent-wox-c10="" class="nv-freeShipping"
                >Free Shipping</span
              ><!---->
            </div>
          </div>
          <div _ngcontent-wox-c10="" class="clearfix pdc-86 fe-pids">
            <div
              _ngcontent-wox-c10=""
              style="display: none; visibility: hidden"
              id="104138"
              class="NVGFT460T"
              status="buy_now"
              isfounderedition="true"
            >
              [ { "productId": 104138, "productTitle": "NVIDIA GeForce RTX 4060
              Ti", "logoUrl":
              "https://assets.nvidia.partners/logos/geforce/best_buy.png",
              "isAvailable": true, "salePrice": "399.0", "directPurchaseLink":
              null, "purchaseLink":
              "https://www.bestbuy.com/site/nvidia-geforce-rtx-4060-ti-8gb-gddr6-graphics-card-titanium-and-black/6543946.p?skuId=6543946",
              "hasOffer": false, "offerText": null, "partnerId": "2", "storeId":
              "2", "upc": "NVGFT460T_US", "sku": "NVGFT460T", "stock": 0,
              "retailerName": "https://bestbuy.com", "type": 76, "mrp": "399.0",
              "bestSeller": true }, { "productId": 104138, "productTitle":
              "NVIDIA GeForce RTX 4060 Ti", "logoUrl": null, "isAvailable":
              true, "salePrice": "399.0", "directPurchaseLink":
              "https://marketplace.nvidia.com/en-us/consumer/graphics-cards/nvidia-geforce-rtx-4060-ti/",
              "purchaseLink":
              "https://marketplace.nvidia.com/en-us/consumer/graphics-cards/nvidia-geforce-rtx-4060-ti/",
              "hasOffer": false, "offerText": null, "partnerId": "111",
              "storeId": "51", "upc": "NVGFT460T_US", "sku": "NVGFT460T",
              "stock": 0, "retailerName": "https://www.nvidia.com/en-us/",
              "type": 76, "mrp": "399.0", "bestSeller": true } ]
            </div>
            <div _ngcontent-wox-c10="">
              <div _ngcontent-wox-c10="">
                <div _ngcontent-wox-c10="">
                  <div _ngcontent-wox-c10="">
                    <a
                      _ngcontent-wox-c10=""
                      kuitext=""
                      data-color="#76b900"
                      data-secondary-color="#fff"
                      class="extra_style buy-link-atc cta-link-large 512 js-add-button cta-button c-fOVUQc"
                      data-big-comm-id="3180"
                      data-pid-code="104138"
                      data-producttitle="NVIDIA GeForce RTX 4060 Ti"
                      data-mpn-code="NVGFT460T"
                      data-testid="kui-text"
                      data-listener-added="true"
                      disabled="disabled"
                      >Add to Cart</a
                    ><!---->
                  </div>
                  <!----><!---->
                </div>
                <!---->
              </div>
              <!---->
            </div>
            <!----><!----><!----><!---->
          </div>
        </div>
        <!---->
      </div>
      <!----><!----><!---->
    </div>
    <!---->
  </div>
  <!----><!---->
</div>

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.

9 participants