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(coretime): add Overview page #10383

Closed
wants to merge 66 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
086e5b8
added overview page
bee344 Mar 22, 2024
eca60ec
sanitized task
bee344 Mar 25, 2024
0b858c1
added workplan table
bee344 Mar 26, 2024
2375c96
staged missing files
bee344 Mar 26, 2024
a5be44f
updated filters
bee344 Apr 3, 2024
e7eabac
fixed some types
bee344 Apr 3, 2024
ac0c3cd
updated mask graph
bee344 Apr 3, 2024
1b93bc1
copyright
bee344 Apr 4, 2024
c72d69a
linting
bee344 Apr 4, 2024
63635f8
install
bee344 Apr 4, 2024
cbb8420
merge master
bee344 Apr 4, 2024
d3c199a
Merge branch 'master' into anp-coretime-overview
bee344 Apr 11, 2024
db64a22
added relay overview
bee344 Apr 15, 2024
4c2b57f
Merge branch 'master' into anp-coretime-overview
bee344 Apr 15, 2024
b1147f5
linting
bee344 Apr 15, 2024
385eee8
refactoring hooks
bee344 Apr 15, 2024
d467f5c
translations
bee344 Apr 15, 2024
ccaaccb
Merge branch 'master' into anp-coretime-overview
bee344 Apr 15, 2024
bd267f7
updated coretime deps
bee344 Apr 15, 2024
db3ac4c
updated tsconfig
bee344 Apr 15, 2024
3eb6a37
fixed build
bee344 Apr 15, 2024
39c1d5a
root tsconfig
bee344 Apr 15, 2024
a56c8b1
fix tsconfig
bee344 Apr 15, 2024
13b3bd3
app-coretime and app-broker
bee344 Apr 16, 2024
7d154ca
filter bug fix
bee344 Apr 16, 2024
8e59a15
prettied mask bar
bee344 Apr 16, 2024
32e60c1
master merge
bee344 Apr 16, 2024
0eb5652
updated deps
bee344 Apr 16, 2024
75a1440
updated deps broker
bee344 Apr 17, 2024
6d65635
Merge branch 'master' into anp-coretime-overview
bee344 May 24, 2024
ebc82d3
merge master
bee344 May 27, 2024
1e0f226
removed TS filter and added graph
bee344 May 28, 2024
3943937
linting
bee344 May 30, 2024
b647750
fixed headers
bee344 May 30, 2024
a56d3a3
fixed filter
bee344 May 30, 2024
a41ada8
updated coretime summary
bee344 May 30, 2024
625751e
updated relay tables
bee344 May 30, 2024
f18502d
fixed bulk price display
bee344 Jun 5, 2024
366a5e6
updated regions
bee344 Jun 6, 2024
f80a5a9
styling
bee344 Jun 10, 2024
c631fa2
fixed pallet version mismaatch info
bee344 Jun 11, 2024
997a62a
fixed expand button
bee344 Jun 11, 2024
7a1a310
fixed alignment issues
bee344 Jun 11, 2024
97149e6
merge master
bee344 Jun 13, 2024
ce51e82
yarn install
bee344 Jun 13, 2024
1f14531
integrated some suggestions
bee344 Jun 13, 2024
ed89520
linting
bee344 Jun 24, 2024
93bdae3
Merge branch 'master' into anp-coretime-overview
bee344 Jun 24, 2024
1652b82
updated version
bee344 Jun 24, 2024
d003706
Fix Header on table
TarikGul Jul 16, 2024
47381de
Small nit around naming
TarikGul Jul 17, 2024
60da07a
Usage bar console err fix: NaN
piggydoughnut Aug 16, 2024
47c17e3
rearranged the layout for page broker on Coretime chain, changed Usag…
piggydoughnut Sep 2, 2024
12fda8d
filtering parachains by id
piggydoughnut Sep 3, 2024
828c1a4
moved a type to a seprate type file
piggydoughnut Sep 3, 2024
265efe6
skip build and npm
piggydoughnut Sep 3, 2024
3c065b1
generated locales
piggydoughnut Sep 3, 2024
e7e058e
added default ui colours to test chains and kusama
piggydoughnut Sep 3, 2024
e12c632
abstracted logic from the rendering
piggydoughnut Sep 3, 2024
eab6e68
default ui highlight fallback
piggydoughnut Sep 3, 2024
75b3362
table responsive - hiding timeslice info from the rows on mobile
piggydoughnut Sep 4, 2024
47ee3dd
Merge branch 'master' into anp-coretime-overview
piggydoughnut Sep 4, 2024
dac3a51
version updates for react-components and react-query
piggydoughnut Sep 4, 2024
36f4365
exporting defaultHighlight
piggydoughnut Sep 4, 2024
c4b6627
responsive summary
piggydoughnut Sep 4, 2024
8e1fd05
small fix for workplan filtering
piggydoughnut Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,7 @@ export const prodParasKusamaCommon: EndpointOption[] = [
teleport: [-1],
text: 'Coretime',
ui: {
color: '#113911',
logo: chainsCoretimeKusamaSVG
}
},
Expand Down
4 changes: 3 additions & 1 deletion packages/apps-config/src/endpoints/testingRelayRococo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,9 @@ export const testParasRococoCommon: EndpointOption[] = [
relayName: 'rococo',
teleport: [-1],
text: 'Coretime',
ui: {}
ui: {
color: '#f19135'
}
},
{
homepage: 'https://encointer.org/',
Expand Down
4 changes: 3 additions & 1 deletion packages/apps-config/src/endpoints/testingRelayWestend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ export const testParasWestendCommon: EndpointOption[] = [
relayName: 'westend',
teleport: [-1],
text: 'Coretime',
ui: {}
ui: {
color: '#f19135'
}
},
{
info: 'westendPeople',
Expand Down
22 changes: 22 additions & 0 deletions packages/apps-routing/src/broker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2017-2024 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Route, TFunction } from './types.js';

import Component from '@polkadot/app-broker';

export default function create (t: TFunction): Route {
return {
Component,
display: {
needsApi: [
'query.broker.status'
],
needsApiInstances: true
},
group: 'network',
icon: 'calendar-clock',
name: 'broker',
text: t('nav.broker', 'Coretime Broker (Experimental)', { ns: 'app-broker' })
};
}
23 changes: 23 additions & 0 deletions packages/apps-routing/src/coretime.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2017-2024 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Route, TFunction } from './types.js';

