Skip to content
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

feat: ui flow for offline sharing #211

Merged
merged 18 commits into from
Nov 25, 2024
Merged

feat: ui flow for offline sharing #211

merged 18 commits into from
Nov 25, 2024

Conversation

janrtvld
Copy link
Contributor

@janrtvld janrtvld commented Nov 13, 2024

There is one issue when you leave and come back again the QR code is sometimes invalid. I dont know if this is because i'm on a dev server or not, so we should see if this works when released.

Here is a video of the flow (with fake data on iPhone, but i can't nicely record on Android).

ScreenRecording_11-19-2024.11-23-24_1.1.MP4

@janrtvld janrtvld marked this pull request as ready for review November 20, 2024 15:39
pushToOfflinePresentation({
sessionTranscript: Buffer.from(data.sessionTranscript).toString('base64'),
deviceRequest: Buffer.from(data.deviceRequest).toString('base64'),
requestedAttributes: Object.entries(requestedNamespace).map(([key]) => key),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we only handle the requested namespaces (not attributes within?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It takes the requestedNamespace which is equal to the pid, and in there are the attributes requested.

credentialDataHandlerOptions?: CredentialDataHandlerOptions
}

export function FunkeQrScannerScreen({ credentialDataHandlerOptions }: QrScannerScreenProps) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's sort of ok with the deadline now, but i think it would have been better to split this into a generic scan/show component that can be used in both paradym and easypid and then add a showQrCode and exrract all the mdoc specific logic out of here.

@janrtvld janrtvld merged commit d3242ce into main Nov 25, 2024
1 check passed
@janrtvld janrtvld deleted the feat/qr-flow branch November 25, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants