-
Notifications
You must be signed in to change notification settings - Fork 60
Add Clipboard Button, Ensure Credentials Keeps Newlines #1883
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: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ const CredentialTable = ({ data }: any) => { | |
| header: 'Created', | ||
| accessorFn: row => formatDistance(new Date(row.createdAt), currentDate), | ||
| footer: props => props.column.id, | ||
| maxSize: 10, | ||
| sortingFn: ( | ||
| rowA, | ||
| rowB, | ||
|
|
@@ -27,14 +28,15 @@ const CredentialTable = ({ data }: any) => { | |
| header: "principal", | ||
| accessorFn: row => row.principal, | ||
| footer: props => props.column.id, | ||
| maxSize: 100, | ||
| maxSize: 10, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah is this working as you intend, this seems very small for a maxSize. |
||
| }, | ||
| { | ||
| id: "kind", | ||
| header: "Credential Kind", | ||
| accessorFn: row => row.kind, | ||
| footer: props => props.column.id, | ||
| enableSorting: true, | ||
| maxSize: 10, | ||
| cell: (cellData: any) => { | ||
| const kind = cellData.getValue(); | ||
| return ( | ||
|
|
@@ -49,7 +51,7 @@ const CredentialTable = ({ data }: any) => { | |
| header: 'Secret', | ||
| accessorFn: row => row.secret, | ||
| footer: props => props.column.id, | ||
| maxSize: 250, | ||
| // maxSize: 350, | ||
| enableSorting: false, | ||
| cell: (cellData: any) => { | ||
| const secret = cellData.getValue(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ const CredentialTableGrouped = ({ data }: any) => { | |
| header: 'Created', | ||
| accessorFn: row => formatDistance(new Date(row.createdAt), currentDate), | ||
| footer: props => props.column.id, | ||
| maxSize: 10, | ||
| sortingFn: ( | ||
| rowA, | ||
| rowB, | ||
|
|
@@ -27,6 +28,7 @@ const CredentialTableGrouped = ({ data }: any) => { | |
| header: 'Last Modified', | ||
| accessorFn: row => formatDistance(new Date(row.lastModifiedAt), currentDate), | ||
| footer: props => props.column.id, | ||
| maxSize: 10, | ||
| sortingFn: ( | ||
| rowA, | ||
| rowB, | ||
|
|
@@ -42,14 +44,15 @@ const CredentialTableGrouped = ({ data }: any) => { | |
| header: "principal", | ||
| accessorFn: row => row.principal, | ||
| footer: props => props.column.id, | ||
| maxSize: 100, | ||
| maxSize: 10, | ||
| }, | ||
| { | ||
| id: "kind", | ||
| header: "Credential Kind", | ||
| accessorFn: row => row.kind, | ||
| footer: props => props.column.id, | ||
| enableSorting: false, | ||
| maxSize: 10, | ||
| cell: (cellData: any) => { | ||
| const kind = cellData.getValue(); | ||
| return ( | ||
|
|
@@ -64,7 +67,7 @@ const CredentialTableGrouped = ({ data }: any) => { | |
| header: 'Secret', | ||
| accessorFn: row => row.secret, | ||
| footer: props => props.column.id, | ||
| maxSize: 250, | ||
| // maxSize: 250, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unwanted comment? |
||
| enableSorting: false, | ||
| cell: (cellData: any) => { | ||
| const secret = cellData.getValue(); | ||
|
|
||
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.
Nit: Swap to tailwind version of this rather than mixing styles
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.
https://tailwindcss.com/docs/text-wrap