Skip to content

Commit

Permalink
chore: try splitting build
Browse files Browse the repository at this point in the history
  • Loading branch information
mdvanes committed Apr 16, 2024
1 parent 0f44b64 commit aff8f6e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/validateAndBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install and Build components 🔧
- name: Install dependencies 🔧
run: |
npm i --legacy-peer-deps
# Workaround for missing binary
npm i @swc/core-linux-x64-gnu --legacy-peer-deps
- name: Build components 🔧
run: |
npm run build --if-present
env:
CI: false # true -> fails on warning
Expand Down
21 changes: 16 additions & 5 deletions apps/client/src/Components/Molecules/HomeSec/HomeSec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,29 @@ export const HomeSec: FC = () => {
<div
style={{
display: "flex",
gap: "16px",
gap: "8px",
}}
>
<div>{sensor.status}</div>
<div>
{sensor.status}

{sensor.cond_ok === "1" ? (
<Icon color="success">
<Icon
color="success"
sx={{
marginTop:
"-0.1rem",
}}
>
check_circle_outline
</Icon>
) : (
<Icon color="error">
<Icon
color="error"
sx={{
marginTop:
"-0.1rem",
}}
>
error_outline
</Icon>
)}
Expand Down
3 changes: 2 additions & 1 deletion apps/server/src/homesec/homesec.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ export class HomesecController {
return {
status,
devices: devicesResponse.senrows.map(
({ id, name, type_f, status, rssi }) => ({
({ id, name, type_f, status, rssi, cond_ok }) => ({
id,
name,
type_f,
status,
rssi,
cond_ok,
})
),
};
Expand Down

0 comments on commit aff8f6e

Please sign in to comment.