Skip to content

Commit 91f97eb

Browse files
authored
Fix/UI ux improvements eid wallet (#584)
* fix: deeplink consistency * fix: lint * fix: platform issues * fix: blabsy parsing * fix: navigaton after deeplink login * fix: immature errors * fix: application state and login errors * chore: fix login issue * chore: fix ereputation logout issue * chore: fix erep login issue * fix: erep login issue * fix: ereputation token parsing * chore: switch to axios instead of fetch * chore: add debug logging * fix : duplicate case for many patches * chore: format
1 parent 89279da commit 91f97eb

File tree

33 files changed

+1037
-408
lines changed

33 files changed

+1037
-408
lines changed

infrastructure/eid-wallet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eid-wallet",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "",
55
"type": "module",
66
"scripts": {

infrastructure/eid-wallet/src-tauri/gen/android/.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/eid-wallet/src-tauri/gen/android/.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/eid-wallet/src-tauri/gen/android/app/arm64/release/app-arm64-release.aab renamed to infrastructure/eid-wallet/src-tauri/gen/android/app/arm64/release/app-arm64-release.apk

11.6 MB
Binary file not shown.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"version": 3,
3+
"artifactType": {
4+
"type": "APK",
5+
"kind": "Directory"
6+
},
7+
"applicationId": "foundation.metastate.eid_wallet",
8+
"variantName": "arm64Release",
9+
"elements": [
10+
{
11+
"type": "SINGLE",
12+
"filters": [],
13+
"attributes": [],
14+
"versionCode": 12,
15+
"versionName": "0.5.0",
16+
"outputFile": "app-arm64-release.apk"
17+
}
18+
],
19+
"elementType": "File",
20+
"baselineProfiles": [
21+
{
22+
"minApi": 28,
23+
"maxApi": 30,
24+
"baselineProfiles": [
25+
"baselineProfiles/1/app-arm64-release.dm"
26+
]
27+
},
28+
{
29+
"minApi": 31,
30+
"maxApi": 2147483647,
31+
"baselineProfiles": [
32+
"baselineProfiles/0/app-arm64-release.dm"
33+
]
34+
}
35+
],
36+
"minSdkVersionForDexing": 24
37+
}

infrastructure/eid-wallet/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "eID for W3DS",
4-
"version": "0.4.0",
4+
"version": "0.5.0",
55
"identifier": "foundation.metastate.eid-wallet",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

infrastructure/eid-wallet/src/lib/fragments/IdentityCard/IdentityCard.svelte

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as Button from "$lib/ui/Button";
33
import { cn } from "$lib/utils";
44
import {
55
CheckmarkBadge02Icon,
6-
Upload03Icon,
6+
Copy01Icon,
77
ViewIcon,
88
} from "@hugeicons/core-free-icons";
99
import { HugeiconsIcon } from "@hugeicons/svelte";
@@ -17,6 +17,7 @@ interface IIdentityCard extends HTMLAttributes<HTMLElement> {
1717
userId?: string;
1818
viewBtn?: () => void;
1919
shareBtn?: () => void;
20+
copyBtn?: () => void;
2021
userData?: userData;
2122
totalStorage?: number;
2223
usedStorage?: number;
@@ -27,6 +28,7 @@ const {
2728
userId,
2829
viewBtn,
2930
shareBtn,
31+
copyBtn,
3032
userData,
3133
totalStorage = 0,
3234
usedStorage = 0,
@@ -69,20 +71,12 @@ const baseClasses = `relative ${variant === "eName" ? "bg-black-900" : variant =
6971
icon={CheckmarkBadge02Icon}
7072
/>
7173
<div class="flex gap-3 items-center">
72-
{#if shareBtn}
74+
{#if copyBtn}
7375
<Button.Icon
74-
icon={Upload03Icon}
76+
icon={Copy01Icon}
7577
iconColor={"white"}
7678
strokeWidth={2}
77-
onclick={shareBtn}
78-
/>
79-
{/if}
80-
{#if viewBtn}
81-
<Button.Icon
82-
icon={ViewIcon}
83-
iconColor={"white"}
84-
strokeWidth={2}
85-
onclick={viewBtn}
79+
onclick={copyBtn}
8680
/>
8781
{/if}
8882
</div>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<script lang="ts">
2+
import { onMount } from "svelte";
3+
import type { HTMLAttributes } from "svelte/elements";
4+
5+
interface IToast extends HTMLAttributes<HTMLElement> {
6+
message: string;
7+
duration?: number;
8+
onClose?: () => void;
9+
}
10+
11+
const { message, duration = 3000, onClose, ...restProps }: IToast = $props();
12+
13+
let isVisible = $state(true);
14+
15+
onMount(() => {
16+
const timer = setTimeout(() => {
17+
isVisible = false;
18+
setTimeout(() => {
19+
onClose?.();
20+
}, 300); // Wait for fade out animation
21+
}, duration);
22+
23+
return () => clearTimeout(timer);
24+
});
25+
</script>
26+
27+
{#if isVisible}
28+
<div
29+
{...restProps}
30+
class="fixed bottom-[30px] left-1/2 -translate-x-1/2 z-50 w-[90%] bg-primary-500 text-white px-6 py-3 rounded-lg shadow-lg transition-opacity duration-300 {isVisible
31+
? 'opacity-100'
32+
: 'opacity-0'}"
33+
role="alert"
34+
>
35+
<div class="flex items-center gap-2">
36+
<svg
37+
class="w-5 h-5"
38+
fill="none"
39+
stroke="currentColor"
40+
viewBox="0 0 24 24"
41+
>
42+
<path
43+
stroke-linecap="round"
44+
stroke-linejoin="round"
45+
stroke-width="2"
46+
d="M5 13l4 4L19 7"
47+
/>
48+
</svg>
49+
<span class="font-medium">{message}</span>
50+
</div>
51+
</div>
52+
{/if}

0 commit comments

Comments
 (0)