Skip to content

Commit

Permalink
fix: ui issues (#911)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleksandr Raspopov <[email protected]>
  • Loading branch information
Alexander-frenki and Oleksandr Raspopov authored Jan 29, 2025
1 parent 21912ef commit 15c441e
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/src/adapters/parsers/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export const paymentOptionFormParser = getStrictParser<
name,
paymentOptions: paymentOptions.map(({ amount, decimals, paymentOptionID, ...other }) => ({
...other,
amount: (parseFloat(amount) * Math.pow(10, decimals)).toString(),
amount: BigInt(parseFloat(amount) * Math.pow(10, decimals)).toString(),
paymentOptionID: parseInt(paymentOptionID),
})),
}))
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/connections/ConnectionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ export function ConnectionsTable() {
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/connections/CredentialsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export function CredentialsTable({ userID }: { userID: string }) {
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/credentials/CredentialsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ export function CredentialsTable() {
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
6 changes: 4 additions & 2 deletions ui/src/components/credentials/IssuanceMethodForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ export function IssuanceMethodForm({
{ message: VALUE_REQUIRED, required: isDirectIssue },
{
validator: (_, value: string) => {
if (isLinkIssue) {
return Promise.resolve(true);
}
try {
DID.parse(value);
return Promise.resolve(true);
} catch (error) {
return Promise.reject(error);
}

return Promise.resolve(true);
},
},
]}
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/credentials/LinksTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ export function LinksTable() {
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/display-methods/DisplayMethodsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export function DisplayMethodsTable() {
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/identities/IdentitiesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export function IdentitiesTable({ handleAddIdentity }: { handleAddIdentity: () =
rowKey="identifier"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/identities/IdentityAuthCredentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ export function IdentityAuthCredentials({
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/issuer-state/IssuerState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ export function IssuerState() {
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/keys/KeysTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export function KeysTable() {
showSorterTooltip
sortDirections={["ascend", "descend"]}
style={{ width: "100%" }}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/payments/PaymentConfigTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ export function PaymentConfigTable({
rowKey={(record) => record.paymentOptionID}
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/payments/PaymentOptionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export function PaymentOptionsTable() {
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/payments/PaymentRequestsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export function PaymentRequestsTable() {
href={generatePath(ROUTES.paymentOptionDetails.path, {
paymentOptionID,
})}
target="_blank"
>
{paymentOptionName || paymentOptionID}
</Typography.Link>
Expand Down Expand Up @@ -245,6 +244,7 @@ export function PaymentRequestsTable() {
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/schemas/SchemasTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export function SchemasTable() {
rowKey="id"
showSorterTooltip
sortDirections={["ascend", "descend"]}
tableLayout="fixed"
/>
}
title={
Expand Down

0 comments on commit 15c441e

Please sign in to comment.