From 0c947a3837f41e46a3958dfdbce3081afc6b4fc7 Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Tue, 22 Oct 2024 14:16:18 +0200 Subject: [PATCH] Improved UX --- web/src/admin/ActivateDiscoveryService.vue | 23 ++++--- web/src/admin/CredentialDetails.vue | 14 ++-- web/src/admin/IdentityDetails.vue | 11 ++- web/src/admin/IssueCredential.vue | 78 +++++++++++----------- web/src/admin/IssuedCredentials.vue | 2 +- web/src/style.css | 12 ++++ 6 files changed, 77 insertions(+), 63 deletions(-) diff --git a/web/src/admin/ActivateDiscoveryService.vue b/web/src/admin/ActivateDiscoveryService.vue index 1270413..9b37492 100644 --- a/web/src/admin/ActivateDiscoveryService.vue +++ b/web/src/admin/ActivateDiscoveryService.vue @@ -6,18 +6,17 @@

Error: {{ fetchError }}

-
Discovery Service
- - + +
{{selectedDiscoveryService.id}}
- - + +
{{$route.params.subjectID}}
- - + +
{{selectedDiscoveryService.endpoint}}
@@ -36,10 +35,10 @@ -
{{ param.label }}
+
{{ param.label }}
- +
- - + +
{{credential.credentialSubject.id}}
- - + +
{{credentialType}}
- - + +
{{credential.issuer}}
Credential Subject
- +
diff --git a/web/src/admin/IdentityDetails.vue b/web/src/admin/IdentityDetails.vue index 4d10505..7dff2ef 100644 --- a/web/src/admin/IdentityDetails.vue +++ b/web/src/admin/IdentityDetails.vue @@ -5,7 +5,7 @@
DID Documents
-
Key
+
- - + style="cursor: pointer"> + + diff --git a/web/src/admin/IssueCredential.vue b/web/src/admin/IssueCredential.vue index 8c4f2ff..1840856 100644 --- a/web/src/admin/IssueCredential.vue +++ b/web/src/admin/IssueCredential.vue @@ -10,19 +10,20 @@
-
Credential type
- -
+
Credential properties
+
+ + +
-
-
Issuer DID
-
-
-
-
Wallet DID
- - -

The credential will be loaded into the wallet if it's owned by the local Nuts node.

-
- -
-
Fields
- - -

This will be used to set the credentials expirationDate property.

+ + + +

The credential will be loaded into the wallet if it's owned by the local Nuts node.

-
- - + +
+
+ + +

This will be used to set the credentials expirationDate property.

+
+
+ + +
diff --git a/web/src/admin/IssuedCredentials.vue b/web/src/admin/IssuedCredentials.vue index 9abc33d..cc6fc28 100644 --- a/web/src/admin/IssuedCredentials.vue +++ b/web/src/admin/IssuedCredentials.vue @@ -7,7 +7,7 @@
-
@@ -84,12 +84,11 @@
{{ credential.type.filter(t => t !== "VerifiableCredential").join(', ') }}{{ credential.issuer }}{{ credential.type.filter(t => t !== "VerifiableCredential").join(', ') }}{{ credential.issuer }} -
+
diff --git a/web/src/style.css b/web/src/style.css index cc4b736..70675a2 100644 --- a/web/src/style.css +++ b/web/src/style.css @@ -100,6 +100,10 @@ input:focus { @apply text-3xl mb-6 } +section { + @apply mt-8 bg-white p-5 shadow-lg rounded-lg +} + .page-subtitle, section header { @apply text-2xl mb-6 } @@ -124,6 +128,14 @@ input:focus { @apply bg-transparent shadow-none p-0 hover:text-black; } +.btn-danger { + @apply text-white bg-red-500; +} + +.btn-danger:hover { + background-color: #e3342f; +} + .btn-primary { @apply text-white; background-color: #1EAAE7;
Issuer