-
Notifications
You must be signed in to change notification settings - Fork 555
UN-2226 [UX/UI] Improve settings navigation and modal component styling #1569
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
Open
athul-rs
wants to merge
14
commits into
main
Choose a base branch
from
UN-2226-UI-UX-updates
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5cba247
Add settings sidebar navigation and improve modal icon sizing
athul-rs 1f54f78
Merge branch 'main' into UN-2226-UI-UX-updates
athul-rs dc54058
Resolve Sonar accessibility issues in SettingsLayout
athul-rs c2b5243
Resolve CodeRabbit review issues
athul-rs a0ff6be
Fix settings popup visibility and Platform button behavior
athul-rs 80be0d2
Merge branch 'main' into UN-2226-UI-UX-updates
athul-rs 3e17e9b
Merge branch 'main' into UN-2226-UI-UX-updates
athul-rs 26c42b7
Merge branch 'main' into UN-2226-UI-UX-updates
athul-rs 6b5c1bd
Fix CodeRabbit review issues
athul-rs ae1c00b
Merge branch 'main' into UN-2226-UI-UX-updates
athul-rs 74fcd5e
Remove trailing slash for path consistency
athul-rs bdda209
Fix SonarCloud issues
athul-rs cfec84e
Replace navigate(-1) with safe navigation to tools page
athul-rs 75609f1
Fix Prettier formatting issues in SettingsLayout
athul-rs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ | |
|
||
.input-header-text { | ||
font-weight: bold; | ||
font-size: 20px; | ||
font-size: 14px; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
frontend/src/components/pipelines-or-deployments/pipelines/Pipelines.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.p-or-d-layout { | ||
background-color: var(--page-bg-2); | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
frontend/src/components/settings/platform/PlatformSettings.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ import { ConfirmModal } from "../../widgets/confirm-modal/ConfirmModal.jsx"; | |
import "./PlatformSettings.css"; | ||
import { useExceptionHandler } from "../../../hooks/useExceptionHandler.jsx"; | ||
import usePostHogEvents from "../../../hooks/usePostHogEvents.js"; | ||
import { SettingsLayout } from "../settings-layout/SettingsLayout.jsx"; | ||
|
||
const defaultKeys = [ | ||
{ | ||
|
@@ -233,100 +234,104 @@ function PlatformSettings() { | |
}; | ||
|
||
return ( | ||
<> | ||
<div className="plt-set-head"> | ||
<Button size="small" type="text"> | ||
<ArrowLeftOutlined onClick={() => navigate(-1)} /> | ||
</Button> | ||
<Typography.Text className="plt-set-head-typo"> | ||
Platform Settings | ||
</Typography.Text> | ||
</div> | ||
<div className="plt-set-layout"> | ||
<IslandLayout> | ||
<div className="plt-set-layout-2"> | ||
<div> | ||
{keys.map((keyDetails, keyIndex) => { | ||
return ( | ||
<div key={keyDetails?.keyName}> | ||
<div> | ||
<div className="plt-set-key-head"> | ||
<Row> | ||
<Col> | ||
<div className="plt-set-key-head-col-1"> | ||
<Typography.Text> | ||
{keyDetails?.keyName} | ||
</Typography.Text> | ||
</div> | ||
</Col> | ||
<Col> | ||
<div className="plt-set-key-head-col-2"> | ||
<Radio | ||
checked={ | ||
keyDetails?.id && activeKey === keyIndex | ||
} | ||
disabled={keyDetails?.id === null} | ||
onClick={() => handleToggle(keyIndex)} | ||
> | ||
Active Key | ||
</Radio> | ||
</div> | ||
</Col> | ||
</Row> | ||
</div> | ||
<SettingsLayout activeKey="platform"> | ||
<div> | ||
<div className="plt-set-head"> | ||
<Button size="small" type="text"> | ||
<ArrowLeftOutlined onClick={() => navigate(-1)} /> | ||
</Button> | ||
|
||
<Typography.Text className="plt-set-head-typo"> | ||
Platform Settings | ||
</Typography.Text> | ||
</div> | ||
<div className="plt-set-layout"> | ||
<IslandLayout> | ||
<div className="plt-set-layout-2"> | ||
<div> | ||
{keys.map((keyDetails, keyIndex) => { | ||
return ( | ||
<div key={keyDetails?.keyName}> | ||
<div> | ||
<Row gutter={10}> | ||
<Col> | ||
<div className="plt-set-key-display"> | ||
<Input | ||
size="small" | ||
value={keys[keyIndex].key} | ||
suffix={ | ||
<CopyOutlined | ||
onClick={() => copyText(keys[keyIndex].key)} | ||
/> | ||
} | ||
/> | ||
</div> | ||
</Col> | ||
<Col> | ||
<Button | ||
size="small" | ||
loading={isLoadingIndex === keyIndex} | ||
onClick={() => handleGenerate(keyIndex)} | ||
> | ||
{keyDetails?.id?.length > 0 | ||
? "Refresh" | ||
: "Generate"} | ||
</Button> | ||
</Col> | ||
<Col> | ||
<ConfirmModal | ||
handleConfirm={() => handleDelete(keyIndex)} | ||
content="Want to delete this platform key? This action cannot be undone." | ||
okText="Delete" | ||
> | ||
<div className="plt-set-key-head"> | ||
<Row> | ||
<Col> | ||
<div className="plt-set-key-head-col-1"> | ||
<Typography.Text> | ||
{keyDetails?.keyName} | ||
</Typography.Text> | ||
</div> | ||
</Col> | ||
<Col> | ||
<div className="plt-set-key-head-col-2"> | ||
<Radio | ||
checked={ | ||
keyDetails?.id && activeKey === keyIndex | ||
} | ||
disabled={keyDetails?.id === null} | ||
onClick={() => handleToggle(keyIndex)} | ||
> | ||
Active Key | ||
</Radio> | ||
</div> | ||
</Col> | ||
</Row> | ||
</div> | ||
<div> | ||
<Row gutter={10}> | ||
<Col> | ||
<div className="plt-set-key-display"> | ||
<Input | ||
size="small" | ||
value={keys[keyIndex].key} | ||
suffix={ | ||
<CopyOutlined | ||
onClick={() => | ||
copyText(keys[keyIndex].key) | ||
} | ||
/> | ||
} | ||
/> | ||
</div> | ||
</Col> | ||
<Col> | ||
<Button | ||
size="small" | ||
disabled={keyDetails?.id === null} | ||
loading={isDeletingIndex === keyIndex} | ||
loading={isLoadingIndex === keyIndex} | ||
onClick={() => handleGenerate(keyIndex)} | ||
> | ||
<DeleteOutlined /> | ||
{keyDetails?.id?.length > 0 | ||
? "Refresh" | ||
: "Generate"} | ||
</Button> | ||
</ConfirmModal> | ||
</Col> | ||
</Row> | ||
</Col> | ||
<Col> | ||
<ConfirmModal | ||
handleConfirm={() => handleDelete(keyIndex)} | ||
content="Want to delete this platform key? This action cannot be undone." | ||
okText="Delete" | ||
> | ||
<Button | ||
size="small" | ||
disabled={keyDetails?.id === null} | ||
loading={isDeletingIndex === keyIndex} | ||
> | ||
<DeleteOutlined /> | ||
</Button> | ||
</ConfirmModal> | ||
</Col> | ||
</Row> | ||
</div> | ||
</div> | ||
{keyIndex < keys?.length - 1 && <Divider />} | ||
</div> | ||
{keyIndex < keys?.length - 1 && <Divider />} | ||
</div> | ||
); | ||
})} | ||
); | ||
})} | ||
</div> | ||
</div> | ||
</div> | ||
</IslandLayout> | ||
</IslandLayout> | ||
</div> | ||
</div> | ||
</> | ||
</SettingsLayout> | ||
); | ||
} | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.