Commit Graph

11 Commits

Author SHA1 Message Date
Daria
7802268e1c
CoretimeTypes is an enum, and Reservation type has index 0 (#11567) 2025-05-20 12:25:02 +05:30
Daria
468a3d5107
Feedback/#11253 (#11304)
* countdown component

* filtering by parachain id in workplan and workload

* lint

* rename chainName to relayName, fixed subscan block link

* always showing price even if the cores are sold out

* moved some calculations to the coretime context

* added broker context for page-broker, fix for wrong dates

* showing time with the estimated date in places

* removed extra code when calculating renewal status

* tsc for page-broker

* page-coretime tsc

* fix showing correct dates for fixed price phase in sale history

* minified workinforow as all rows show the same information now

* default values for fn input

* showing start price of the sale on the sale tab

* replaced custom Countdown element with existing implementation

* adjusted estimateTime function for broker

* adjusted estimateTime function for coretime page

* lint

* added Renewal link for RegionX
2025-04-04 12:01:20 +13:00
Daria
fd45bb870c
More sale details + region info (#11188)
* added more details of the sale phases to the sale detail, added current region dates on the sale overview, links to other coretime resellers

* refactor, separated components for readability

* partial lint

* arranged white boxes

* added dotlake link, added price graph link, visual improvements

* fixed incorrect sale times plus added an exception for the second sale on Kusams

* lint and tsc

* added ui colour

* translation

* wording change

* typo
2025-01-20 15:28:22 +13:00
Tarik Gul
384049fb6b
2025 (#11172)
* 2025

* update ci scripts to add access to scripts
2025-01-03 03:59:53 +02:00
Daria
5e80322362
Relay Chain - Coretime Sale UI (#11091)
* added sales tab

* draft for the progress bar

* draft for calculating values for the coretime progress timeline

* lint

* added historical data on sales, button to see transactions on subscan

* breaking down utils file logically

* improving calculations of phase configuration, sale details, etc

* lint

* correctly calculated sale start/end blocks, dates and ts

* added core price calculation

* chainName type, adjustments for westend and paseo

* ts fixes

* used helper funcitons for getting relay blocks

* moved functionality to a new helper

* moved constants from types file in react-hooks, page-broker, page-coretime

* added dynamic coretime constants, wrapped page coretime in a context for dynamic functions

* moved coretime constants to a separate hook for reusability

* removed coretime consts and added useCoretimeConsts in page-broker

* passing a correct block number for coretime price calculation
2024-12-29 13:38:57 +13:00
Daria
069b032213
Relay Chain Coretime UI bugs (#11043)
* showing multiple core rows for parachains, changed end dates for non extended chains, correct renew status

* mobile table

* only showing renewals eligibility during the interlude

* removed extra tag

* styled component $property
2024-10-29 07:12:17 -04:00
Daria
4df5c9a8d5
Relay Chain - Coretime Overview UI Tab (#11016)
* exposing coretime wss endpoint to use on relay chain, adjusted hooks to accept api endpoint as a parameter

* adjusting hook calls to new parameters

* added Tag for coretime types, renamed occupancyType to coretimeType

* added cycle progress and cycle end date to summary, fixed the estimation dates

* coretime page draft, added hook for gathering all the coretime information in order to show it on relay chain

* lint

* bumped version

* updated coretime chain summary

* updated summary, added timeslice for the first sale start,

* hook updates to make sure the coretime data is displayed even if workloads are empty, fallback on coreAssignments

* removed unused files

* lint

* tsc

* merging parachainIds with renewalIds

* if there is no record in potential renewals, then the chain has renewed already

* added config for page-coretime

* removed hardcoded regionLength value

* improved function to find out type

* lint

* tsc

* Fix versioning

* fix comments

---------

Co-authored-by: tarikgul <tariksnow37@gmail.com>
2024-10-22 09:38:00 -04:00
Daria
859ba4800e
Coretime Broker on Coretime Chain - Update after Coretime Polkadot release (#10947)
* showing all cores, not relying on the core information in workload to show the cores

* swapped idles and pools to reflect correct values

* added start and end for bulk coretime, taking into account timeslice from the workplan

* checked and updated the time estimation function

* added cores offerred vs sold in summary

* filters turned back on

* lint

* reversed a change in a file from .github folder

* removed some extra checks

* minor refactor
2024-09-26 17:25:22 +08:00
Daria
12d9b3a53e
updated broker pallets calls to be more general, added the estimated bulk price value for overtime ui tab (#10923) 2024-09-17 20:30:01 +08:00
Daria
519127d567
Fix: Error on Coretime on Polkadot due to no data coming from Coretime API (#10910)
* added placeholders for when no data is available

* linter warning
2024-09-11 08:49:37 -04:00
Daria
7c9f388698
Coretime Chain - Overview UI Tab (#10898)
* added overview page

* sanitized task

* added workplan table

* staged missing files

* updated filters

* fixed some types

* updated mask graph

* copyright

* linting

* install

* added relay overview

* linting

* refactoring hooks

* translations

* updated coretime deps

* updated tsconfig

* fixed build

* root tsconfig

* fix tsconfig

* app-coretime and app-broker

* filter bug fix

* prettied mask bar

* updated deps

* updated deps broker

* removed TS filter and added graph

* linting

* fixed headers

* fixed filter

* updated coretime summary

* updated relay tables

* fixed bulk price display

* updated regions

* styling

* fixed pallet version mismaatch info

* fixed expand button

* fixed alignment issues

* yarn install

* integrated some suggestions

* linting

* updated version

* Fix Header on table

* Small nit around naming

* Usage bar console err fix: NaN

* rearranged the layout for page broker on Coretime chain, changed UsageBar element to be more generic

* filtering parachains by id

* moved a type to a seprate type file

* skip build and npm

* generated locales

* added default ui colours to test chains and kusama

* abstracted logic from the rendering

* default ui highlight fallback

* table responsive - hiding timeslice info from the rows on mobile

* version updates for react-components and react-query

* exporting defaultHighlight

* responsive summary

* small fix for workplan filtering

* separated coretime chain page

* removed unused references

* added useBrokerReservations call and marked reserved chains

* useBrokerLease, added Legacy Lease type

* showing last block for legacy leases

* added processing at data retrieval

* fix: missing icon

* linting

* organized files, minor refactor

* moved filters out of the Overview componennt

* minor refactor

* version update

* regenerated yarn lock

* renamed column

* linter :)

* ts fixes :)

---------

Co-authored-by: bee344 <alberto.penayo@parity.io>
Co-authored-by: Alberto Nicolas Penayo <74352651+bee344@users.noreply.github.com>
Co-authored-by: tarikgul <tariksnow37@gmail.com>
2024-09-10 08:30:41 -04:00