tscircuit / snippets

The main website, playground and online development environment for tscircuit (React Electronics)
https://tscircuit.com
MIT License
9 stars 27 forks source link

As the snippets gets more star it duplicates on the dashboard #200

Closed imrishabh18 closed 4 hours ago

imrishabh18 commented 2 weeks ago

Image

The motor-driver-breakout appears twice on the list

cc: @seveibar

ahmedhalac commented 2 weeks ago

is this list of snippets hardcoded?

imrishabh18 commented 2 weeks ago

@ahmedhalac No, the trending snippets list is not hardcoded

Abse2001 commented 6 days ago

@imrishabh18 I can't repro in local works fine Image

imrishabh18 commented 6 days ago

@Abse2001 It is still getting duplicated as you can test in the https://tscircuit.com

Abse2001 commented 6 days ago

@imrishabh18 ya I was asking if you now if we can repro in local.

Abse2001 commented 6 days ago

when you are signed out there is no duplicate https://tscircuit.com Image when signed in there is. Image

Abse2001 commented 5 days ago

@seveibar on local repo it does not get duplicated either if you are signed in or not idk how to repro this one.

imrishabh18 commented 5 days ago

Even I am not sure, probably it's a production api issue

seveibar commented 5 days ago

@imrishabh18 yep it's a production API issue, @Abse2001 has figured out it's related to a join with user data because of the auth token

Internal issue w/ prod api filed here: https://github.com/tscircuit/registry-api/issues/36

Inside getSnippetsQuery function used here https://github.com/tscircuit/registry-api/blob/main/routes/snippets/list_trending.ts