Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9570fe2
feat: add in-lobby chat panel for private games
Phantasm0009 Nov 26, 2025
64d269b
chore: fix husky pre-commit and eslint mock inclusion
Phantasm0009 Nov 26, 2025
f31a3b0
fix: enforce 300-char limit and add __mocks__ to tsconfig
Phantasm0009 Nov 26, 2025
546b608
fix(lobby-chat): scroll after render, improve send failure UX, and na…
Phantasm0009 Nov 26, 2025
4894fa4
fix(lobby-chat): prevent default & stop propagation on Enter key
Phantasm0009 Nov 26, 2025
0d83cf8
Merge branch 'main' into lobby-chat-panel
Phantasm0009 Nov 26, 2025
17647d4
revert: remove unrelated StructureIconsLayer changes from lobby-chat PR
Phantasm0009 Nov 27, 2025
b16587d
fix: update OutlineFilter to use @pixi/filter-outline API
Phantasm0009 Nov 27, 2025
a806606
Merge branch 'main' into lobby-chat-panel
Phantasm0009 Nov 27, 2025
8a2056e
fix(deps): migrate to pixi-filters v6 for PixiJS v8 compatibility
Phantasm0009 Nov 27, 2025
9a5628d
Merge branch 'main' into lobby-chat-panel
Phantasm0009 Dec 1, 2025
f97d5c6
Fix clients able to join above max players (#2547)
Lavodan Dec 1, 2025
7de7f24
Add the Lisbon Map and Credit Copernicus DEM (#2545)
jachisc Dec 1, 2025
40be1d6
Fixes lobby team preview: clan players aren't assigned a team + add n…
VariableVince Dec 2, 2025
f241ac0
Correct Gulf of St. Lawrence map (#2555)
jachisc Dec 3, 2025
1ce87d2
fix failing nationNameLength test (#2556)
Lavodan Dec 3, 2025
dec23ce
Fix: firefox back button not working (#2557)
Lavodan Dec 3, 2025
df3e5d7
Special bot names (#2552)
VariableVince Dec 4, 2025
d0a047b
Fix spacing in player team label display (#2560)
VariableVince Dec 4, 2025
93cf256
Alert frame: add to in-game settings, orange for attack instead of re…
VariableVince Dec 4, 2025
d933b25
refactor: address code review feedback for lobby chat feature
Phantasm0009 Dec 4, 2025
7a28c49
Merge branch 'main' into lobby-chat-panel
Phantasm0009 Dec 4, 2025
255a767
fix: update ServerLobbyChatSchema to use username and isHost fields
Phantasm0009 Dec 4, 2025
762ac48
feat: improve lobby chat UX with local/remote message styling
Phantasm0009 Dec 4, 2025
254469d
fix: use lobbyConfig.playerName instead of undefined lobby variable
Phantasm0009 Dec 4, 2025
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
10 changes: 4 additions & 6 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# Husky v10 compatible pre-commit (removed deprecated husky.sh sourcing)
# Ensure PATH includes typical Node locations if needed (optional on most setups)
export PATH="$PATH"

# Add PATH setup to ensure npx is found
export PATH="/usr/local/bin:$HOME/.npm-global/bin:$HOME/.nvm/versions/node/$(node -v)/bin:$PATH"

# Then run lint-staged if tests pass
# Run lint-staged tasks
npx lint-staged
8 changes: 8 additions & 0 deletions __mocks__/jose.js
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this used for?

Copy link
Author

Choose a reason for hiding this comment

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

Its being used to mock the jose library for testing and its configured in the jest.config,test. Its imported by TestServerConfig.ts and it provides mock implementations for JWT functions during tesing.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Minimal mock of jose for tests
export const base64url = {
encode: (input) => Buffer.from(String(input)).toString("base64url"),
decode: (input) => Buffer.from(String(input), "base64url").toString("utf8"),
};
export const jwtVerify = async () => ({ payload: {}, protectedHeader: {} });
export const decodeJwt = () => ({ sub: "test" });
export const JWK = {};
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default [
projectService: {
allowDefaultProject: [
"__mocks__/fileMock.js",
"__mocks__/jose.js",
"eslint.config.js",
"jest.config.ts",
"postcss.config.js",
Expand Down
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default {
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
"^jose$": "<rootDir>/__mocks__/jose.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/__mocks__/fileMock.js",
"\\.(css|less)$": "<rootDir>/__mocks__/fileMock.js",
Expand Down
Loading
Loading