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: update download jwt button verify page #116

Merged
merged 24 commits into from
Nov 1, 2024

Conversation

ldhyen99
Copy link
Contributor

@ldhyen99 ldhyen99 commented Oct 4, 2024

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

Add a "Download JWT" button inline with the existing tab navigation (outside of the tabs themselves), allowing users to download the full JWT.

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

UI Desktop
image
image

UI mobile
image
image

Data after downloading VC
image
image

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

Copy link

github-actions bot commented Oct 4, 2024

Coverage report

St.❔
Category Percentage Covered / Total
🟒 Statements 100% 0/0
🟒 Branches 100% 0/0
🟒 Functions 100% 0/0
🟒 Lines 100% 0/0

Test suite run success

0 tests passing in 0 suite.

Report generated by πŸ§ͺjest coverage report action from 3e43a07

@ldhyen99 ldhyen99 marked this pull request as draft October 4, 2024 09:59
@ashleythedeveloper
Copy link
Collaborator

@ldhyen99, what's the status of this?

@ldhyen99 ldhyen99 marked this pull request as ready for review October 22, 2024 09:34
@ldhyen99
Copy link
Contributor Author

@ldhyen99, what's the status of this?

It can be reviewed now.

@ldhyen99
Copy link
Contributor Author

ldhyen99 commented Oct 23, 2024

Hi @namhoang1604 for the discuss in yesterday, after checking the code, I think we should to decode in renderByScreenStatus() of verify.tsx
image

because we use the decode data in some place in our code:
In CredentialInfo, we need issuer and issue date, which does not contain in JWT VC
image

In JsonBlock, we need to decode data to display on the UI
image

Should we be flexible in renderer? We will need more steps to pass the decode JWT for only render while could use data that has been decode
image

@namhoang1604
Copy link
Collaborator

@ldhyen99 I think we need to add the decodedEnvelopedVC to the prop of the component

.vscode/launch.json Outdated Show resolved Hide resolved
huynguyen-hl
huynguyen-hl previously approved these changes Oct 25, 2024
Copy link

github-actions bot commented Oct 29, 2024

Code Coverage Report

Lines Statements Branches Functions
Coverage: 79%
77.76% (2724/3503) 62.3% (524/841) 74.15% (307/414)
Title Lines Statements Branches Functions
All packages Coverage: 79%
77.76% (2724/3503) 62.3% (524/841) 74.15% (307/414)
Components Coverage: 85%
84.85% (510/601) 73.75% (118/160) 77.04% (94/122)
Mock app Coverage: 69%
69.59% (357/513) 49.26% (67/136) 67.85% (76/112)
Services Coverage: 75%
70.62% (880/1246) 52.6% (202/384) 75% (96/128)
UNTP test suite Coverage: 57%
57.78% (991/1715) 82.53% (137/166) 71.92% (41/57)
VC test suite Coverage: 6%
5.85% (12/205) 4.34% (2/46)

@ldhyen99 ldhyen99 marked this pull request as draft October 29, 2024 08:45
@ldhyen99 ldhyen99 marked this pull request as ready for review October 30, 2024 09:30
@namhoang1604 namhoang1604 merged commit 962e099 into next Nov 1, 2024
1 check passed
@namhoang1604 namhoang1604 deleted the feat/update_download_jwt_button_verify_page branch November 1, 2024 04:09
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.

4 participants