Skip to content

Commit 8fee133

Browse files
committed
Refactor API usage analytics and playground components
- Added conditional rendering for production environment in ApiUsage.vue. - Enhanced status badge styles in Business.vue for better UI consistency. - Simplified approval and rejection logic in BusinessDetails.vue, improving error handling and user notifications. - Corrected description text in KybWidgetConfig/Index.vue for clarity. - Integrated loading component in ApproveCustomerOnboarding.vue and CreditRecharge.vue, improving user experience during async operations. - Removed redundant feedback message handling in ComplianceCheck.vue, replacing it with direct notifications.
1 parent 0f883ee commit 8fee133

File tree

11 files changed

+793
-729
lines changed

11 files changed

+793
-729
lines changed

src/App.vue

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,40 @@
248248
background-color: transparent !important;
249249
color: #66666a !important;
250250
}
251+
252+
/* Environment Banner */
253+
.env-banner {
254+
display: inline-flex;
255+
align-items: center;
256+
gap: 5px;
257+
padding: 3px 10px;
258+
font-size: 0.68rem;
259+
font-weight: 700;
260+
letter-spacing: 0.04em;
261+
text-transform: uppercase;
262+
border-radius: 20px;
263+
}
264+
265+
.env-banner--dev {
266+
background-color: #fef3c7;
267+
color: #92400e;
268+
border: 1px solid #fde68a;
269+
}
270+
271+
.env-banner__dot {
272+
width: 6px;
273+
height: 6px;
274+
border-radius: 50%;
275+
flex-shrink: 0;
276+
background-color: #d97706;
277+
}
278+
279+
.env-banner__app {
280+
font-weight: 400;
281+
opacity: 0.75;
282+
text-transform: none;
283+
letter-spacing: 0;
284+
}
251285
</style>
252286
<template>
253287
<div id="app" data-app>
@@ -262,6 +296,14 @@
262296
<img src="./assets/Entity_full.png" alt="Logo" class="nav-logo-img" />
263297
</b-navbar-brand>
264298

299+
<div
300+
v-if="getSelectedService && getSelectedService.env !== 'prod'"
301+
class="env-banner env-banner--dev "
302+
>
303+
<span class="env-banner__dot"></span>
304+
<span class="env-banner__label">Development Mode</span>
305+
</div>
306+
265307
<b-navbar-toggle target="nav-collapse"></b-navbar-toggle>
266308

267309
<b-collapse id="nav-collapse" is-nav v-if="userDetails">

src/components/business-details/BusinessInformation.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -335,30 +335,30 @@ export default {
335335
}
336336
337337
.status-submitted {
338-
background: #dbeafe;
339-
color: #1e40af;
338+
background-color: #f3f4f6;
339+
color: #374151;
340340
}
341341
342342
.status-inprogress {
343-
background: #fef3c7;
343+
background-color: #fef3c7;
344344
color: #92400e;
345345
}
346346
347+
.status-completed {
348+
background-color: #dbeafe;
349+
color: #1e40af;
350+
}
351+
347352
.status-approved {
348-
background: #d1fae5;
349-
color: #065f46;
353+
background-color: #f0fdf4;
354+
color: #166534;
350355
}
351356
352357
.status-rejected {
353-
background: #fee2e2;
358+
background-color: #fef2f2;
354359
color: #991b1b;
355360
}
356361
357-
.status-completed {
358-
background: #dcfce7;
359-
color: #166534;
360-
}
361-
362362
/* Verification Progress */
363363
.verification-progress {
364364
display: grid;

src/components/login/mfa/VerifyMfa.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="row">
88
<div class="col">
99
<div class="form-group">
10-
<tool-tip infoMessage="Select issuer DID for this app"></tool-tip>
10+
<tool-tip infoMessage="Select An Authentication App"></tool-tip>
1111
<label for="selectService"><strong>Select An Authentication App<span
1212
style="color: red">*</span>:
1313
</strong></label>
@@ -24,7 +24,7 @@
2424
<div class="row" v-if="authenticationMethod">
2525
<div class="col">
2626
<div class="form-group">
27-
<tool-tip infoMessage="Select issuer DID for this app"></tool-tip>
27+
<tool-tip infoMessage="Enter the 6-digit code from your authentication app"></tool-tip>
2828
<label for="selectService"><strong>A 6-digit authentication code has been sent to your
2929
device.
3030
Enter the code to

0 commit comments

Comments
 (0)