-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description - [x] Fix Typography and Layout across application to match design and use new Unicorn-UI typography component. - [x] home - [x] initialize - [x] configure - [x] review - [x] deploy - [x] finished - [x] Fix pre-tag first line indentation in package-component. - [x] Create Accordion Group Component that follows the design. - [x] add caption to Package Component Section of init/config page. - [x] globally style caption color. - [x] Sanitize block margin, margin and padding in app.css. - [x] Add api call for currently deploying components that can access private variable stored in config.go that gets populated and cleared during deploy method. - [x] Update deploy page to fill the stepper as components are "deployed" and navigate away from page after pop up with successful deployment shows. - [x] Update tests. ## Related Issue - #799 - #798 - #797 - #802 ## Type of change - UI: Frontend styling/theme ## Check list before merging - [x] Changes have been linted locally - [x] Tests passing Co-authored-by: Megamind <[email protected]> Co-authored-by: Wayne Starr <[email protected]>
- Loading branch information
1 parent
9ae725f
commit ae25283
Showing
29 changed files
with
920 additions
and
600 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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,14 @@ | ||
package components | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/defenseunicorns/zarf/src/config" | ||
"github.com/defenseunicorns/zarf/src/internal/api/common" | ||
) | ||
|
||
// ListDeployedPackages writes a list of packages that have been deployed to the connected cluster. | ||
func ListDeployingComponents(w http.ResponseWriter, r *http.Request) { | ||
deployingPackages := config.GetDeployingComponents() | ||
common.WriteJSONResponse(w, deployingPackages, http.StatusOK) | ||
} |
This file contains 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 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 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 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 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,114 @@ | ||
:root { | ||
/* Theme | vars */ | ||
--mdc-theme-primary: #4adede; | ||
--mdc-theme-primary-dark: #00acac; | ||
--mdc-theme-secondary: #787ff6; | ||
--mdc-theme-on-primary: #171717; | ||
--mdc-theme-on-secondary: white; | ||
--mdc-theme-surface: white; | ||
--mdc-theme-text-secondary-on-light: rgba(0, 0, 0, 0.6); | ||
--mdc-theme-text-primary-on-light: rgba(0, 0, 0, 0.87); | ||
|
||
/* Typography | vars */ | ||
--mdc-typography-font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', | ||
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | ||
|
||
/* body2 */ | ||
--mdc-typography-body2-font-style: normal; | ||
--mdc-typography-body2-font-size: 1em; | ||
|
||
/* body3 */ | ||
--mdc-typography-body3-font-style: normal; | ||
--mdc-typography-body3-font-weight: 400; | ||
--mdc-typography-body3-font-size: 0.875em; | ||
--mdc-typography-body3-line-height: 143%; | ||
--mdc-typography-body3-letter-spacing: 0.17px; | ||
|
||
/* th */ | ||
--mdc-typography-th-font-style: normal; | ||
--mdc-typography-th-font-weight: 500; | ||
--mdc-typography-th-font-size: 0.875em; | ||
--mdc-typography-th-line-height: 24px; | ||
--mdc-typography-th-letter-spacing: 0.17px; | ||
|
||
/* overline */ | ||
--mdc-typography-overline-font-weight: 400; | ||
|
||
font-family: var(--mdc-typography-font-family); | ||
} | ||
|
||
.mdc-typography--body2, | ||
.mdc-typography--caption { | ||
color: var(--mdc-theme-text-secondary-on-light); | ||
} | ||
|
||
.mdc-typography--body3 { | ||
font-style: var(--mdc-typography-body3-font-style); | ||
font-weight: var(--mdc-typography-body3-font-weight); | ||
font-size: var(--mdc-typography-body3-font-size); | ||
line-height: var(--mdc-typography-body3-line-height); | ||
letter-spacing: var(--mdc-typography-body3-letter-spacing); | ||
} | ||
|
||
.mdc-typography--th { | ||
font-style: var(--mdc-typography-th-font-style); | ||
font-weight: var(--mdc-typography-th-font-weight); | ||
font-size: var(--mdc-typography-th-font-size); | ||
line-height: var(--mdc-typography-th-line-height); | ||
letter-spacing: var(--mdc-typography-th-letter-spacing); | ||
color: var(--mdc-theme-text-primary-on-light); | ||
} | ||
|
||
*, | ||
::before, | ||
::after { | ||
margin-block: unset; | ||
} | ||
|
||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
background-color: #f5f5f5; | ||
} | ||
|
||
.card { | ||
background-color: var(--mdc-theme-surface); | ||
} | ||
|
||
/* Layout | Page */ | ||
.page { | ||
padding: 2rem 10rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2rem; | ||
} | ||
@media (max-width: 900px) { | ||
.page { | ||
padding: 2rem 4rem; | ||
} | ||
} | ||
@media (max-width: 600px) { | ||
.page { | ||
padding: 2rem 1rem; | ||
} | ||
} | ||
|
||
.page .actionButtonsContainer { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: 2rem; | ||
} | ||
.page .page-section { | ||
gap: 20px; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.page .page-header { | ||
margin-top: 2rem; | ||
} | ||
|
||
/* Shorthand Classes */ | ||
.invisible { | ||
visibility: hidden; | ||
} |
This file contains 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 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,25 @@ | ||
<div class="accordion-group"><slot /></div> | ||
|
||
<style> | ||
.accordion-group { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
border-radius: 4px 4px 0 0; | ||
} | ||
.accordion-group > :global(:first-child) { | ||
border-radius: 4px 4px 0 0; | ||
} | ||
.accordion-group > :global(:last-child) { | ||
border-radius: 0 0 4px 4px; | ||
} | ||
.accordion-group :global(.accordion) { | ||
margin: 0; | ||
} | ||
.accordion-group :global(.accordion:after) { | ||
content: ''; | ||
background-color: rgba(0, 0, 0, 0.12); | ||
height: 1px; | ||
} | ||
</style> |
This file contains 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,7 @@ | ||
<div class="divider" /> | ||
|
||
<style> | ||
.divider { | ||
border: 1px solid rgba(0, 0, 0, 0.12); | ||
} | ||
</style> |
This file contains 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.