-
Notifications
You must be signed in to change notification settings - Fork 24
feat(ui): Migrate old Identifier Details page into Profile Details #1270
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
base: VT20-1965-profile-details-view
Are you sure you want to change the base?
feat(ui): Migrate old Identifier Details page into Profile Details #1270
Conversation
Co-authored-by: Vu Van Duc <[email protected]>
bb4f0c2
to
e5d2f9c
Compare
src/locales/en/en.json
Outdated
"color": "Choose card colour" | ||
} | ||
}, | ||
"clouderror": "We couldn’t locate this identifier in the cloud. It might become available again soon, but some information could be lost.\n\nIf you no longer require this identifier, tap “Delete identifier” to remove.", |
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.
Update message
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.
Done
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.
A few more comments on some naming issues and a reminder about what we talked about in DM for sorting profiles alphabetically and setting up a history of default profiles so we can fall back on the most recently used when deleting one in use.
src/locales/en/en.json
Outdated
} | ||
}, | ||
"rotatekeys": { | ||
"message": "After rotating your keys, you may experience some delays when using this identifier for a short period.", |
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.
Update message
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.
Dibe
src/locales/en/en.json
Outdated
"title": "Advanced details", | ||
"propexplain": { | ||
"title": "About advanced details", | ||
"content": "Provides additional details on this identifier for users interested in more technical insights." |
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.
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.
Done
@@ -24,7 +24,7 @@ import { | |||
} from "../../CardDetails"; | |||
import { CardTheme } from "../../CardTheme"; | |||
import { FallbackIcon } from "../../FallbackIcon"; | |||
import { IdentifierDetailModal } from "../../IdentifierDetailModule"; | |||
import { ProfileDetailModal } from "../../ProfileDetailModal"; |
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.
Should rename all Detail
to Details
just to be correct.
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.
Done
@@ -0,0 +1,257 @@ | |||
.identifier-details-module { |
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.
All ProfileDetailModal
files should be renamed to include s
in Details
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.
Done
ProfileDetailModalProps, | ||
} from "./ProfileDetailModal.types"; | ||
|
||
const ProfileDetailModule = ({ |
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.
Same as mentioned before, add missing s
in the name.
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.
Done
src/locales/en/en.json
Outdated
"title": "Signing threshold", | ||
"propexplain": { | ||
"title": "About signing threshold", | ||
"content": "Minimum number of signing keys required to approve a transaction or event within the identifier." |
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.
Please check this design update to see new updated messages for profiles: https://www.figma.com/design/xDtjsTapugXYhlUvwdCq49/Veridian-App?node-id=7514-27000&t=estZuNZWzhzD0C9W-1
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.
Done
@@ -1,18 +1,17 @@ | |||
import { HardwareBackButtonConfig } from "../PageHeader/PageHeader.types"; | |||
|
|||
interface IdentifierDetailModuleProps { | |||
interface ProfileDetailModalProps { |
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.
Change to ProfileDetailsModalProps
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.
Done
<span> | ||
{i18n.t("tabs.identifiers.details.detailmodal.you")} | ||
</span> | ||
<span>{i18n.t("profiledetails.detailmodal.you")}</span> |
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.
Change to detailsmodal
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.
Done
src/locales/en/en.json
Outdated
} | ||
}, | ||
"clouderror": "We couldn’t locate this identifier in the cloud. It might become available again soon, but some information could be lost.\n\nIf you no longer require this identifier, tap “Delete identifier” to remove.", | ||
"detailmodal": { |
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.
Change to detailsmodal
(missing s
).
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.
Done
interface IdentifierContentProps { | ||
oobi: string; | ||
cardData: IdentifierDetails; | ||
onRotateKey: () => void; | ||
setCardData: (value: IdentifierDetails) => void; | ||
} | ||
|
||
interface ProfileInformationProps { | ||
value: string; | ||
text: string; | ||
} |
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.
Looks like we're now mixing Identifier and Profile. Maybe we rename all components that use Identifier as name to Profile just to be consistent? It's ok to leave identifier in core data though, just UI components.
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.
Done
…perly (develop) (#1273) * fix(core): ipex agree filtering for connection history * refactor: save exchangepresentcredential later to minimize race conditions
2e443d5
to
2884666
Compare
5bfa14b
to
9de652e
Compare
.nsprc
Outdated
}, | ||
"1106462": { | ||
"active": true, | ||
"notes": "Appium server responses when e2e testing is unlikely to impact the wallet." |
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.
There is a new vulnerability, see here: https://github.com/cardano-foundation/veridian-wallet/pull/1265/files#diff-ef83f36aceb5c154be3decd7e4d1ea95056a5b961c69b87f0d0e983c83d265ecL23-R26
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.
Done. Please check.
@@ -324,35 +261,6 @@ describe("get identifier Cache", () => { | |||
expect(identifiersCache).toEqual(state.identifiersCache.identifiers); | |||
}); | |||
|
|||
test("should return the favourites cache from RootState", () => { |
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.
should we have a test for return the favourites for creds
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.
const favouriteIndex = isIdentifier | ||
? identifierFavouriteIndex | ||
: credFavouriteIndex; | ||
const favouriteIndex = credFavouriteIndex; |
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.
We can use credFavouriteIndex
directly
@@ -48,7 +50,7 @@ Object.defineProperty(window, "matchMedia", { | |||
})), | |||
}); | |||
|
|||
const path = TabsRoutePath.IDENTIFIERS + "/" + identifierFix[0].id; | |||
const path = TabsRoutePath.CREDENTIALS + "/" + identifierFix[0].id; |
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.
We can use string interpolation here:
${TabsRoutePath.CREDENTIALS}/${identifierFix[0].id}
src/ui/hooks/useProfile.ts
Outdated
return true; | ||
} | ||
|
||
const identifies = Object.values(identifierMap) |
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.
typo: identifiers
Description
Migrate old Identifier Details page into Profile Details
Checklist before requesting a review
Issue ticket number and link
Testing & Validation
Design Review
Set recent profile as default profile when user delete default profile
Screen.Recording.2025-07-21.at.16.12.24.mov
IOS
Screen.Recording.2025-07-21.at.16.02.11.mov
Android
Screen.Recording.2025-07-21.at.17.28.58.mov