-
Notifications
You must be signed in to change notification settings - Fork 4
feat: settings-flow #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
9508eb3
feat: settings-flow
grv-saini-20 e40d432
Merge branch 'main' into feat/settings-flow
grv-saini-20 27ed83c
feat: settings and language page
grv-saini-20 808341a
feat
grv-saini-20 8a736f8
feat: change pin page
grv-saini-20 56dfcff
fix: height of selector
grv-saini-20 6202f4b
fix: pin change page
grv-saini-20 3d4b0aa
fix: size of input pin
grv-saini-20 3c24428
fix: spacing of pins
grv-saini-20 07afca8
feat: AppNav fragment
JulienAuvo 83685ec
fix: height of page
grv-saini-20 27f03c6
fix: padding
grv-saini-20 8819234
fix: remove redundant code
grv-saini-20 6e1cdfe
feat: privacy page
grv-saini-20 7acb142
chore: add doc
JulienAuvo 4ed143b
feat: add storage specification abstract class
coodos de99358
fix: error state
grv-saini-20 691b85c
chore: format and ignore lint
coodos 776666b
chore: change format checker on w3id
coodos 75d95d2
feat: remove redundant code
grv-saini-20 7b40614
fix: merge conflicts
grv-saini-20 8c9170e
Merge remote-tracking branch 'origin/feat/appnav-fragment' into feat/…
grv-saini-20 f2f6473
chore: used app nav component
grv-saini-20 0bb1e75
Merge remote-tracking branch 'origin/feat/id-log-generation' into fea…
grv-saini-20 927a572
fix: text-bold
grv-saini-20 aa2ff96
fix: design of e-passport page
grv-saini-20 fd43f17
fix: content
grv-saini-20 427adf3
fix: e-passport page
grv-saini-20 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { default as Drawer } from "./Drawer/Drawer.svelte"; | ||
export { default as InputPin } from "./InputPin/InputPin.svelte"; | ||
export { default as ButtonAction } from "./Button/ButtonAction.svelte"; | ||
export { default as Selector } from "./Selector/Selector.svelte"; |
11 changes: 11 additions & 0 deletions
11
infrastructure/eid-wallet/src/routes/(app)/settings/+layout.svelte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script lang="ts"> | ||
import { Header } from "$lib/fragments"; | ||
import { runtime } from "$lib/global/runtime.svelte"; | ||
|
||
const { children } = $props(); | ||
</script> | ||
|
||
<main class="h-[100vh] px-[5vw] pb-[4.5vh]"> | ||
<Header title={runtime.header.title ?? ""}/> | ||
{@render children?.()} | ||
</main> |
24 changes: 24 additions & 0 deletions
24
infrastructure/eid-wallet/src/routes/(app)/settings/+page.svelte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script lang="ts"> | ||
import { SettingsNavigationBtn } from "$lib/fragments"; | ||
import { runtime } from "$lib/global/runtime.svelte"; | ||
import { | ||
Key01Icon, | ||
LanguageSquareIcon, | ||
Link02Icon, | ||
PinCodeIcon, | ||
Shield01Icon, | ||
} from "@hugeicons/core-free-icons"; | ||
|
||
$effect(() => { | ||
runtime.header.title = "Settings"; | ||
}); | ||
</script> | ||
|
||
<main> | ||
<!-- header part --> | ||
<SettingsNavigationBtn icon={LanguageSquareIcon} label="Language" href="/settings/language"/> | ||
<SettingsNavigationBtn icon={Link02Icon} label="History" href="/settings/history"/> | ||
<SettingsNavigationBtn icon={PinCodeIcon} label="Pin" href="/settings/pin"/> | ||
<SettingsNavigationBtn icon={Key01Icon} label="Keys" href="/settings/keys"/> | ||
<SettingsNavigationBtn icon={Shield01Icon} label="Privacy" href="/settings/privacy"/> | ||
</main> |
10 changes: 10 additions & 0 deletions
10
infrastructure/eid-wallet/src/routes/(app)/settings/history/+page.svelte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script lang="ts"> | ||
import { runtime } from "$lib/global/runtime.svelte"; | ||
|
||
$effect(() => { | ||
runtime.header.title = "History"; | ||
}); | ||
</script> | ||
|
||
<main> | ||
</main> |
31 changes: 31 additions & 0 deletions
31
infrastructure/eid-wallet/src/routes/(app)/settings/language/+page.svelte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script lang="ts"> | ||
import { runtime } from "$lib/global/runtime.svelte"; | ||
import { Selector } from "$lib/ui"; | ||
|
||
let languages: { name: string; country: string }[] = [ | ||
{ name: "English", country: "gb" }, | ||
{ name: "Spanish", country: "es" }, | ||
{ name: "German", country: "de" }, | ||
{ name: "French", country: "fr" }, | ||
]; | ||
let selected = $state(""); | ||
|
||
$effect(() => { | ||
runtime.header.title = "Language"; | ||
}); | ||
</script> | ||
|
||
|
||
|
||
<main> | ||
{#each languages as lang, i} | ||
<Selector id={`option-${i}`} name={lang.name} bind:selected value={lang.name}> | ||
{lang.name} | ||
{#snippet icon()} | ||
<div | ||
class={`rounded-full fi fis fi-${lang.country} scale-150 mr-12 outline-8 outline-gray`} | ||
></div> | ||
{/snippet} | ||
</Selector> | ||
{/each} | ||
</main> |
59 changes: 59 additions & 0 deletions
59
infrastructure/eid-wallet/src/routes/(app)/settings/pin/+page.svelte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<script lang="ts"> | ||
import { runtime } from "$lib/global/runtime.svelte"; | ||
import { ButtonAction, Drawer, InputPin } from "$lib/ui"; | ||
import { CircleLock01Icon } from "@hugeicons/core-free-icons"; | ||
import { HugeiconsIcon } from "@hugeicons/svelte"; | ||
|
||
let currentPin = $state(""); | ||
let newPin = $state(""); | ||
let repeatPin = $state(""); | ||
let isError = $state(false); | ||
let showDrawer = $state(false); | ||
|
||
const handleClose = async () => { | ||
// close functionality goes here. | ||
showDrawer = false; | ||
}; | ||
|
||
const handleChangePIN = async () => { | ||
if (repeatPin.length === 4 && newPin !== repeatPin) isError = true; | ||
if (!isError) showDrawer = true; | ||
}; | ||
|
||
$effect(() => { | ||
runtime.header.title = "Change PIN"; | ||
if (repeatPin.length === 4 && newPin === repeatPin) isError = false; | ||
}); | ||
</script> | ||
|
||
<main class="h-[calc(100vh-14vh)] flex flex-col justify-between pt-[3vh]"> | ||
<section> | ||
<div> | ||
<p class="mb-[1vh]">Enter you current PIN</p> | ||
<InputPin bind:pin={currentPin} variant="sm"/> | ||
</div> | ||
<div> | ||
<p class="mb-[1vh]">Enter your new PIN</p> | ||
<InputPin bind:pin={newPin} {isError} variant="sm"/> | ||
</div> | ||
<div> | ||
<p class="mb-[1vh]">Confirm new PIN</p> | ||
<InputPin bind:pin={repeatPin} {isError} variant="sm"/> | ||
</div> | ||
<p class={`text-danger mt-[3.4vh] ${isError ? "block" : "hidden"}`}>Your PIN does not match, try again.</p> | ||
</section> | ||
<ButtonAction class="w-full" callback={handleChangePIN}>Change PIN</ButtonAction> | ||
</main> | ||
|
||
<Drawer bind:isPaneOpen={showDrawer} isCancelRequired={true}> | ||
<div class="relative bg-gray w-[72px] h-[72px] rounded-[24px] flex justify-center items-center mb-[2.3vh]"> | ||
<span class="relative z-[1]"> | ||
<HugeiconsIcon icon={CircleLock01Icon} color="var(--color-primary)"/> | ||
</span> | ||
<img class="absolute top-0 start-0" src="/images/Line.svg" alt="line"> | ||
<img class="absolute top-0 start-0" src="/images/Line2.svg" alt="line"> | ||
</div> | ||
<h4>Pin code changed!</h4> | ||
<p class="text-black-700 mt-[0.5vh] mb-[2.3vh]">Your PIN has been changed.</p> | ||
<ButtonAction class="w-full" callback={handleClose}>Close</ButtonAction> | ||
</Drawer> |
34 changes: 34 additions & 0 deletions
34
infrastructure/eid-wallet/src/routes/(app)/settings/privacy/+page.svelte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<script lang="ts"> | ||
import { runtime } from "$lib/global/runtime.svelte"; | ||
|
||
$effect(() => { | ||
runtime.header.title = "Privacy"; | ||
}); | ||
</script> | ||
|
||
<main> | ||
<h4>Last modified 19th March 2025</h4> | ||
<p class="text-black-700">Welcome to eID Wallet! Your privacy is important to us. This Privacy Policy explains how we collect, use, disclose, and protect your personal information when you use our mobile application.</p> | ||
<br> | ||
<h4>1. Information We Collect</h4> | ||
<p class="text-black-700">We collect the following types of information to provide and improve our services:</p> | ||
<ol type="a"> | ||
<li><strong>Personal Identification Data</strong> | ||
<ul> | ||
<li>Full name, date of birth, government-issued ID details</li> | ||
<li>Phone number, email address (if used for recovery)</li> | ||
</ul> | ||
</li> | ||
<li><strong>Biometric Data (Optional)</strong> | ||
<ul> | ||
<li>Fingerprint, facial recognition (only stored on your device for authentication purposes)</li> | ||
</ul> | ||
</li> | ||
<li><strong>Device & Usage Information</strong> | ||
<ul> | ||
<li>Device type, operating system, and app usage data</li> | ||
<li>IP address and session activity</li> | ||
</ul> | ||
</li> | ||
</ol> | ||
</main> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.