Skip to content

Commit e5de069

Browse files
authored
Merge pull request #50 from LocalBytes/fix/lb-207-2024-12-fix-flakey-tests
fix/lb 207 2024 12 fix flakey tests
2 parents 2cbf1d3 + bee1322 commit e5de069

File tree

19 files changed

+3032
-3157
lines changed

19 files changed

+3032
-3157
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ jobs:
5151
sed -i "s/VERSION/${{ env.version }}/g" ./packages/localdeck-configurator/homeassistant/config.yaml
5252
pnpm build
5353
54-
mkdir -p .temp
55-
cp -r ./packages/localdeck-configurator/{.output,homeassistant}/* ./.temp
54+
mkdir -p ./packages/artifact
55+
cp -r ./packages/localdeck-configurator/{.output,homeassistant}/* ./packages/artifact
56+
ls -al ./packages/artifact
5657
- uses: actions/upload-artifact@v4
5758
with:
5859
name: localdeck-configurator
59-
path: .temp
60+
path: ./packages/artifact
6061

6162
- uses: actions/upload-artifact@v4
6263
with:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"packages/localdeck-configurator"
2020
],
2121
"devDependencies": {
22-
"@vue/language-server": "^2.1.4",
22+
"@vue/language-server": "^2.1.10",
2323
"shx": "^0.3.4",
24-
"typescript": "^5.5.4"
24+
"typescript": "^5.7.2"
2525
},
2626
"packageManager": "pnpm@9.10.0+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c"
2727
}

packages/localdeck-codegen/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
"esphome-config-ts": "github:LocalBytes/esphome-config-ts",
2323
"js-yaml": "^4.1.0",
2424
"lodash": "^4.17.21",
25-
"zod": "^3.23.8"
25+
"zod": "^3.24.1"
2626
},
2727
"devDependencies": {
28-
"@eslint/js": "^9.9.1",
29-
"@stylistic/eslint-plugin": "^2.7.2",
28+
"@eslint/js": "^9.17.0",
29+
"@stylistic/eslint-plugin": "^2.12.1",
3030
"@tsconfig/node-lts": "^20.1.3",
3131
"@types/js-yaml": "^4.0.9",
32-
"@types/lodash": "^4.17.7",
33-
"@types/node": "^22.5.2",
32+
"@types/lodash": "^4.17.13",
33+
"@types/node": "^22.10.2",
3434
"eslint": "~9.9.1",
35-
"globals": "^15.9.0",
35+
"globals": "^15.14.0",
3636
"ts-node": "^10.9.2",
37-
"ts-patch": "^3.2.1",
38-
"typescript-eslint": "^8.3.0",
39-
"typescript-transform-paths": "^3.5.0"
37+
"ts-patch": "^3.3.0",
38+
"typescript-eslint": "^8.18.1",
39+
"typescript-transform-paths": "^3.5.3"
4040
}
4141
}
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
export default defineNuxtConfig({
22
srcDir: 'src',
33
modules: ['@vueuse/nuxt', '@nuxt/eslint', '@nuxt/test-utils/module'],
4-
compatibilityDate: '2024-07-15',
54

65
eslint: { config: { stylistic: { semi: true } } },
76

8-
// https://github.com/nuxt/nuxt/discussions/26739
9-
nitro: { experimental: { legacyExternals: true } },
10-
7+
compatibilityDate: '2024-12-01',
118
});

packages/localdeck-components/package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@
1414
"test": "vitest --run"
1515
},
1616
"devDependencies": {
17-
"@nuxt/eslint": "^0.5.5",
18-
"@nuxt/test-utils": "^3.14.1",
17+
"@nuxt/eslint": "^0.5.7",
18+
"@nuxt/test-utils": "catalog:",
1919
"@types/pako": "^2.0.3",
20-
"@vueuse/core": "^11.0.3",
21-
"@vueuse/nuxt": "^11.0.3",
22-
"maska": "^3.0.2",
23-
"nuxt": "^3.13.0",
24-
"sass": "^1.77.8",
25-
"typescript": "^5.5.4",
26-
"vitest": "^2.0.5"
20+
"@vueuse/core": "^11.3.0",
21+
"@vueuse/nuxt": "^11.3.0",
22+
"maska": "^3.0.4",
23+
"nuxt": "catalog:",
24+
"typescript": "catalog:",
25+
"vitest": "^2.1.8"
2726
},
2827
"dependencies": {
2928
"@localbytes/localdeck-codegen": "workspace:^",
@@ -32,6 +31,6 @@
3231
"material-symbols": "^0.22.2",
3332
"pako": "^2.1.0",
3433
"vue3-emoji-picker": "^1.1.8",
35-
"zod": "^3.23.8"
34+
"zod": "^3.24.1"
3635
}
3736
}

packages/localdeck-components/src/assets/material.scss renamed to packages/localdeck-components/src/assets/material.css

File renamed without changes.

packages/localdeck-components/src/components/DeckButtonConfigLabel.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
<textarea
2222
v-model="modelValue.label.text"
2323
class="textarea"
24+
name="label_text"
2425
placeholder="Type here"
2526
rows="3"
27+
title="Label text"
2628
type="text"
2729
/>
2830

@@ -52,7 +54,7 @@
5254
</template>
5355

5456
<script lang="ts" setup>
55-
import type { EditContainer } from '../utils/PadCfg';
57+
import type { EditContainer } from '~/utils/PadCfg';
5658
5759
const modelValue = defineModel<EditContainer>({ required: true });
5860
</script>

packages/localdeck-components/src/components/DeckButtonItem.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<template>
22
<div
33
ref="padGridItem"
4+
:aria-label="`DeckButton ${container.keyNum.toFixed(0).padStart(2, '0')}`"
45
:class="{ 'shadow-lg shadow-yellow-300': editing, 'printmode': print }"
6+
:data-keynum="container.keyNum"
7+
role="button"
58
class="pad-grid-item"
69
>
710
<p
@@ -28,8 +31,8 @@
2831
</template>
2932

3033
<script lang="ts" setup>
31-
import { useFontSizes, useIsPrinting } from '../utils/hooks';
32-
import type { EditContainer } from '../utils/PadCfg';
34+
import { useFontSizes, useIsPrinting } from '~/utils/hooks';
35+
import type { EditContainer } from '~/utils/PadCfg';
3336
3437
const padGridItem = ref<HTMLDivElement>();
3538
const print = useIsPrinting();

packages/localdeck-components/src/components/DeckIconPicker.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import EmojiPicker from 'vue3-emoji-picker';
2424
import type { ConfiguredButtonOptsLabel } from '@localbytes/localdeck-codegen/dist/virtuals';
2525
import 'vue3-emoji-picker/css';
2626
import { mdIconsGroups } from '~/utils/material';
27-
import '~/assets/material.scss';
27+
import '~/assets/material.css';
2828
2929
const modelValue = defineModel<ConfiguredButtonOptsLabel>({ required: true });
3030
const colorMode = useColorMode();

packages/localdeck-components/src/components/DeckPad.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
v-for="container in orderedButtons"
99
:key="container.keyNum"
1010
:container="container"
11-
:data-keynum="container.keyNum"
1211
:editing="editing?.keyNum === container.keyNum && !isPrinting"
1312
class="pad-grid-item"
1413
@click="click(container)"
@@ -77,6 +76,6 @@ provide(fontSizesSymbol, sizes);
7776
}
7877
7978
.pad-grid-item {
80-
@apply bg-gray-200 rounded-lg text-black;
79+
@apply bg-gray-200 rounded-lg text-black cursor-pointer;
8180
}
8281
</style>

0 commit comments

Comments
 (0)