import Component from '@polkadot/app-coretime';

export default function create (t: TFunction): Route {
return {
Component,
display: {
needsApi: [

'query.coretimeAssignmentProvider.coreDescriptors'
],
needsApiInstances: true
},
group: 'network',
icon: 'calendar-clock',
name: 'coretime',
text: t('nav.coretime', 'Coretime (Experimental)', { ns: 'app-coretime' })
};
}
4 changes: 4 additions & 0 deletions packages/apps-routing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ import alliance from './alliance.js';
import ambassador from './ambassador.js';
import assets from './assets.js';
import bounties from './bounties.js';
import broker from './broker.js';
import calendar from './calendar.js';
import claims from './claims.js';
import collator from './collator.js';
import contracts from './contracts.js';
import coretime from './coretime.js';
import council from './council.js';
import democracy from './democracy.js';
import explorer from './explorer.js';
Expand Down Expand Up @@ -61,6 +63,8 @@ export default function create (t: TFunction): Routes {
// Legacy staking Pre v14 pallet version.
stakingLegacy(t),
collator(t),
coretime(t),
broker(t),
// governance v2
referenda(t),
membership(t),
Expand Down
2 changes: 2 additions & 0 deletions packages/apps-routing/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
{ "path": "../page-bounties/tsconfig.build.json" },
{ "path": "../page-calendar/tsconfig.build.json" },
{ "path": "../page-claims/tsconfig.build.json" },
{ "path": "../page-coretime/tsconfig.build.json" },
{ "path": "../page-broker/tsconfig.build.json" },
{ "path": "../page-collator/tsconfig.build.json" },
{ "path": "../page-contracts/tsconfig.build.json" },
{ "path": "../page-council/tsconfig.build.json" },
Expand Down
31 changes: 31 additions & 0 deletions packages/apps/public/locales/en/app-broker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"All active/available cores": "All active/available cores",
"All available slices": "All available slices",
"All scehduled cores": "All scehduled cores",
"No core description found": "No core description found",
"No workload found": "No workload found",
"No workplan found": "No workplan found",
"Overview": "Overview",
"assignment": "assignment",
"broker Id": "broker Id",
"core": "core",
"core count": "core count",
"current timeslice": "current timeslice",
"current work": "current work",
"estimated bulk price": "estimated bulk price",
"mask": "mask",
"nav.broker": "Coretime Broker (Experimental)",
"next index": "next index",
"parachain id": "parachain id",
"pool size": "pool size",
"region length": "region length",
"selected core": "selected core",
"selected core for workload": "selected core for workload",
"selected core for workplan": "selected core for workplan",
"timeslice": "timeslice",
"timeslice period": "timeslice period",
"traffic": "traffic",
"work queue": "work queue",
"workload": "workload",
"workplan": "workplan"
}
26 changes: 26 additions & 0 deletions packages/apps/public/locales/en/app-coretime.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"All active/available cores": "All active/available cores",
"All available slices": "All available slices",
"All scehduled cores": "All scehduled cores",
"No core description found": "No core description found",
"No workload found": "No workload found",
"No workplan found": "No workplan found",
"Overview": "Overview",
"assignment": "assignment",
"broker Id": "broker Id",
"core": "core",
"core count": "core count",
"current timeslice": "current timeslice",
"current work": "current work",
"mask": "mask",
"nav.coretime": "Coretime",
"next index": "next index",
"pool size": "pool size",
"selected core for workload": "selected core for workload",
"selected core for workplan": "selected core for workplan",
"timeslice": "timeslice",
"traffic": "traffic",
"work queue": "work queue",
"workload": "workload",
"workplan": "workplan"
}
2 changes: 2 additions & 0 deletions packages/apps/public/locales/en/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"app-alliance.json",
"app-assets.json",
"app-bounties.json",
"app-broker.json",
"app-calendar.json",
"app-claims.json",
"app-collator.json",
"app-contracts.json",
"app-coretime.json",
"app-council.json",
"app-democracy.json",
"app-explorer.json",
Expand Down
27 changes: 27 additions & 0 deletions packages/apps/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@
"Addresses": "",
"Advanced creation options": "",
"After delay": "",
"All active/available cores": "",
"All active/available tracks": "",
"All available slices": "",
"All bags": "",
"All pools": "",
"All rewards will go towards the selected output destination when a payout is made.": "",
"All scehduled cores": "",
"All stashes": "",
"All the listed validators and all their nominators will receive their rewards.": "",
"All validators": "",
Expand Down Expand Up @@ -429,6 +432,7 @@
"No committee proposals": "",
"No completed campaigns found": "",
"No contracts available": "",
"No core description found": "",
"No council motions": "",
"No discretionary lock-voting is in place; all DOT used to vote counts the same.": "",
"No documentation provided": "",
Expand Down Expand Up @@ -464,6 +468,8 @@
"No waiting validators found": "",
"No websites": "",
"No winners in this auction": "",
"No workload found": "",
"No workplan found": "",
"No, block all nominations": "",
"Node info": "",
"Nominate": "",
Expand Down Expand Up @@ -1166,6 +1172,7 @@
"asset name": "",
"asset symbol": "",
"assets": "",
"assignment": "",
"at specific block": "",
"auctions": "",
"available signatories": "",
Expand Down Expand Up @@ -1206,6 +1213,7 @@
"bounty remark": "",
"bounty requested allocation": "",
"bounty title": "",
"broker Id": "",
"bytes": "",
"bytes transferred": "",
"calculated storage fee": "",
Expand Down Expand Up @@ -1263,6 +1271,8 @@
"conviction": "",
"conviction: Conviction": "",
"copied": "",
"core": "",
"core count": "",
"council candidates": "",
"council proposal type": "",
"count": "",
Expand All @@ -1286,7 +1296,9 @@
"current range winning bid": "",
"current support (failing)": "",
"current support (passing)": "",
"current timeslice": "",
"current value": "",
"current work": "",
"currently elected": "",
"custom endpoint": "",
"decision deposit": "",
Expand Down Expand Up @@ -1358,6 +1370,7 @@
"era {{era}}/unapplied": "",
"eras": "",
"errors": "",
"estimated bulk price": "",
"ethereum private key": "",
"event count": "",
"events": "",
Expand Down Expand Up @@ -1474,6 +1487,7 @@
"logs": "",
"lowest / avg staked": "",
"manage hardware connections": "",
"mask": "",
"manage ledger app": "",
"matches": "",
"matrix name": "",
Expand Down Expand Up @@ -1524,6 +1538,7 @@
"next": "",
"next action": "",
"next burn": "",
"next index": "",
"no": "",
"no addresses saved yet, add any existing address": "",
"no name": "",
Expand Down Expand Up @@ -1576,6 +1591,7 @@
"period": "",
"points": "",
"pool id": "",
"pool size": "",
"pools": "",
"pot": "",
"preimage": "",
Expand Down Expand Up @@ -1625,6 +1641,7 @@
"referendum id": "",
"refresh in": "",
"refund from account": "",
"region length": "",
"register from": "",
"registrar account": "",
"registrar index": "",
Expand Down Expand Up @@ -1660,6 +1677,9 @@
"seed (hex or string)": "",
"select curator": "",
"selected constant query": "",
"selected core": "",
"selected core for workload": "",
"selected core for workplan": "",
"selected signatories": "",
"selected state query": "",
"selected track": "",
Expand Down Expand Up @@ -1734,6 +1754,8 @@
"the supplied signature": "",
"threshold": "",
"timeout": "",
"timeslice": "",
"timeslice period": "",
"tip": "",
"tip amount": "",
"tip reason": "",
Expand All @@ -1756,6 +1778,8 @@
"total sub": "",
"total transferable": "",
"track origin": "",
"traffic": "",
"traffic multiplier": "",
"transactions": "",
"transfer asset": "",
"transfer received": "",
Expand Down Expand Up @@ -1840,6 +1864,9 @@
"with an index of": "",
"with capacity": "",
"with weight override": "",
"work queue": "",
"workload": "",
"workplan": "",
"yes": "",
"yesterday": "",
"your current password": "",
Expand Down
Loading