Skip to content

Commit

Permalink
Merge branch 'main' into deprecate-voting-power
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrasinskis authored Dec 20, 2024
2 parents 1b7a67d + 175db2e commit 61ba75d
Show file tree
Hide file tree
Showing 45 changed files with 882 additions and 139 deletions.
10 changes: 10 additions & 0 deletions .github/repo_policies/BOT_APPROVED_FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# List of approved files that can be changed by a bot via an automated PR
# This is to increase security and prevent accidentally updating files that shouldn't be changed by a bot

Cargo.lock
declarations/*/*/*.did
dfx.json
frontend/package-lock.json
frontend/src/tests/workflows/Launchpad/sns-agg-page-*.json
rs/proposals/src/canisters/*/api.rs
rs/sns_aggregator/src/types/*.rs
2 changes: 2 additions & 0 deletions CHANGELOG-Nns-Dapp-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ proposal is successful, the changes it released will be moved from this file to

#### Added

- Reporting: Full period filter, year-to-date, and last year

#### Changed

#### Deprecated
Expand Down
2 changes: 1 addition & 1 deletion dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
"DIDC_VERSION": "didc 0.4.0",
"POCKETIC_VERSION": "3.0.1",
"CARGO_SORT_VERSION": "1.0.9",
"SNSDEMO_RELEASE": "release-2024-12-11",
"SNSDEMO_RELEASE": "release-2024-12-18",
"IC_COMMIT_FOR_PROPOSALS": "release-2024-12-06_03-16-base",
"IC_COMMIT_FOR_SNS_AGGREGATOR": "release-2024-12-06_03-16-base"
},
Expand Down
121 changes: 66 additions & 55 deletions frontend/package-lock.json

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

15 changes: 11 additions & 4 deletions frontend/src/lib/components/accounts/UiTransactionsList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,29 @@
export let transactions: UiTransaction[];
export let loading: boolean;
export let completed = false;
$: isEmpty = transactions.length === 0;
$: showSkeleton = isEmpty && loading;
$: showNoTransactions = isEmpty && !loading;
$: disabledInifiteScroll = loading || completed;
</script>

<div data-tid="transactions-list" class="container">
{#if transactions.length === 0 && !loading}
<NoTransactions />
{:else if transactions.length === 0 && loading}
{#if showSkeleton}
<SkeletonCard cardType="info" />
<SkeletonCard cardType="info" />
{:else if showNoTransactions}
<NoTransactions />
{:else}
<InfiniteScroll on:nnsIntersect disabled={loading || completed}>
<InfiniteScroll on:nnsIntersect disabled={disabledInifiteScroll}>
{#each transactions as transaction (transaction.domKey)}
<div animate:flip={{ duration: 250 }}>
<TransactionCard {transaction} />
</div>
{/each}
</InfiniteScroll>

{#if loading}
<Spinner inline />
{/if}
Expand Down
16 changes: 16 additions & 0 deletions frontend/src/lib/components/common/MenuItems.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { authSignedInStore } from "$lib/derived/auth.derived";
import { pageStore } from "$lib/derived/page.derived";
import { proposalsPathStore } from "$lib/derived/paths.derived";
import { ENABLE_PORTFOLIO_PAGE } from "$lib/stores/feature-flags.store";
import { i18n } from "$lib/stores/i18n";
import {
ACTIONABLE_PROPOSALS_URL,
Expand Down Expand Up @@ -39,6 +40,21 @@
statusIcon?: ComponentType;
}[];
$: routes = [
...($ENABLE_PORTFOLIO_PAGE
? [
{
context: "portfolio",
href: AppPath.Portfolio,
selected: isSelectedPath({
currentPath: $pageStore.path,
paths: [AppPath.Portfolio],
}),
title: $i18n.navigation.portfolio,
// TODO: Fix this once we have new version of GIX
icon: IconWallet,
},
]
: []),
{
context: "accounts",
href: AppPath.Tokens,
Expand Down
Loading

0 comments on commit 61ba75d

Please sign in to comment.