-
Notifications
You must be signed in to change notification settings - Fork 24
Add initial changes for sandbox key management #600
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
Thushani-Jayasekera
wants to merge
6
commits into
wso2:main
Choose a base branch
from
Thushani-Jayasekera:sandbox-new
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 all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4335b0b
Add initial changes for sandbox key management
Thushani-Jayasekera 59e1aa2
Fix issues in new key management
Thushani-Jayasekera 698b49d
Add code rabbit review changes
Thushani-Jayasekera 34e4559
Address review comments
Thushani-Jayasekera 04b21b9
Add improvements
Thushani-Jayasekera cb0ab28
Add fixes for issues
Thushani-Jayasekera 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <head> | ||
| <link rel="stylesheet" href="/technical-styles/manage-keys.css" /> | ||
| <link rel="stylesheet" href="/technical-styles/oauth2-key-generation.css" /> | ||
| <script src="/technical-scripts/oauth2-key-generation.js" defer></script> | ||
| <script src="/technical-scripts/api-key-generation.js" defer></script> | ||
| </head> | ||
| <main class="container-fluid py-3"> | ||
| {{> manage-keys }} | ||
| {{> keys-view }} | ||
| {{> keys-modify }} | ||
| {{> keys-token }} | ||
| {{> keys-instructions }} | ||
| {{> alert }} | ||
| </main> | ||
|
|
||
|
|
||
|
|
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 |
|---|---|---|
| @@ -0,0 +1,198 @@ | ||
| /* Manage Keys Page Styles */ | ||
|
|
||
| .keys-section { | ||
| margin-top: 0rem; | ||
| } | ||
|
|
||
| .key-btn-container { | ||
| display: flex; | ||
| flex-direction: row; | ||
| gap: 0; | ||
| margin-bottom: 1.5rem; | ||
| border-bottom: 2px solid var(--secondary-bg-color); | ||
| background-color: transparent; | ||
| } | ||
|
|
||
| .key-btn-container .nav-item { | ||
| flex: 1; | ||
| } | ||
|
|
||
| /* Tab Buttons */ | ||
| .key-btn { | ||
| background-color: var(--main-bg-color); | ||
| color: var(--main-text-color); | ||
| border: 1px solid var(--secondary-bg-color); | ||
| border-bottom: none; | ||
| font-size: 0.875rem; | ||
| font-weight: 500; | ||
| padding: 0.75rem 1.5rem; | ||
| text-decoration: none; | ||
| cursor: pointer; | ||
| text-align: center; | ||
| transition: all 0.2s ease-in-out, box-shadow 0.2s ease-in-out; | ||
| border-radius: 8px 8px 0 0; | ||
| width: 100%; | ||
| position: relative; | ||
| margin-bottom: -2px; | ||
| z-index: 0; | ||
| } | ||
|
|
||
| .key-btn:hover { | ||
| background-color: var(--primary-lightest-color); | ||
| color: var(--primary-main-color); | ||
| border-color: var(--primary-lightest-color); | ||
| } | ||
|
|
||
| .key-btn.active { | ||
| background-color: var(--primary-light-color); | ||
| color: var(--light-text-color); | ||
| border-color: var(--primary-light-color); | ||
| border-bottom: 2px solid var(--primary-light-color); | ||
| font-weight: 600; | ||
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
| z-index: 1; | ||
| } | ||
|
|
||
| .key-btn:focus { | ||
| outline: 2px solid transparent; | ||
| box-shadow: 0 0 0 2px var(--primary-lightest-color); | ||
| } | ||
|
|
||
| .accordion-item { | ||
| margin-bottom: 0.75rem; | ||
| border: 1px solid var(--secondary-bg-color); | ||
| border-radius: 8px !important; | ||
| background-color: var(--main-bg-color); | ||
| transition: box-shadow 0.2s ease; | ||
| } | ||
|
|
||
| .accordion-item:hover { | ||
| box-shadow: 0 2px 8px rgba(26, 76, 109, 0.08); | ||
| } | ||
|
|
||
| .accordion-button { | ||
| font-weight: 600; | ||
| color: var(--main-text-color); | ||
| padding: 0.875rem 1rem; | ||
| font-size: 0.9rem; | ||
| background-color: var(--secondary-bg-color); | ||
| border: none; | ||
| transition: background-color 0.2s ease, color 0.2s ease; | ||
| } | ||
|
|
||
| .accordion-button:not(.collapsed) { | ||
| background-color: var(--primary-lightest-color); | ||
| color: var(--primary-main-color); | ||
| border-bottom: 1px solid var(--secondary-bg-color); | ||
| } | ||
|
|
||
| .accordion-button:focus { | ||
| background-color: var(--secondary-bg-color); | ||
| border-color: transparent; | ||
| } | ||
|
|
||
| .accordion-button:focus-visible { | ||
| outline: 2px solid var(--primary-main-color); | ||
| outline-offset: 2px; | ||
| } | ||
|
|
||
| .accordion-button:hover { | ||
| background-color: var(--primary-lightest-color); | ||
| color: var(--primary-main-color); | ||
| } | ||
|
|
||
| .accordion-button::after { | ||
| transition: transform 0.25s ease; | ||
| } | ||
|
|
||
| #headingOne.accordion-header, | ||
| #headingTwo.accordion-header, | ||
| #headingThree.accordion-header, | ||
| #headingFour.accordion-header { | ||
| margin-bottom: 0; | ||
| } | ||
|
|
||
| .accordion-body { | ||
| padding: 1.25rem; | ||
| background-color: var(--main-bg-color); | ||
| border-top: none; | ||
| min-height: 30vh; | ||
| max-height: 60vh; | ||
| overflow-y: auto; | ||
| overflow-x: hidden; | ||
| } | ||
|
|
||
| .accordion-body::-webkit-scrollbar { | ||
| width: 6px; | ||
| } | ||
|
|
||
| .accordion-body::-webkit-scrollbar-track { | ||
| background: var(--secondary-bg-color); | ||
| border-radius: 3px; | ||
| } | ||
|
|
||
| .accordion-body::-webkit-scrollbar-thumb { | ||
| background: var(--primary-light-color); | ||
| border-radius: 3px; | ||
| } | ||
|
|
||
| .accordion-body::-webkit-scrollbar-thumb:hover { | ||
| background: var(--primary-main-color); | ||
| } | ||
|
|
||
| .accordion-body .row { | ||
| margin-bottom: 1rem; | ||
| } | ||
|
|
||
| .accordion-body .col-form-label { | ||
| font-weight: 500; | ||
| color: var(--main-text-color); | ||
| padding-top: 0.5rem; | ||
| font-size: 0.875rem; | ||
| } | ||
|
|
||
| .accordion-body .form-control { | ||
| display: block; | ||
| width: 100%; | ||
| border: 1px solid var(--secondary-bg-color); | ||
| border-radius: 6px; | ||
| padding: 0.5rem 0.75rem; | ||
| font-size: 0.875rem; | ||
| background-color: var(--main-bg-color); | ||
| color: var(--main-text-color); | ||
| transition: border-color 0.2s ease, box-shadow 0.2s ease; | ||
| } | ||
|
|
||
| .accordion-body .form-control:focus { | ||
| border-color: var(--primary-main-color); | ||
| outline: 2px solid var(--primary-main-color); | ||
| outline-offset: 2px; | ||
| } | ||
|
|
||
| .accordion-body .input-group { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| align-items: stretch; | ||
| width: 100%; | ||
| } | ||
|
|
||
| /* Table Styling in Accordion */ | ||
| .app-table { | ||
| border-collapse: separate; | ||
| border-spacing: 0; | ||
| } | ||
|
|
||
| .app-table-container { | ||
| border-radius: 6px; | ||
| overflow: hidden; | ||
| border: 1px solid var(--secondary-bg-color); | ||
| } | ||
|
|
||
| /* Key Action Buttons Row */ | ||
| .key-action-buttons-row { | ||
| display: flex; | ||
| flex-direction: row; | ||
| gap: 0.75rem; | ||
| align-items: center; | ||
| flex-wrap: wrap; | ||
| } |
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
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.