Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 24 additions & 17 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
api:
- any: ["frontend/src/ts/ape/**/*", "backend/src/api/**/*"]
- changed-files:
- any-glob-to-any-file:
- "frontend/src/ts/ape/**/*"
- "backend/src/api/**/*"

assets:
- any: ["frontend/static/**/*"]
all: ["!frontend/static/**/*.html"]
- all:
- changed-files:
- any-glob-to-any-file: "frontend/static/**/*"
- all-globs-to-all-files: "!frontend/static/**/*.html"

backend:
- any: ["backend/**/*"]
- changed-files:
- any-glob-to-any-file: "backend/**/*"

docs:
- any: ["**/*.md"]
- changed-files:
- any-glob-to-any-file: "**/*.md"

frontend:
- any: ["frontend/**/*"]
- changed-files:
- any-glob-to-any-file: "frontend/**/*"

packages:
- any: ["packages/**/*"]
- changed-files:
- any-glob-to-any-file: "packages/**/*"

local dev:
- any:
[
"**/turbo.json",
"**/tsconfig.json",
"**/knip.json",
"**/.prettierrc",
"**/.oxlintrc.json",
"**/.eslintrc.cjs",
]
"local dev":
- changed-files:
- any-glob-to-any-file:
- "**/turbo.json"
- "**/tsconfig.json"
- "**/knip.json"
- "**/.prettierrc.json"
- "**/.oxlintrc.json"
3 changes: 2 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v6
with:
repo-token: "${{ secrets.API_TOKEN }}"
sync-labels: true
4 changes: 4 additions & 0 deletions frontend/src/ts/constants/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,8 @@ export const Fonts: Record<KnownFontName, FontConfig> = {
Space_Grotesk: {
fileName: "SpaceGrotesk-Regular.woff2",
},
Noto_Sans_Lao: {
display: "Noto Sans Lao (ລາວ)",
fileName: "NotoSansLao-Regular.woff2",
},
};
11 changes: 8 additions & 3 deletions frontend/src/ts/controllers/challenge-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,6 @@ export async function setup(challengeName: string): Promise<boolean> {
nosave: true,
});
} else if (challenge.type === "funbox") {
setConfig("funbox", challenge.parameters[0] as FunboxName[], {
nosave: true,
});
setConfig("difficulty", "normal", {
nosave: true,
});
Expand All @@ -341,6 +338,14 @@ export async function setup(challengeName: string): Promise<boolean> {
nosave: true,
});
}

if (
!setConfig("funbox", challenge.parameters[0] as FunboxName[], {
nosave: true,
})
) {
throw new Error("Can't load challenge with current config");
}
} else if (challenge.type === "other") {
if (challenge.name === "semimak") {
// so can you make a link that sets up 120s, 10k, punct, stop on word, and semimak as the layout?
Expand Down
44 changes: 23 additions & 21 deletions frontend/src/ts/test/test-logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1199,27 +1199,29 @@ function compareCompletedEvents(
);
}
}
mismatchedKeys.sort();
const groupKey = mismatchedKeys.join(",");
Ape.results
.reportCompletedEventMismatch({
body: {
notMatching,
mismatchedKeys,
groupKey,
language: ce.language,
mode: ce.mode,
mode2: ce.mode2,
difficulty: ce.difficulty,
duration: ce.testDuration,
funboxes: getActiveFunboxNames().join(","),
// ce: ce as Record<string, unknown>,
// ce2: ce2 as Record<string, unknown>,
},
})
.catch(() => {
//
});
if (!ignoreMismatch) {
mismatchedKeys.sort();
const groupKey = mismatchedKeys.join(",");
Ape.results
.reportCompletedEventMismatch({
body: {
notMatching,
mismatchedKeys,
groupKey,
language: ce.language,
mode: ce.mode,
mode2: ce.mode2,
difficulty: ce.difficulty,
duration: ce.testDuration,
funboxes: getActiveFunboxNames().join(","),
// ce: ce as Record<string, unknown>,
// ce2: ce2 as Record<string, unknown>,
},
})
.catch(() => {
//
});
}
}

console.debug("Completed event object2", ce2);
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions packages/schemas/src/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const KnownFontNameSchema = z.enum(
"Adwaita_Mono",
"Inter_Tight",
"Space_Grotesk",
"Noto_Sans_Lao",
],
{
errorMap: customEnumErrorHandler("Must be a known font family"),
Expand Down
Loading