Skip to content

Commit a3a9616

Browse files
feat: add deprecation disclaimer and popup (#8664)
* add disclaimer and popup * update popup for shimmer network * update contetn, allow external url and rename popup --------- Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>
1 parent 4bea4ac commit a3a9616

File tree

6 files changed

+62
-0
lines changed

6 files changed

+62
-0
lines changed

packages/desktop/App.svelte

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
void setupI18n({ fallbackLocale: 'en', initialLocale: $appSettings.language })
8282
8383
onMount(async () => {
84+
openPopup({ id: PopupId.AppDeprecation })
8485
features.analytics.appStart.enabled && Platform.trackEvent('app-start')
8586
await cleanupEmptyProfiles()
8687
checkAndMigrateProfiles()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<script lang="ts">
2+
import { Button, Text, TextType, TextHint } from 'shared/components'
3+
import { TextHintVariant } from 'shared/components/enums'
4+
import { getEnabledNetworkFromFeatureFlags } from '@core/network'
5+
import { NetworkId } from '@core/network/enums'
6+
7+
const NETWORK_ID = getEnabledNetworkFromFeatureFlags()
8+
9+
function onLinkClick(): void {
10+
window.open('https://chrome.google.com/webstore/detail/iota-wallet/iidjkmdceolghepehaaddojmnjnkkija', '_blank')
11+
}
12+
</script>
13+
14+
{#if NETWORK_ID === [NetworkId.Shimmer] || NETWORK_ID === [NetworkId.ShimmerTestnet]}
15+
<Text type={TextType.h5} classes="mb-5">Firefly Shimmer is no longer maintained</Text>
16+
<div class="flex w-full flex-col space-y-6">
17+
<div class="flex w-full flex-col space-y-4">
18+
<TextHint
19+
variant={TextHintVariant.Info}
20+
text="Firefly Shimmer is no longer maintained or receiving updates"
21+
/>
22+
<Text fontSize="15"
23+
>Firefly Shimmer is no longer actively maintained by the IOTA Foundation. Please use it at your own
24+
risk, as future issues or vulnerabilities may not be addressed.</Text
25+
>
26+
</div>
27+
</div>
28+
{:else}
29+
<Text type={TextType.h5} classes="mb-5">Switch to the new IOTA Wallet</Text>
30+
<div class="flex w-full flex-col space-y-6">
31+
<div class="flex w-full flex-col space-y-4">
32+
<TextHint variant={TextHintVariant.Info} text="Firefly is no longer maintained or receiving updates" />
33+
<Text fontSize="15"
34+
>Firefly is no longer actively maintained by the IOTA Foundation and is no longer compatible with the
35+
new IOTA Network.
36+
</Text>
37+
<Text fontSize="15">Please switch to our new IOTA Wallet browser extension.</Text>
38+
</div>
39+
<Button classes="w-full" onClick={onLinkClick}>Download New IOTA Wallet</Button>
40+
</div>
41+
{/if}

packages/desktop/components/popups/Popup.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
import PayoutDetailsPopup from './PayoutDetailsPopup.svelte'
5959
import VestingRewardsFinderPopup from './VestingRewardsFinderPopup.svelte'
6060
import WithdrawFromL2Popup from './WithdrawFromL2Popup.svelte'
61+
import AppDeprecationPopup from './AppDeprecationPopup.svelte'
6162
import GetSeedPopup from './GetSeedPopup.svelte'
6263
6364
export let id: PopupId
@@ -147,6 +148,7 @@
147148
[PopupId.PayoutDetails]: PayoutDetailsPopup,
148149
[PopupId.VestingRewardsFinder]: VestingRewardsFinderPopup,
149150
[PopupId.WithdrawFromL2]: WithdrawFromL2Popup,
151+
[PopupId.AppDeprecation]: AppDeprecationPopup,
150152
[PopupId.GetSeedPopup]: GetSeedPopup,
151153
}
152154

packages/desktop/views/dashboard/Dashboard.svelte

+15
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,21 @@
141141

142142
<Idle />
143143
<div class="dashboard-wrapper flex flex-col w-full h-full">
144+
{#if $activeProfile?.network?.id !== NetworkId.Shimmer || $activeProfile?.network?.id !== NetworkId.ShimmerTestnet}
145+
<div
146+
class=" bg-blue-100 dark:bg-gray-800 flex flex-row gap-1 items-center justify-center py-2 font-400 text-13 leading-160 text-center"
147+
>
148+
<span class=" text-gray-800 dark:text-white max-w-lg"
149+
>Please switch to the new IOTA Wallet for continued support and updates.
150+
</span>
151+
<a
152+
href="https://chromewebstore.google.com/detail/iota-wallet/iidjkmdceolghepehaaddojmnjnkkija"
153+
target="_blank"
154+
rel="noopener noreferrer"
155+
class="text-blue-500 underline">Download here</a
156+
>
157+
</div>
158+
{/if}
144159
<TopNavigation />
145160
<div class="flex flex-row flex-auto h-1">
146161
<Sidebar />

packages/shared/lib/auxiliary/popup/enums/popup-id.enum.ts

+1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ export enum PopupId {
5050
PayoutDetails = 'payoutDetails',
5151
VestingRewardsFinder = 'vestingRewardsFinder',
5252
WithdrawFromL2 = 'withdrawFromL2',
53+
AppDeprecation = 'AppDeprecation',
5354
GetSeedPopup = 'getseed',
5455
}

packages/shared/lib/core/app/constants/external-allowed-links.constant.ts

+2
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ export const externalAllowedLinks = [
2323

2424
// Other
2525
'support.ledger.com',
26+
// New extension wallet
27+
'chromewebstore.google.com/detail/iota-wallet/iidjkmdceolghepehaaddojmnjnkkija',
2628
]

0 commit comments

Comments
 (0)