Skip to content

Commit

Permalink
Remove unnecessary popover styling and extend error handling
Browse files Browse the repository at this point in the history
This commit removes redundant styling from popover components in ContainerStacksSettings and PlaybooksSettings. Additionally, it introduces new properties for enhanced error handling in the API types, adding `onError` and `onErrorMessage` fields to accommodate more robust error management.
  • Loading branch information
SquirrelDevelopper committed Nov 29, 2024
1 parent 5e9f9a4 commit 7801287
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ const ContainerStacksSettings: React.FC = () => {
if (row.onError) {
return (
<Popover
overlayStyle={{
width: '400px',
height: '400px',
overflowY: 'scroll',
}}
content={
<Space direction="vertical" size={'small'}>
<Typography.Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,6 @@ const PlaybookSettings: React.FC = () => {
if (row.onError) {
return (
<Popover
overlayStyle={{
width: '400px',
height: '400px',
overflowY: 'scroll',
}}
content={
<Space direction="vertical" size={'small'}>
<Typography.Text>
Expand Down
2 changes: 2 additions & 0 deletions shared-lib/src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,8 @@ export type GitPlaybooksRepository = PlaybooksRepository & {
default: boolean;
gitService: Services;
accessToken?: string;
onError?: boolean;
onErrorMessage?: string;
}

export type LocalPlaybooksRepository = PlaybooksRepository & {
Expand Down

0 comments on commit 7801287

Please sign in to comment.