Skip to content
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

UI Typography/Layout Fixes. #826

Merged
merged 23 commits into from
Oct 8, 2022

Conversation

mike-winberry
Copy link
Contributor

@mike-winberry mike-winberry commented Oct 2, 2022

Description

  • Fix Typography and Layout across application to match design and use new Unicorn-UI typography component.
    • home
    • initialize
      • configure
      • review
      • deploy
      • finished
  • Fix pre-tag first line indentation in package-component.
  • Create Accordion Group Component that follows the design.
  • add caption to Package Component Section of init/config page.
  • globally style caption color.
  • Sanitize block margin, margin and padding in app.css.
  • Add api call for currently deploying components that can access private variable stored in config.go that gets populated and cleared during deploy method.
  • Update deploy page to fill the stepper as components are "deployed" and navigate away from page after pop up with successful deployment shows.
  • Update tests.

Related Issue

Type of change

  • UI: Frontend styling/theme

Check list before merging

  • Changes have been linted locally
  • Tests passing

…t, routes/page, hero, spinner. Cleaned up the css in spinner. Added global css file with theme variables and other global overrides. Sanitized margins, creates minor breaking changes that will be cleaned up later in this branch.
@mike-winberry mike-winberry changed the title #797. Update UI version. Replace text with typography in routes/layou… UI Typography/Layout Fixes. Oct 2, 2022
@mike-winberry mike-winberry changed the title UI Typography/Layout Fixes. WIP: UI Typography/Layout Fixes. Oct 2, 2022
Michael Winberry added 3 commits October 1, 2022 23:31
…package component accordion list to match design using newly created AccordionComponent. Fix layout in configure/+page.svelte to match design. Create YamlCode component to display the yaml correctly. Cleaned up and sectioned initialize/+layout.svelte.
…or. Update package-component with the custom header styles. Updated initialize/+layout.svelte with initSection and pageHeader classes. Update initialize/+page.svelte: moved initSection css class definition to initialize layout. Remove aria label from sections. Add span with aria-hidden=true to hidden icon. Update review/+page.svelte: Add fix layout and typography to match configure page.
@mike-winberry mike-winberry self-assigned this Oct 2, 2022
@mike-winberry mike-winberry linked an issue Oct 3, 2022 that may be closed by this pull request
6 tasks
Michael Winberry added 5 commits October 3, 2022 10:13
… package-card to package-details-card. Update package-component-accordion to match design and flex properly. Update package-details-card class names. Add material symbols.
…t/clear functions. Update src/internal/packager/deploy.go with calls to set the deploying components when they are set using the deployedComponents accessors added in src/config. Create src/internal/api/components/list.go with method to get the deploying components from config. Update src/internal/api with the new components api list method. Update src/ui/lib/api.ts with the new deploying components list api call. Update deploy page to show live updates of the components installed. Update deploy page typography and formating. Create @ui/routes/initialize/deploy/deploy-utils.ts with helper methods for polling and updating the deploy page.
Madeline-UX
Madeline-UX previously approved these changes Oct 5, 2022
Michael Winberry added 4 commits October 5, 2022 16:50
…on, and page-header. Move page-* css from initialize/layout to app.css. Update theme secondary color to match design. Update icon.svelte with the rocket icon. Create packages +layout. Update packages page to better match the design given the components we currently have.
…accordion to properly display aria-pressed only when an optional component is selected.
@mike-winberry mike-winberry marked this pull request as ready for review October 6, 2022 01:17
@mike-winberry mike-winberry changed the title WIP: UI Typography/Layout Fixes. UI Typography/Layout Fixes. Oct 6, 2022
@jeff-mccoy
Copy link
Contributor

Overall UI changes look good, I want to take a bit of a deeper dive on the deployment streaming process. Also ran into an issue, the logging/gitserver components said they would deploy but didn't actually deploy (UI said everything was successful) so I'll mess with. that some tomorrow too. Still seeing some odd behavior on load around no data conditions; e.g. after the deployment succeeded, clicking the zarf logo (home button) put things in a weird state and required a hard refresh to show the install package.

@jeff-mccoy
Copy link
Contributor

Another issue I ran into was not having an init package available just kind of broke
Screen Shot 2022-10-06 at 2 35 54 AM

@jeff-mccoy
Copy link
Contributor

Some screenshots from testing, things are looking much more polished:

Screen Shot 2022- Screen Shot 2022-10-06 at 2 39 33 AM Screen Shot 2022-10-06 at 2 38 59 AM Screen Shot 2022-10-06 at 2 34 30 AM Screen Shot 2022-10-06 at 2 34 20 AM 10-06 at 2 40 52 AM
Screen Shot 2022-10-06 at 2 40 13 AM
Screen Shot 2022-10-06 at 2 39 58 AM
Screen Shot 2022-10-06 at 2 39 50 AM

@JasonvanBrackel JasonvanBrackel self-requested a review October 7, 2022 18:27
Copy link
Contributor

@JasonvanBrackel JasonvanBrackel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a large review. I'd like @Racer159's eyes on it too before approval.

src/test/ui/02_initialize_cluster.spec.ts Outdated Show resolved Hide resolved
src/test/ui/02_initialize_cluster.spec.ts Outdated Show resolved Hide resolved
src/test/ui/02_initialize_cluster.spec.ts Outdated Show resolved Hide resolved
src/ui/lib/api.ts Show resolved Hide resolved
src/ui/app.css Outdated Show resolved Hide resolved
Copy link
Contributor

@Racer159 Racer159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@mike-winberry mike-winberry merged commit e6ca655 into master Oct 8, 2022
@bdfinst bdfinst deleted the 797-add-typography-styles-for-roboto branch January 12, 2023 22:33
Noxsios pushed a commit that referenced this pull request Mar 8, 2023
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants