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

Cde create vis app mvp2 #735

Merged
merged 24 commits into from
Oct 15, 2024
Merged

Cde create vis app mvp2 #735

merged 24 commits into from
Oct 15, 2024

Conversation

edlu77
Copy link
Contributor

@edlu77 edlu77 commented Sep 25, 2024

#579

Various updates to CDE create vis page

@edlu77 edlu77 self-assigned this Sep 25, 2024
@edlu77 edlu77 marked this pull request as draft September 25, 2024 06:18
Copy link

nx-cloud bot commented Sep 25, 2024

Copy link

github-actions bot commented Sep 25, 2024

🚀 Preview Deploy Report Updated

✅ Successfully deployed preview here

@axdanbol axdanbol changed the base branch from develop to cde-mvp2 September 25, 2024 15:01
@edlu77 edlu77 marked this pull request as ready for review September 27, 2024 02:38
Copy link
Contributor

@axdanbol axdanbol left a comment

Choose a reason for hiding this comment

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

Use css variables and components from the design system

<mat-icon class="material-symbols-rounded">upload</mat-icon>
Upload CSV
</button>
<button mat-flat-button class="upload" type="button" color="primary" (click)="fileInput.click()">Upload CSV</button>
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need to use color="primary" any longer

@@ -2,7 +2,7 @@
@use '@angular/material' as mat;
Copy link
Contributor

Choose a reason for hiding this comment

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

Change all uses of mat.get-theme-color to use css variables instead, i.e. var(--sys-primary), etc.

@@ -2,7 +2,7 @@
@use '@angular/material' as mat;
@use '../../../styles/constants/palettes' as palettes;

$blue: mat.m2-define-palette(map.get(palettes.$palettes, 'blue'), 600, 800, 900);
$blue: mat.m2-define-palette(map.get(palettes.$palettes, 'blue'), 500, 600, 800, 900);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove these palette variables

),
)
);

:host {
--mdc-filled-button-label-text-size: 1rem;
--mat-filled-button-horizontal-padding: 0.5rem;
--mdc-filled-button-label-text-tracking: 0.02em;
--mat-filled-button-icon-spacing: 0.25rem;
@include mat.button-color($blue-theme);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove

margin-bottom: 2rem;
background-color: rgb(from #ffdcc4 r g b / 0.8);
Copy link
Contributor

Choose a reason for hiding this comment

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

Use css variables

@@ -13,8 +13,7 @@ <h1 class="title">Create a Cell Distance Visualization</h1>
<div class="card data-upload">
<h2 class="header">
<span class="step-number">1</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Use new step indicator component from design-system

@@ -4,6 +4,7 @@
@use '../../../styles/breakpoints' as breakpoints;

$gray-palette: map.get(palettes.$palettes, 'gray');
Copy link
Contributor

Choose a reason for hiding this comment

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

Move all the logic here into the regular scss file and use css variables instead

@edlu77
Copy link
Contributor Author

edlu77 commented Oct 2, 2024

@LibbyUX Our design system has been implemented for the create vis page, please review and let me know if there are any changes needed!

Copy link

sonarcloud bot commented Oct 2, 2024

Copy link
Contributor

@LibbyUX LibbyUX left a comment

Choose a reason for hiding this comment

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

Amazing, thank you so much @edlu77!

I have more work to do on our text field inputs after playing with this preview, but that's a separate issue for the design system. I will expand text fields to have helper text for error states, absolute positioned below the input field.

Thank you for knocking this out, it looks great. Happy Friday!

@edlu77 edlu77 mentioned this pull request Oct 8, 2024
@axdanbol axdanbol merged commit ec8d5f9 into cde-mvp2 Oct 15, 2024
9 checks passed
@axdanbol axdanbol deleted the cde-create-vis-app-mvp2 branch October 15, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants