Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 8
fix/drawers-replaced-with-component#651
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
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
2b9497f
fix/drawers-replaced-with-component
grv-saini-20 c6afb22
fix: all drawers converted into components
grv-saini-20 474176a
fix: cancel scan still not stop the stream while drawer is open
grv-saini-20 0779ecd
fix: format
grv-saini-20 f08cefa
fix: media stream stopage
grv-saini-20 66fad6e
fix: styling of the drawers
grv-saini-20 ff6f753
fix: design of drawers
grv-saini-20 479f23f
fix: design change tables added to show data
grv-saini-20 f381c72
fix: code rabbit suggestion
grv-saini-20 b0cfe7b
fix: suggestion
grv-saini-20 e776cd8
fix: button
grv-saini-20 ed19c8e
fix: css
grv-saini-20 8424270
fix: format
grv-saini-20 b0b50f4
fix: format
sosweetham a3a99e8
fix: table cell types
sosweetham fc9c57c
fix: suggestions
grv-saini-20 429ff56
Merge branch 'fix/drawers-replaced-with-component' of github.com:Meta…
grv-saini-20 ff1db0e
fix: code rabbit suggestions
grv-saini-20 8ef230d
fix: code rabbit suggestion
grv-saini-20 272ebbc
fix: follow-button-message
grv-saini-20 7a30535
Merge branch 'main' of github.com:MetaState-Prototype-Project/prototype
grv-saini-20 0914208
fix: merge conflicts
grv-saini-20 c7729fd
fix: code rabbit suggestion
grv-saini-20 26abb32
fix: code rabbit suggestion
grv-saini-20 25a55be
fix: code rabbit suggestion
grv-saini-20 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
11 changes: 7 additions & 4 deletions
11 infrastructure/eid-wallet/src/routes/(app)/scan-qr/+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
231 changes: 134 additions & 97 deletions
231 infrastructure/eid-wallet/src/routes/(app)/scan-qr/components/AuthDrawer.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
83 changes: 51 additions & 32 deletions
83 infrastructure/eid-wallet/src/routes/(app)/scan-qr/components/LoggedInDrawer.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 |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| <script lang="ts"> | ||
| import { Drawer } from "$lib/ui"; | ||
| import * as Button from "$lib/ui/Button"; | ||
| import { QrCodeIcon } from "@hugeicons/core-free-icons"; | ||
| import { HugeiconsIcon } from "@hugeicons/svelte"; | ||
| @@ -23,42 +22,62 @@ $: if (internalOpen !== lastReportedOpen) { | ||
| } | ||
| </script> | ||
| <Drawer | ||
| title="Scan QR Code" | ||
| bind:isPaneOpen={internalOpen} | ||
| class="flex flex-col gap-4 items-center justify-center" | ||
| > | ||
| {#if internalOpen} | ||
| <div | ||
| class="flex justify-center mb-4 relative items-center overflow-hidden bg-gray rounded-xl p-4 h-[72px] w-[72px]" | ||
| role="dialog" | ||
| aria-modal="true" | ||
| aria-labelledby="loggedin-title" | ||
| class="loggedin-drawer fixed inset-0 z-50 bg-white p-4 overflow-y-auto" | ||
| > | ||
| <div class="bg-white h-[16px] w-[200px] -rotate-45 absolute top-1"></div> | ||
| <div | ||
| class="bg-white h-[16px] w-[200px] -rotate-45 absolute bottom-1" | ||
| ></div> | ||
| <HugeiconsIcon | ||
| size={40} | ||
| className="z-10" | ||
| icon={QrCodeIcon} | ||
| strokeWidth={1.5} | ||
| color="var(--color-primary)" | ||
| /> | ||
| </div> | ||
| <h4>You're logged in!</h4> | ||
| <p class="text-black-700">You're now connected to {platform}</p> | ||
| class="flex flex-col justify-between min-h-full w-full max-w-md mx-auto" | ||
| > | ||
| <div class="flex flex-col items-start pt-2"> | ||
| <div | ||
| class="flex justify-center mb-4 relative items-center overflow-hidden bg-gray rounded-xl p-4 h-[72px] w-[72px]" | ||
| > | ||
| <div | ||
| class="bg-white h-4 w-[200px] -rotate-45 absolute top-1" | ||
| ></div> | ||
| <div | ||
| class="bg-white h-4 w-[200px] -rotate-45 absolute bottom-1" | ||
| ></div> | ||
| <HugeiconsIcon | ||
| size={40} | ||
| className="z-10" | ||
| icon={QrCodeIcon} | ||
| strokeWidth={1.5} | ||
| color="var(--color-primary)" | ||
| /> | ||
| </div> | ||
| <div class="flex flex-col gap-3 mt-4"> | ||
| {#if redirect && platform} | ||
| <div class="text-center mt-3"> | ||
| <p class="text-sm text-gray-600"> | ||
| You may return to {platform} and continue there | ||
| <h4 id="loggedin-title" class="text-xl font-bold"> | ||
| You're logged in! | ||
| </h4> | ||
| <p class="text-gray-700"> | ||
| You're now connected to {platform ?? "the platform"} | ||
| </p> | ||
| <div class="flex flex-col items-start py-6 w-full"> | ||
| {#if redirect && platform} | ||
| <div class="text-start"> | ||
| <p class="text-sm text-gray-600"> | ||
| You may return to <strong>{platform}</strong> and | ||
| continue there | ||
| </p> | ||
| </div> | ||
| {/if} | ||
| </div> | ||
| </div> | ||
| {/if} | ||
| <Button.Action variant="soft" class="w-full" callback={onConfirm}> | ||
| Ok | ||
| </Button.Action> | ||
| <div class="flex flex-col gap-3 pb-2 w-full"> | ||
| <Button.Action | ||
| variant="soft" | ||
| class="w-full" | ||
| callback={onConfirm} | ||
| > | ||
| Ok | ||
| </Button.Action> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </Drawer> | ||
| {/if} | ||
grv-saini-20 marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.