Skip to content

Commit

Permalink
Merge branch 'develop' into tooling-sdk/remove-deprecated-wallet-stan…
Browse files Browse the repository at this point in the history
…dard-methods
  • Loading branch information
marc2332 authored Oct 29, 2024
2 parents 533acd3 + 8882941 commit 8eb0978
Show file tree
Hide file tree
Showing 477 changed files with 6,782 additions and 20,492 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ title: '[Task(*)]: release version x.y.z'
- [ ] Edit `crates/iota-open-rpc/spec/openrpc.json`
- [ ] Update `sdk/typescript/src/version.ts` (`pnpm sdk build`)
- [ ] Update `Cargo.lock` (`cargo check`)
- [ ] Update `crates/iota-framework/packages/deepbook/Move.lock`
- [ ] Update `crates/iota-framework/packages/iota-framework/Move.lock`
- [ ] Update `crates/iota-framework/packages/iota-system/Move.lock`
- [ ] Update `crates/iota-framework/packages/move-stdlib/Move.lock`
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/_rust_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ jobs:
check-unused-deps:
name: Check Unused Dependencies (${{ matrix.flags }})
# Temporarily disabled until the nightly build bug is resolved
if: (!cancelled() && false)
if: (!cancelled())
strategy:
matrix:
flags: ["--all-features", "--no-default-features"]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/_vercel_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

explorer-prod:
name: Vercel Explorer Production
if: inputs.isDevelop && inputs.isExplorer
if: inputs.isDevelop
uses: ./.github/workflows/apps-explorer.deploy.yml
secrets: inherit
with:
Expand All @@ -59,7 +59,7 @@ jobs:

ui-kit-prod:
name: Vercel UI Kit Preview
if: inputs.isDevelop && inputs.isAppsUiKit
if: inputs.isDevelop
uses: ./.github/workflows/apps-ui-kit.deploy.yml
secrets: inherit
with:
Expand All @@ -75,7 +75,7 @@ jobs:

wallet-dashboard-prod:
name: Vercel Wallet Dashboard Production
if: inputs.isDevelop && inputs.isWalletDashboard
if: inputs.isDevelop
uses: ./.github/workflows/apps-wallet-dashboard.deploy.yml
secrets: inherit
with:
Expand All @@ -91,7 +91,7 @@ jobs:

apps-backend-prod:
name: Vercel apps-backend Production
if: inputs.isDevelop && inputs.isAppsBackend
if: inputs.isDevelop
uses: ./.github/workflows/apps-backend.deploy.yml
secrets: inherit
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Move.lock
!crates/iota-framework/packages/move-stdlib/Move.lock
!crates/iota-framework/packages/iota-framework/Move.lock
!crates/iota-framework/packages/iota-system/Move.lock
!crates/iota-framework/packages/deepbook/Move.lock
!crates/iota-framework/packages/stardust/Move.lock
!crates/iota-framework/packages/timelock/Move.lock
.trace
Expand Down
20 changes: 11 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions apps/explorer/src/components/IotaTokenCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

