Skip to content
Closed
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
47 changes: 0 additions & 47 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

3 changes: 0 additions & 3 deletions context/WebSocketContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ export const WebSocketProvider = ({
console.log('[WebSocketProvider] Connected to server')
setConnectionStatus('Connected')

// Explicitly request initial state from the server
ws.send(JSON.stringify({ type: 'GET_STATE' }))

if (pendingActions.current.length > 0) {
console.log(`[useWebSocket] Sending ${pendingActions.current.length} pending actions.`)
pendingActions.current.forEach(action => {
Expand Down
3 changes: 1 addition & 2 deletions ecosystem.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ module.exports = {
name: 'hrm-server',
script: './start-production.sh',
interpreter: 'bash',
instances: 'max',
exec_mode: 'cluster',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
Expand Down
3 changes: 0 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ export default defineConfig([
// Apply recommended ESLint JavaScript rules
js.configs.recommended,

// Apply recommended TypeScript ESLint rules
...tseslint.configs.recommended,

// Configure JavaScript unused vars to work with TypeScript
{
rules: {
Expand Down
7 changes: 2 additions & 5 deletions lib/middleware/errorHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import { NextResponse } from 'next/server';
import { ApiError } from '@/lib/errors';
import logger from '@/utils/logger';

type ApiHandler = (
req: Request,
...args: unknown[]
) => Promise<NextResponse>;
type ApiHandler = (req: Request, ...args: any[]) => Promise<NextResponse>;

/**
* Wraps an API route handler to provide centralized error handling.
Expand All @@ -18,7 +15,7 @@ type ApiHandler = (
* @returns A new handler with error handling.
*/
export function withErrorHandler(handler: ApiHandler): ApiHandler {
return async (req: Request, ...args: unknown[]) => {
return async (req: Request, ...args: any[]) => {
try {
return await handler(req, ...args);
} catch (error) {
Expand Down
18 changes: 5 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
"release:major": "pnpm version major -m \"release: major %s\"",
"test:infra": "playwright test tests/playwright/infrastructure.spec.ts",
"verify": "node scripts/verify-and-publish.cjs",
"commit:verified": "npm run verify",
"depcheck": "depcheck"
"commit:verified": "npm run verify"
},
"dependencies": {
"@emotion/cache": "^11.14.0",
Expand All @@ -68,13 +67,13 @@
"zod": "^4.1.13"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@jest/globals": "^30.2.0",
"@next/bundle-analyzer": "^16.0.5",
"@playwright/test": "^1.57.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/eslint": "^9.6.1",
"@types/express": "^5.0.5",
"@types/jest": "^30.0.0",
"@types/lodash": "^4.17.21",
Expand All @@ -86,9 +85,10 @@
"@types/swagger-ui-express": "^4.1.8",
"@types/web-bluetooth": "^0.0.21",
"@types/ws": "^8.18.1",
"@typescript-eslint/eslint-plugin": "8.48.0",
"@typescript-eslint/parser": "8.48.0",
"babel-plugin-react-compiler": "1.0.0",
"cross-env": "^10.1.0",
"depcheck": "^1.4.7",
"eslint": "9.39.1",
"eslint-config-next": "16.0.1",
"eslint-config-prettier": "^10.1.8",
Expand All @@ -101,19 +101,11 @@
"ts-jest": "^29.4.5",
"ts-node": "^10.9.2",
"typescript": "^5.9.3",
"typescript-eslint": "^8.48.0",
"wait-on": "^9.0.3"
},
"engines": {
"node": ">=20.0.0",
"pnpm": ">=8.0.0"
},
"packageManager": "pnpm@9.0.0",
"depcheck": {
"ignores": [
"@types/web-bluetooth",
"cross-env",
"jest-environment-jsdom"
]
}
"packageManager": "pnpm@9.0.0"
}
Loading
Loading