Skip to content

Commit bb84916

Browse files
authored
Merge pull request #2358 from oasisprotocol/mz/roflSearchResults
Tweaks around ROFL apps search results
2 parents ac43fac + c21d6b3 commit bb84916

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

.changelog/2358.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Tweaks around ROFL apps search results

src/app/pages/RoflAppDetailsPage/index.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,20 @@ export const RoflAppDetailsViewSearchResult: FC<{
200200

201201
return (
202202
<StyledDescriptionList>
203+
<dt>{t('common.name')}</dt>
204+
<dd>
205+
<RoflAppLink
206+
id={app.id}
207+
name={app.metadata['net.oasis.rofl.name']}
208+
network={app.network}
209+
withSourceIndicator={false}
210+
/>
211+
<CopyToClipboard value={app.metadata['net.oasis.rofl.name']} />
212+
</dd>
203213
<DetailsRow title={t('common.paratime')}>
204214
<DashboardLink scope={{ network: app.network, layer: app.layer }} />
205215
</DetailsRow>
206-
<NameRow name={app.metadata['net.oasis.rofl.name']} />
207216
<VersionRow version={app.metadata['net.oasis.rofl.version']} />
208-
<TeeRow policy={app.policy} />
209217
<DetailsRow title={t('rofl.appId')}>
210218
<RoflAppLink id={app.id} name={app.id} network={app.network} withSourceIndicator={false} />
211219
<CopyToClipboard value={app.id} />
@@ -216,7 +224,6 @@ export const RoflAppDetailsViewSearchResult: FC<{
216224
/>
217225
<StakedAmountRow stake={app.stake} ticker={app.ticker} />
218226
<StatusBadgeRow hasActiveInstances={!!app.num_active_instances} removed={app.removed} />
219-
<ActiveInstancesNumberRow number={app.num_active_instances} />
220227
<LastActivityRow
221228
scope={{ network: app.network, layer: app.layer }}
222229
transaction={app.last_activity_tx}

src/app/pages/SearchResultsPage/ResultsGroupByType.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function ResultsGroupByType<T>({ title, results, resultComponent, link, l
3232
{results.map((item, i) => (
3333
<div key={i}>
3434
{resultComponent(item)}
35-
<div className="flex justify-center mt-7">
35+
<div className="flex justify-center mt-2">
3636
<Button asChild size="lg">
3737
<RouterLink to={link(item)}>{linkLabel}</RouterLink>
3838
</Button>

src/locales/en/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@
838838
"viewLink": "View Transaction"
839839
},
840840
"roflApps": {
841-
"title": "ROFL",
842-
"viewLink": "View ROFL App"
841+
"title": "ROFL-Powered Apps",
842+
"viewLink": "View App"
843843
},
844844
"proposals": {
845845
"title": "Proposals",

0 commit comments

Comments
 (0)