import { Panel } from '@iota/apps-ui-kit';
import { COIN_GECKO_IOTA_URL, useIotaCoinData } from '@iota/core';
import { IotaLogoMark } from '@iota/ui-icons';
import { ButtonOrLink } from '~/components/ui';
import { ButtonOrLink, ImageIconSize } from '~/components/ui';
import { CoinIcon } from './owned-coins';
import { IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';

export function IotaTokenCard(): JSX.Element {
const { data } = useIotaCoinData();
Expand All @@ -22,8 +23,8 @@ export function IotaTokenCard(): JSX.Element {
<ButtonOrLink href={COIN_GECKO_IOTA_URL}>
<Panel>
<div className="flex items-center gap-xs p-md--rs">
<div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary-30">
<IotaLogoMark className="h-5 w-5 text-white" />
<div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-shader-neutral-light-8 text-neutral-10">
<CoinIcon coinType={IOTA_TYPE_ARG} size={ImageIconSize.Small} />
</div>
<div className="flex w-full flex-col gap-xxxs">
<span className="font-inter text-title-lg text-neutral-10 dark:text-neutral-92">
Expand Down
41 changes: 19 additions & 22 deletions apps/explorer/src/components/activity/EpochsActivityTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { InfoBox, InfoBoxStyle, InfoBoxType, Select } from '@iota/apps-ui-kit';
import { InfoBox, InfoBoxStyle, InfoBoxType, Select, SelectSize } from '@iota/apps-ui-kit';
import { useIotaClientQuery, useIotaClient, useIotaClientInfiniteQuery } from '@iota/dapp-kit';
import { Warning } from '@iota/ui-icons';
import { useQuery } from '@tanstack/react-query';
import { useState } from 'react';

import { PlaceholderTable, TableCard, useCursorPagination } from '~/components/ui';
import { PAGE_SIZES_RANGE_20_60 } from '~/lib/constants';
import { generateEpochsTableColumns } from '~/lib/ui';
import { numberSuffix } from '~/lib/utils';

Expand Down Expand Up @@ -71,29 +71,26 @@ export function EpochsActivityTable({
data={data.data}
columns={tableColumns}
totalLabel={count ? `${numberSuffix(Number(count))} Total` : '-'}
viewAll={!disablePagination ? '/recent?tab=epochs' : undefined}
viewAll="/recent?tab=epochs"
paginationOptions={!disablePagination ? pagination : undefined}
pageSizeSelector={
!disablePagination && (
<Select
value={limit.toString()}
options={PAGE_SIZES_RANGE_20_60.map((size) => ({
label: `${size} / page`,
id: size.toString(),
}))}
size={SelectSize.Small}
onValueChange={(e) => {
setLimit(Number(e));
pagination.onFirst();
}}
/>
)
}
/>
)}

<div className="flex justify-between">
<div className="flex items-center space-x-3">
{!disablePagination && (
<Select
value={limit.toString()}
options={[
{ id: '20', label: '20 Per Page' },
{ id: '40', label: '40 Per Page' },
{ id: '60', label: '60 Per Page' },
]}
onValueChange={(e) => {
setLimit(Number(e));
pagination.onFirst();
}}
/>
)}
</div>
</div>
</div>
);
}
39 changes: 18 additions & 21 deletions apps/explorer/src/components/activity/TransactionsActivityTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
import { useIotaClient } from '@iota/dapp-kit';
import { useQuery } from '@tanstack/react-query';
import { useEffect, useRef, useState } from 'react';

import { PlaceholderTable, TableCard, useCursorPagination } from '~/components/ui';
import {
DEFAULT_TRANSACTIONS_LIMIT,
useGetTransactionBlocks,
} from '~/hooks/useGetTransactionBlocks';
import { numberSuffix } from '~/lib/utils';
import { InfoBox, InfoBoxStyle, InfoBoxType, Select } from '@iota/apps-ui-kit';
import { InfoBox, InfoBoxStyle, InfoBoxType, Select, SelectSize } from '@iota/apps-ui-kit';
import { generateTransactionsTableColumns } from '~/lib/ui';
import { Warning } from '@iota/ui-icons';
import { PAGE_SIZES_RANGE_20_60 } from '~/lib/constants';

interface TransactionsActivityTableProps {
disablePagination?: boolean;
Expand Down Expand Up @@ -76,27 +76,24 @@ export function TransactionsActivityTable({
totalLabel={count ? `${numberSuffix(Number(count))} Total` : '-'}
viewAll="/recent"
paginationOptions={!disablePagination ? pagination : undefined}
pageSizeSelector={
!disablePagination && (
<Select
value={limit.toString()}
options={PAGE_SIZES_RANGE_20_60.map((size) => ({
label: `${size} / page`,
id: size.toString(),
}))}
onValueChange={(e) => {
setLimit(Number(e));
pagination.onFirst();
}}
size={SelectSize.Small}
/>
)
}
/>
)}

<div className="flex justify-between">
<div className="flex items-center space-x-3">
{!disablePagination && (
<Select
value={limit.toString()}
options={[
{ id: '20', label: '20 Per Page' },
{ id: '40', label: '40 Per Page' },
{ id: '60', label: '60 Per Page' },
]}
onValueChange={(e) => {
setLimit(Number(e));
pagination.onFirst();
}}
/>
)}
</div>
</div>
</div>
</div>
);
Expand Down
37 changes: 18 additions & 19 deletions apps/explorer/src/components/checkpoints/CheckpointsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
// Modifications Copyright (c) 2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

import { InfoBox, InfoBoxStyle, InfoBoxType, Select } from '@iota/apps-ui-kit';
import { InfoBox, InfoBoxStyle, InfoBoxType, Select, SelectSize } from '@iota/apps-ui-kit';
import { useIotaClientQuery } from '@iota/dapp-kit';
import { Warning } from '@iota/ui-icons';
import { useMemo, useState } from 'react';
import { PlaceholderTable, TableCard, useCursorPagination } from '~/components/ui';
import { DEFAULT_CHECKPOINTS_LIMIT, useGetCheckpoints } from '~/hooks/useGetCheckpoints';
import { PAGE_SIZES_RANGE_20_60 } from '~/lib/constants';
import { generateCheckpointsTableColumns } from '~/lib/ui';
import { numberSuffix } from '~/lib/utils';

Expand Down Expand Up @@ -81,26 +82,24 @@ export function CheckpointsTable({
}
: undefined
}
pageSizeSelector={
!disablePagination && (
<Select
value={limit.toString()}
options={PAGE_SIZES_RANGE_20_60.map((size) => ({
label: `${size} / page`,
id: size.toString(),
}))}
size={SelectSize.Small}
onValueChange={(e) => {
setLimit(Number(e));
pagination.onFirst();
}}
/>
)
}
/>
)}
<div className="flex justify-between">
<div className="flex items-center space-x-3">
{!disablePagination && (
<Select
value={limit.toString()}
options={[
{ id: '20', label: '20 Per Page' },
{ id: '40', label: '40 Per Page' },
{ id: '60', label: '60 Per Page' },
]}
onValueChange={(e) => {
setLimit(Number(e));
pagination.onFirst();
}}
/>
)}
</div>
</div>
</div>
);
}
Loading

0 comments on commit 8eb0978

Please sign in to comment.