Skip to content

Commit

Permalink
Merge branch 'gurj/refresh-pw' of https://github.com/bcgov/traction i…
Browse files Browse the repository at this point in the history
…nto gurj/refresh-pw
  • Loading branch information
gurjmatharu committed Oct 25, 2023
2 parents 13a724a + 9d28b44 commit 2dd2790
Show file tree
Hide file tree
Showing 22 changed files with 453 additions and 167 deletions.
3 changes: 3 additions & 0 deletions charts/traction/templates/ui/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ data:
UX_COVERIMAGE_COPYRIGHT: {{ .Values.ui.ux.coverImageCopyright | quote }}
UX_OWNER: {{ .Values.ui.ux.owner | quote }}
UX_SIDEBAR_TITLE: {{ .Values.ui.ux.sidebarTitle | quote }}
UX_INFO_BANNER_MESSAGE: {{ .Values.ui.ux.infoBanner.message | quote }}
UX_INFO_BANNER_MESSAGE_LEVEL: {{ .Values.ui.ux.infoBanner.messageLevel | quote }}
UX_INFO_BANNER_SHOW_MESSAGE: {{ .Values.ui.ux.infoBanner.showMessage | quote }}
{{- end -}}
16 changes: 15 additions & 1 deletion charts/traction/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ acapy:
is_production: true
is_write: true
genesis_url: "http://dev.bcovrin.vonx.io/genesis"
endorser_did: "VGA8QzjQaL5xkXRHjAgQcj"
endorser_did: "N5bxk3jWkpZ2tEaMtjPjPa"
endorser_alias: "bcovrin-dev-endorser"

## @section Wallet Storage configuration
Expand Down Expand Up @@ -612,6 +612,20 @@ ui:
## @param ui.ux.coverImageCopyright
coverImageCopyright: "Photo by Kristoffer Fredriksson on StockSnap"

## Information banner settings
##
infoBanner:
## @param ui.ux.infoBanner.message
message: ""
## @param ui.ux.infoBanner.messageLevel <info|warn|error|success>
messageLevel: info
## @param ui.ux.infoBanner.showMessage Show the info banner <boolean>
showMessage: false
## @param ui.ux.infoBanner.environmentName Environment name to be displayed eg. "Development"
environmentName: ""
## @param ui.ux.infoBanner.showEnvironmentName Show the environment name <boolean>
showEnvironmentName: false

