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(offers): marketplace v2 offer #131

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

MixailE
Copy link
Contributor

@MixailE MixailE commented Dec 30, 2024

No description provided.

@MixailE MixailE self-assigned this Dec 30, 2024
@MixailE MixailE marked this pull request as draft December 30, 2024 17:06
@MixailE MixailE changed the title Feat marketplace v2 offer feat(offers): marketplace v2 offer Dec 30, 2024
Copy link

vercel bot commented Dec 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
network-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 2:34pm
network-explorer-stage ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 2:34pm
network-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 2:34pm

* feat(Deals): add resource information

* fix(Deals): remove effectors

* fix(deals): update version ts-client

* feat(deal): show rended resources

* fix(subgraph): update SUBGRAPH_URL link

* fix(DealsTable): add column's header for max renting period

* fix(DealInfo): fix DealInfo

* fix(deal-ts-clients): update deal-ts-clients

* fix(DealInfo): remove dwiced component

* fix(DealInfo): fix display details

* fix(Deals): update UI for deals/dealinfo page

* fix(DealInfo): fix table

* feat(ts-client): bump version

* fix(deals): refactor deals and add getResourceName

* fix(ResourceTable): refactor

* fix(getResourceName): Update src/utils/getResourceName.ts

Co-authored-by: shamsartem <[email protected]>

* fix(WorkersTable): refactor

---------

Co-authored-by: shamsartem <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to just do try catch in the code instead of using this
I personally never used it, I always thought this is useful basically only for third party components that might fail and it's best to write the code in such a way that it doesn't fail like that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added check for that and remove ErrorBoundary here #135

Comment on lines +61 to +62
quantity: string
metadata?: string
Copy link
Contributor

Choose a reason for hiding this comment

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

I am curious why metadata is optional. All resources have metadata right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have some problems with resolving ResourceDescription data in ResourceData but fixed that in the Indexer. I will update ts-client little bit later

Comment on lines +27 to +51
resources: {
id: string
type: number
quantity: string
metadata?: string
}[]
workers?:
| {
id: string
peer: {
id: string
resources?:
| {
id: string
details: string
resource?: {
metadata: string
type: number
id: string
}
}[]
| null
}
}[]
| null
Copy link
Contributor

@shamsartem shamsartem Jan 16, 2025

Choose a reason for hiding this comment

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

is this comming from indexer? should be possible to use generated types instead of this huge type definition here and in other places as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's better to use types from ts-deal-client. We have some improvements in the Indexer. I wanna check them and add the regarding changes into ts-client and remove special types like that here

Copy link
Contributor

@shamsartem shamsartem left a comment

Choose a reason for hiding this comment

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

Looks ok. Didn't test

* feat(DataCenters): add DataCenterTable

* feat(Menu): add DataCenter into Routing

* feat(DataCentersTable): add datacenters

* fix(DataCenters): fix types

* feat(OfferResourceTable): better price formatting

* feat(resources): add Resources page (#136)

feat(resources): add resources page and update datacenters

* feat(ts-client): update ts-client

* fix(DataCentersTable): fix paggination

* feat(datacenter): show datacenter info

* feat(datacenters): show providers/peers

* fix(DataCenter): remove unfinished Datacenter page

* feat(ts-client): update deal-ts-client

* fix(JsonToYamlView): remove ErrorBoundary
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