Skip to content

Commit

Permalink
ci: Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Jan 22, 2025
1 parent 3d7d266 commit 4f882f8
Show file tree
Hide file tree
Showing 19 changed files with 109 additions and 75 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,4 @@
"vitest": "^0.34.4",
"zustand-hoist": "^2.0.0"
}
}
}
4 changes: 3 additions & 1 deletion src/lib/seam/components/DeviceDetails/DeviceInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export function DeviceInfo({
<DetailRow label={t.manufacturer}>
<div className='seam-detail-row-hstack'>
{device.properties.model.manufacturer_display_name}
{device.properties.manufacturer === 'ecobee' && <BeeIcon style={{ fontSize: '33px' }} />}
{device.properties.manufacturer === 'ecobee' && (
<BeeIcon style={{ fontSize: '33px' }} />
)}
</div>
</DetailRow>
{!disableConnectedAccountInformation && (
Expand Down
4 changes: 2 additions & 2 deletions src/lib/ui/Snackbar/Snackbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function Snackbar({
dismissAfterMs = 5000,
disableCloseButton = false,
automaticVisibility = false,
onClose = () => { },
onClose = () => {},
}: SnackbarProps): JSX.Element {
const [hidden, setHidden] = useState(visible)

Expand All @@ -48,7 +48,7 @@ export function Snackbar({

useEffect(() => {
if (!autoDismiss) {
return () => { }
return () => {}
}

const timeout = globalThis.setTimeout(() => {
Expand Down
7 changes: 6 additions & 1 deletion src/lib/ui/thermostat/ClimateSettingStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ function ClimateSettingIcon(props: {
const { mode } = props

return (
<div className={classNames('seam-climate-setting-status-icon', `seam-climate-setting-status-icon-${mode}`)}>
<div
className={classNames(
'seam-climate-setting-status-icon',
`seam-climate-setting-status-icon-${mode}`
)}
>
{mode === 'cool' && <ThermostatCoolIcon />}
{mode === 'heat' && <ThermostatHeatIcon />}
{mode === 'heat_cool' && <ThermostatHeatCoolIcon />}
Expand Down
18 changes: 9 additions & 9 deletions src/styles/_access-code-details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@

@mixin all {
.seam-access-code-details {
>.seam-summary {
> .seam-summary {
background: colors.$bg-a;
border-radius: 16px;
margin: 0 24px 16px;

>.seam-top {
> .seam-top {
padding: 24px 16px;

&.seam-top-has-alerts {
padding-bottom: 8px;
}

>.seam-label {
> .seam-label {
font-weight: 600;
font-size: 14px;
line-height: 134%;
color: colors.$text-gray-1;
margin-bottom: 4px;
}

>.seam-access-code-name {
> .seam-access-code-name {
font-weight: 600;
font-size: 21px;
line-height: 132%;
margin-bottom: 8px;
}

>.seam-code {
> .seam-code {
background: colors.$white;
border: 1px solid colors.$text-gray-2;
border-radius: 8px;
Expand All @@ -40,11 +40,11 @@
display: flex;
justify-content: space-between;

>span {
> span {
padding: 10px 16px;
}

>.seam-icon-btn {
> .seam-icon-btn {
height: auto;
border: 0;
overflow: visible;
Expand Down Expand Up @@ -156,7 +156,7 @@
color: colors.$text-gray-2;
}

>div {
> div {
div {
margin-bottom: 4px;
}
Expand All @@ -170,4 +170,4 @@
}
}
}
}
}
3 changes: 1 addition & 2 deletions src/styles/_alert.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use './colors';

@mixin all {

// Alerts
.seam-alerts {
width: 100%;
Expand Down Expand Up @@ -124,4 +123,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/styles/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@
@include button;
@include icon-button;
@include text-button;
}
}
8 changes: 4 additions & 4 deletions src/styles/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
cursor: pointer;
padding: 6px 0;

>.seam-checkbox-icon {
> .seam-checkbox-icon {
height: 24px;
width: 24px;
font-size: 24px;
}

>input {
> input {
display: none;
}

>.seam-checkbox-label {
> .seam-checkbox-label {
font-size: 16px;
line-height: 150%;
}
}
}
}
10 changes: 5 additions & 5 deletions src/styles/_device-details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
display: flex;
justify-content: space-between;

>.seam-right {
> .seam-right {
display: flex;
align-items: center;
}
Expand Down Expand Up @@ -90,7 +90,7 @@
}

.seam-info {
>.seam-label {
> .seam-label {
color: colors.$text-gray-1;
font-weight: 600;
font-size: 14px;
Expand Down Expand Up @@ -127,7 +127,7 @@
margin-right: 8px;
}

>* {
> * {
display: flex;
align-items: center;
}
Expand All @@ -143,7 +143,7 @@
align-items: center;
justify-content: center;

>div {
> div {
width: 40px;
height: 40px;
display: flex;
Expand All @@ -168,4 +168,4 @@
margin-top: 8px;
}
}
}
}
2 changes: 1 addition & 1 deletion src/styles/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
fill: colors.$text-gray-1;
}
}
}
}
18 changes: 9 additions & 9 deletions src/styles/_inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@mixin text-field {
.seam-text-field {
>.seam-main {
> .seam-main {
background: colors.$white;
border: 1px solid colors.$text-gray-3;
border-radius: 8px;
Expand Down Expand Up @@ -82,38 +82,38 @@
}
}

>.seam-helper-text {
> .seam-helper-text {
margin-top: 4px;
}

&.seam-disabled {
>.seam-main {
> .seam-main {
border-color: colors.$text-gray-3;
background: colors.$bg-gray;
cursor: not-allowed;

>.seam-text-field-input {
> .seam-text-field-input {
cursor: not-allowed;
}
}
}

&.seam-large {
>.seam-main {
> .seam-main {
padding: 0 12px;

>.seam-text-field-input {
> .seam-text-field-input {
height: 48px;
}
}
}

&.seam-error {
>.seam-main {
> .seam-main {
border: 1px solid colors.$status-red;
}

>.seam-helper-text {
> .seam-helper-text {
color: colors.$status-red;
}
}
Expand All @@ -123,4 +123,4 @@
@mixin all {
@include text-field;
@include search-text-field;
}
}
3 changes: 1 addition & 2 deletions src/styles/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
}

@mixin detail-row-common {

.seam-detail-row,
.seam-accordion-row {
background-color: colors.$white;
Expand Down Expand Up @@ -294,4 +293,4 @@
@include detail-row-common;
@include detail-row;
@include accordion-row;
}
}
10 changes: 5 additions & 5 deletions src/styles/_radio-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
flex-direction: column;
gap: 4px;

>.seam-radio {
> .seam-radio {
display: flex;
align-items: center;
gap: 4px;
padding: 0 8px;
cursor: pointer;

>input {
> input {
display: none;
}

>.seam-radio-icon {
> .seam-radio-icon {
height: 24px;
width: 24px;
font-size: 24px;
}

>.seam-radio-label {
> .seam-radio-label {
font-size: 16px;
line-height: 134%;
}
}
}
}
}
4 changes: 2 additions & 2 deletions src/styles/_seam-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
align-items: center;
justify-content: center;

>div {
> div {
width: 32px;
height: 40px;
display: flex;
Expand Down Expand Up @@ -129,4 +129,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/styles/_snackbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/styles/_supported-device-table-manufacturer-keys.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
font-size: 25px;
}
}
}
}
17 changes: 11 additions & 6 deletions src/styles/_supported-device-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ $see-all-button-height: 30px;
0 1px 1px 0 rgb(16 27 37 / 10%),
0 1px 8px 0 rgb(46 69 82 / 12%);
position: absolute;
bottom: math.div(-($row-height - $see-all-button-height - $row-padding),
2) or calc(-1 * ($row-height - $see-all-button-height - $row-padding) / 2);
bottom: math.div(
-($row-height - $see-all-button-height - $row-padding),
2
)
or calc(-1 * ($row-height - $see-all-button-height - $row-padding) / 2);
left: 50%;
transform: translate(-50%, -47px);
z-index: 3;
Expand All @@ -189,9 +192,11 @@ $see-all-button-height: 30px;
}

.hidden-devices-overlay {
background: linear-gradient(180deg,
rgb(255 255 255 / 0%) 10.17%,
#fff 86.98%);
background: linear-gradient(
180deg,
rgb(255 255 255 / 0%) 10.17%,
#fff 86.98%
);
position: absolute;
height: $row-height;
width: 100%;
Expand Down Expand Up @@ -404,4 +409,4 @@ $see-all-button-height: 30px;
max-height: 300px;
overflow: auto;
}
}
}
Loading

0 comments on commit 4f882f8

Please sign in to comment.