ariesDetails:
## @param ui.ariesDetails.ledgerDescription Ledger description
ledgerDescription: "bcovrin-test"
Expand Down
22 changes: 22 additions & 0 deletions deploy/traction/values-development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ acapy:
generated: true
pluginInnkeeper:
generated: true
ledgers.yml:
- id: bcovrin-test
is_production: true
is_write: true
genesis_url: "http://test.bcovrin.vonx.io/genesis"
endorser_did: "Ket75eV5UQvVkW2XBjgDH7"
endorser_alias: "bcovrin-test-endorser"
- id: bcovrin-dev
is_production: true
is_write: true
genesis_url: "http://dev.bcovrin.vonx.io/genesis"
endorser_did: "N5bxk3jWkpZ2tEaMtjPjPa"
endorser_alias: "bcovrin-dev-endorser"
- id: sovrin-testnet
is_production: true
is_write: true
genesis_url: "https://raw.githubusercontent.com/sovrin-foundation/sovrin/stable/sovrin/pool_transactions_sandbox_genesis"
endorser_did: "EZpKx6nT56Hv83JmNz7ik8"
endorser_alias: "sovrin-testnet-endorser"
plugin-config.yml:
traction_innkeeper:
innkeeper_wallet:
Expand All @@ -17,9 +36,12 @@ acapy:
ledger_id: bcovrin-test
- endorser_alias: bcovrin-dev-endorser
ledger_id: bcovrin-dev
- endorser_alias: sovrin-testnet-endorser
ledger_id: sovrin-testnet
create_public_did:
- bcovrin-test
- bcovrin-dev
- sovrin-testnet
reservation:
expiry_minutes: 7200
walletStorageConfig:
Expand Down
24 changes: 23 additions & 1 deletion deploy/traction/values-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,25 @@ acapy:
tenantid: "innkeeper"
argfile.yml:
wallet-name: default
ledgers.yml:
- id: bcovrin-test
is_production: true
is_write: true
genesis_url: "http://test.bcovrin.vonx.io/genesis"
endorser_did: "Ket75eV5UQvVkW2XBjgDH7"
endorser_alias: "bcovrin-test-endorser"
- id: bcovrin-dev
is_production: true
is_write: true
genesis_url: "http://dev.bcovrin.vonx.io/genesis"
endorser_did: "N5bxk3jWkpZ2tEaMtjPjPa"
endorser_alias: "bcovrin-dev-endorser"
- id: sovrin-testnet
is_production: true
is_write: true
genesis_url: "https://raw.githubusercontent.com/sovrin-foundation/sovrin/stable/sovrin/pool_transactions_sandbox_genesis"
endorser_did: "EZpKx6nT56Hv83JmNz7ik8"
endorser_alias: "sovrin-testnet-endorser"
plugin-config.yml:
traction_innkeeper:
innkeeper_wallet:
Expand All @@ -22,12 +41,15 @@ acapy:
ledger_id: bcovrin-test
- endorser_alias: bcovrin-dev-endorser
ledger_id: bcovrin-dev
- endorser_alias: sovrin-testnet-endorser
ledger_id: sovrin-testnet
create_public_did:
- bcovrin-test
- bcovrin-dev
- sovrin-testnet
reservation:
expiry_minutes: 2880
auto_approve: true
auto_approve: false
auto_issuer: true
resources:
limits:
Expand Down
5 changes: 5 additions & 0 deletions services/tenant-ui/config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"linkTitle": "UX_ABOUT_LINK_TITLE",
"linkText": "UX_ABOUT_LINK_TEXT",
"imageUrl": "UX_ABOUT_IMAGE_URL"
},
"infoBanner": {
"message": "UX_INFO_BANNER_MESSAGE",
"messageLevel": "UX_INFO_BANNER_MESSAGE_LEVEL",
"showMessage": "UX_INFO_BANNER_SHOW_MESSAGE"
}
},
"ariesDetails": {
Expand Down
7 changes: 7 additions & 0 deletions services/tenant-ui/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
"linkTitle": "BC Digital Trust Service Agreement",
"link": "https://github.com/bcgov/bc-vcpedia/blob/main/agents/bc-gov-agent-service.md",
"imageUrl": "/img/bc/bc_logo.png"
},
"infoBanner": {
"message": "",
"messageLevel": "info",
"showMessage": false,
"environmentName": "",
"showEnvironmentName": false
}
},
"ariesDetails": {
Expand Down
12 changes: 6 additions & 6 deletions services/tenant-ui/frontend/src/assets/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ body {
}

// The app layout
.layout-container {
.alert-container {
display: flex;
flex-direction: row;
align-items: flex-start;
flex-direction: column;
min-height: 100vh;
}
.layout-container {
flex-grow: 1;
display: flex;
width: 100%;
.layout-sidebar {
align-self: stretch;
background-color: $tenant-ui-primary-color;
color: $tenant-ui-text-on-primary;
min-width: 20em;
Expand All @@ -27,13 +29,11 @@ body {

.layout-page {
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
}

.layout-header {
flex: 0;
background-color: white;
}

Expand Down
3 changes: 2 additions & 1 deletion services/tenant-ui/frontend/src/components/Login.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<div class="traction-login grid w-screen h-screen">
<!--TODO: This should eventually go somewhere else-->
<div class="traction-login grid w-screen flex-grow-1">
<div class="col-12 md:col-6 xl:col-4">
<div class="px-8">
<div class="pt-4 pb-6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
<template #header>
<div class="flex justify-content-between">
<div class="flex justify-content-start">
<CreateConnection :multi="false" class="mr-3" />
<CreateConnection :multi="true" />
<CreateConnection />
</div>
<div class="flex justify-content-end">
<span class="p-input-icon-left">
Expand Down Expand Up @@ -78,6 +77,23 @@
/>
</template>
</Column>
<Column
:sortable="true"
field="protocol"
:header="$t('common.protocol')"
filter-field="protocol"
:show-filter-match-modes="false"
>
<template #filter="{ filterModel, filterCallback }">
<InputText
v-model="filterModel.value"
type="text"
class="p-column-filter"
placeholder="Search By Protocol"
@input="filterCallback()"
/>
</template>
</Column>
<Column
:sortable="true"
field="created"
Expand Down Expand Up @@ -137,6 +153,7 @@ const formattedInvitations = computed(() =>
connection_id: inv.connection_id,
alias: inv.alias,
invitation_mode: inv.invitation_mode,
protocol: inv.connection_protocol,
created: formatDateLong(inv.created_at as string),
created_at: inv.created_at,
}))
Expand Down Expand Up @@ -164,6 +181,10 @@ const filter = ref({
value: null,
matchMode: FilterMatchMode.CONTAINS,
},
protocol: {
value: null,
matchMode: FilterMatchMode.CONTAINS,
},
created: {
value: null,
matchMode: FilterMatchMode.CONTAINS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
<template>
<div>
<Button
:label="
props.multi
? $t('connect.multiUseInvitation.multi')
: $t('connect.singleUseInvitation.single')
"
:label="$t('connect.invitation.create')"
icon="pi pi-user-edit"
@click="openModal"
/>
<Dialog
v-model:visible="displayModal"
:header="
props.multi
? $t('connect.multiUseInvitation.multiCreate')
: $t('connect.singleUseInvitation.singleCreate')
"
:header="$t('connect.invitation.create')"
:modal="true"
:style="{ minWidth: '400px' }"
@update:visible="handleClose"
>
<CreateConnectionForm
:multi="props.multi"
@success="$emit('success')"
@closed="handleClose"
/>
<CreateConnectionForm @success="$emit('success')" @closed="handleClose" />
</Dialog>
</div>
</template>

<script setup lang="ts">
// Vue
import { ref, PropType } from 'vue';
import { ref } from 'vue';
// PrimeVue etc
import Button from 'primevue/button';
import Dialog from 'primevue/dialog';
Expand All @@ -40,14 +28,6 @@ import CreateConnectionForm from './CreateConnectionForm.vue';
defineEmits(['success']);
// Props
const props = defineProps({
multi: {
type: Boolean as PropType<boolean>,
required: true,
},
});
// Display popup
const displayModal = ref(false);
const openModal = async () => {
Expand Down
Loading

0 comments on commit 2dd2790

Please sign in to comment.