@@ -154,8 +154,8 @@ onMounted(() => {
154154 < div v- for = " dot in 12" class = " dot" / >
155155
156156 < Text size= " 12" weight= " 600" color= " secondary" align= " right" >
157- {{ upgrade .end_time
158- ? DateTime .fromISO (upgrade .end_time ).setLocale (" en" ).toLocaleString (DateTime .DATE_MED )
157+ {{ upgrade .applied_at
158+ ? DateTime .fromISO (upgrade .applied_at ).setLocale (" en" ).toLocaleString (DateTime .DATE_MED )
159159 : ' In progress'
160160 }}
161161 < / Text >
@@ -173,13 +173,13 @@ onMounted(() => {
173173 < Flex direction= " column" gap= " 10" : class = " $style.key_value" >
174174 < Text size= " 12" weight= " 600" color= " secondary" > Status< / Text >
175175
176- < Flex v- if = " upgrade.end_time " align= " center" gap= " 6" >
176+ < Flex v- if = " upgrade.status === 'applied' " align= " center" gap= " 6" >
177177 < Icon name= " check-circle" size= " 14" color= " brand" / >
178178 < Text size= " 13" weight= " 600" color= " primary" > Applied< / Text >
179179 < / Flex>
180- < Flex v- else - if = " upgrade.votedShare > 83.3 " align= " center" gap= " 6" >
180+ < Flex v- else - if = " upgrade.status === 'waiting_upgrade' " align= " center" gap= " 6" >
181181 < Icon name= " zap-circle" size= " 14" color= " brand" / >
182- < Text size= " 13" weight= " 600" color= " primary" > Ready for Upgrade< / Text >
182+ < Text size= " 13" weight= " 600" color= " primary" > Waiting Upgrade< / Text >
183183 < / Flex>
184184 < Flex v- else align= " center" gap= " 6" >
185185 < Icon name= " zap-circle" size= " 14" color= " tertiary" / >
@@ -201,6 +201,28 @@ onMounted(() => {
201201 < / NuxtLink>
202202 < / Flex>
203203
204+ < Flex direction= " column" gap= " 6" : class = " $style.key_value" >
205+ < Text size= " 13" weight= " 600" color= " primary" > {{ upgrade .title }} < / Text >
206+
207+ < Flex direction= " column" gap= " 4" >
208+ < Text size= " 12" height= " 120" color= " secondary" >
209+ {{ upgrade .description }}
210+ < / Text >
211+
212+ < Text v- if = " upgrade.link" size= " 12" height= " 120" color= " secondary" >
213+ For more information, see the
214+ < Text
215+ @click= " navigateTo(upgrade.link, {external: true, open: {target: '_blank'}})"
216+ color= " primary"
217+ : class = " $style.link"
218+ >
219+ docs
220+ < / Text >
221+ .
222+ < / Text >
223+ < / Flex>
224+ < / Flex>
225+
204226 < Flex justify= " center" direction= " column" gap= " 10" wide>
205227 < Flex align= " center" justify= " between" wide>
206228 < Tooltip position= " start" >
@@ -226,6 +248,7 @@ onMounted(() => {
226248 < Text : color= " upgrade.votedShare > 83.3 ? 'brand' : 'tertiary'" > {{ roundTo (upgrade .votedShare , 2 ) }}% < / Text > / 83.3 %
227249 < / Text >
228250 < / Flex>
251+
229252 < Flex align= " center" gap= " 4" : class = " $style.voting_wrapper" >
230253 < div : style= " { left: `83.33%` }" : class = " $style.threshold" / >
231254
@@ -250,7 +273,7 @@ onMounted(() => {
250273 / >
251274
252275 < template #content>
253- {{ upgrade .end_height ? " At the time of the upgrade." : " The current value of the total stake." }}
276+ {{ upgrade .end_height ? " At the time of the successful upgrade transaction ." : " The current value of the total stake." }}
254277 < / template>
255278 < / Tooltip>
256279 < / Flex>
@@ -324,9 +347,9 @@ onMounted(() => {
324347 < / Flex>
325348 < / Flex>
326349
327- < Flex v- if = " upgrade.end_height " align= " center" justify= " between" >
350+ < Flex v- if = " upgrade.applied_at_level " align= " center" justify= " between" >
328351 < Flex align= " center" gap= " 6" >
329- < Text size= " 12" weight= " 600" color= " tertiary" > End Block< / Text >
352+ < Text size= " 12" weight= " 600" color= " tertiary" > Apply Block< / Text >
330353
331354 < Tooltip>
332355 < Icon
@@ -336,22 +359,22 @@ onMounted(() => {
336359 / >
337360
338361 < template #content>
339- When a successful TryUpgrade transaction was sent .
362+ When the network was updated to a new version .
340363 < / template>
341364 < / Tooltip>
342365 < / Flex>
343366
344- < NuxtLink : to= " `/block/${upgrade.end_height }`" target= " _blank" >
367+ < NuxtLink : to= " `/block/${upgrade.applied_at_level }`" target= " _blank" >
345368 < Flex align= " center" gap= " 6" >
346- < Text size= " 12" weight= " 600" color= " secondary" > {{ comma (upgrade .end_height ) }}< / Text >
369+ < Text size= " 12" weight= " 600" color= " secondary" > {{ comma (upgrade .applied_at_level ) }}< / Text >
347370 < Icon name= " arrow-narrow-up-right" size= " 12" color= " tertiary" / >
348371 < / Flex>
349372 < / NuxtLink>
350373 < / Flex>
351374
352- < Flex v- if = " upgrade.end_time " align= " center" justify= " between" >
375+ < Flex v- if = " upgrade.applied_at " align= " center" justify= " between" >
353376 < Flex align= " center" gap= " 6" >
354- < Text size= " 12" weight= " 600" color= " tertiary" > End Time< / Text >
377+ < Text size= " 12" weight= " 600" color= " tertiary" > Apply Time< / Text >
355378
356379 < Tooltip>
357380 < Icon
@@ -361,17 +384,17 @@ onMounted(() => {
361384 / >
362385
363386 < template #content>
364- When a successful TryUpgrade transaction was sent .
387+ When the network was updated to a new version .
365388 < / template>
366389 < / Tooltip>
367390 < / Flex>
368391
369392 < Flex gap= " 6" >
370393 < Text size= " 12" weight= " 600" color= " secondary" >
371- {{ DateTime .fromISO (upgrade .end_time ).toRelative ({ locale: " en" , style: " short" }) }}
394+ {{ DateTime .fromISO (upgrade .applied_at ).toRelative ({ locale: " en" , style: " short" }) }}
372395 < / Text >
373396 < Text size= " 12" weight= " 500" color= " tertiary" >
374- {{ DateTime .fromISO (upgrade .end_time ).setLocale (" en" ).toFormat (" LLL d, t" ) }}
397+ {{ DateTime .fromISO (upgrade .applied_at ).setLocale (" en" ).toFormat (" LLL d, t" ) }}
375398 < / Text >
376399 < / Flex>
377400 < / Flex>
@@ -388,7 +411,7 @@ onMounted(() => {
388411 / >
389412
390413 < template #content>
391- Address that sent a successful TryUpgrade transaction.
414+ Address that sent a successful upgrade transaction.
392415 < / template>
393416 < / Tooltip>
394417 < / Flex>
@@ -534,6 +557,14 @@ onMounted(() => {
534557 }
535558}
536559
560+ .link {
561+ cursor: pointer;
562+
563+ & : hover {
564+ color: var (-- brand);
565+ }
566+ }
567+
537568.txs_wrapper {
538569 min- width: 0 ;
539570}
0 commit comments