-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conversation
Signed-off-by: Jan <hey@janrietveld.com>
apps/easypid/src/app/(app)/notifications/offlinePresentation.tsx
Outdated
Show resolved
Hide resolved
pushToOfflinePresentation({ | ||
sessionTranscript: Buffer.from(data.sessionTranscript).toString('base64'), | ||
deviceRequest: Buffer.from(data.deviceRequest).toString('base64'), | ||
requestedAttributes: Object.entries(requestedNamespace).map(([key]) => key), |
There was a problem hiding this comment.
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?)
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
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