2026-03-19 06:58:08 +08:00
|
|
|
{
|
v2.6.2 — TREK Rebrand, OSM Enrichment, File Management, Hotel Bookings & Bug Fixes
Rebrand:
- NOMAD → TREK branding across all UI, translations, server, PWA manifest
- New TREK logos (dark/light, with/without icon)
- Liquid glass toast notifications
Bugs Fixed:
- HTTPS redirect now opt-in only (FORCE_HTTPS=true), fixes #33 #43 #52 #54 #55
- PDF export "Tag" fallback uses i18n, fixes #15
- Vacay sharing color collision detection, fixes #25
- Backup settings import fix (PR #47)
- Atlas country detection uses smallest bounding box, fixes #31
- JPY and zero-decimal currencies formatted correctly, fixes #32
- HTML lang="en" instead of hardcoded "de", fixes #34
- Duplicate translation keys removed
- setSelectedAssignmentId crash fixed
New Features:
- OSM enrichment: Overpass API for opening hours, Wikimedia Commons for photos
- Reverse geocoding on map right-click to add places
- OIDC config via environment variables (OIDC_ISSUER, OIDC_CLIENT_ID, etc.), fixes #48
- Multi-arch Docker build (ARM64 + AMD64), fixes #11
- File management: star, trash/restore, upload owner, assign to places/bookings, notes
- Markdown rendering in Collab Notes with expand modal, fixes #17
- Type-specific booking fields (flight: airline/number/airports, hotel: check-in/out/days, train: number/platform/seat), fixes #35
- Hotel bookings auto-create accommodations, bidirectional sync
- Multiple hotels per day with check-in/check-out color coding
- Ko-fi and Buy Me a Coffee support cards
- GitHub releases proxy with server-side caching
2026-03-28 23:38:08 +08:00
|
|
|
"name": "trek-server",
|
2026-04-24 01:49:49 +08:00
|
|
|
"version": "3.0.8",
|
2026-03-28 01:40:18 +08:00
|
|
|
"main": "src/index.ts",
|
2026-03-19 06:58:08 +08:00
|
|
|
"scripts": {
|
2026-03-28 01:40:18 +08:00
|
|
|
"start": "node --import tsx src/index.ts",
|
2026-04-03 19:17:53 +08:00
|
|
|
"dev": "tsx watch src/index.ts",
|
|
|
|
|
"test": "vitest run",
|
|
|
|
|
"test:watch": "vitest",
|
|
|
|
|
"test:unit": "vitest run tests/unit",
|
|
|
|
|
"test:integration": "vitest run tests/integration",
|
|
|
|
|
"test:ws": "vitest run tests/websocket",
|
|
|
|
|
"test:coverage": "vitest run --coverage"
|
2026-03-19 06:58:08 +08:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2026-03-30 09:53:45 +08:00
|
|
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
2026-03-19 06:58:08 +08:00
|
|
|
"archiver": "^6.0.1",
|
|
|
|
|
"bcryptjs": "^2.4.3",
|
2026-03-23 00:52:24 +08:00
|
|
|
"better-sqlite3": "^12.8.0",
|
2026-04-01 17:02:45 +08:00
|
|
|
"cookie-parser": "^1.4.7",
|
2026-03-19 06:58:08 +08:00
|
|
|
"cors": "^2.8.5",
|
|
|
|
|
"dotenv": "^16.4.1",
|
|
|
|
|
"express": "^4.18.3",
|
2026-04-05 21:54:26 +08:00
|
|
|
"fast-xml-parser": "^5.5.10",
|
2026-03-21 22:09:41 +08:00
|
|
|
"helmet": "^8.1.0",
|
2026-03-19 06:58:08 +08:00
|
|
|
"jsonwebtoken": "^9.0.2",
|
2026-03-29 07:35:16 +08:00
|
|
|
"multer": "^2.1.1",
|
2026-03-19 06:58:08 +08:00
|
|
|
"node-cron": "^4.2.1",
|
2026-04-12 01:11:21 +08:00
|
|
|
"nodemailer": "^8.0.5",
|
2026-03-28 10:29:37 +08:00
|
|
|
"otplib": "^12.0.1",
|
|
|
|
|
"qrcode": "^1.5.4",
|
feat(notices): add system notice infrastructure
Server-side notice registry with per-user condition evaluation (firstLogin,
existingUserBeforeVersion, addonEnabled, dateWindow, role, custom).
Notices are sorted by priority then severity, filtered against dismissals
stored in a new user_notice_dismissals table, and served via
GET /api/system-notices/active + POST /api/system-notices/:id/dismiss.
Client renders notices through a host component that partitions by
display type (modal / banner / toast). The modal renderer supports
multi-page pagination with directional slide transitions, keyboard
navigation, and correct dismiss-all semantics on CTA / X / ESC.
Dismissals are optimistic with a single background retry.
Includes 3.0.0 upgrade notices (v3-photos, v3-journey, v3-features),
onboarding welcome modal, and full i18n coverage across 15 languages.
The /journey route is addon-gated on both client and server.
Also includes: unit + integration test suites, registry integrity test
that validates action CTA IDs against client source, and technical
documentation in docs/system-notices.md.
2026-04-16 20:36:33 +08:00
|
|
|
"semver": "^7.7.4",
|
2026-04-22 21:56:34 +08:00
|
|
|
"sharp": "^0.34.5",
|
2026-03-28 01:40:18 +08:00
|
|
|
"tsx": "^4.21.0",
|
|
|
|
|
"typescript": "^6.0.2",
|
feat(notices): add system notice infrastructure
Server-side notice registry with per-user condition evaluation (firstLogin,
existingUserBeforeVersion, addonEnabled, dateWindow, role, custom).
Notices are sorted by priority then severity, filtered against dismissals
stored in a new user_notice_dismissals table, and served via
GET /api/system-notices/active + POST /api/system-notices/:id/dismiss.
Client renders notices through a host component that partitions by
display type (modal / banner / toast). The modal renderer supports
multi-page pagination with directional slide transitions, keyboard
navigation, and correct dismiss-all semantics on CTA / X / ESC.
Dismissals are optimistic with a single background retry.
Includes 3.0.0 upgrade notices (v3-photos, v3-journey, v3-features),
onboarding welcome modal, and full i18n coverage across 15 languages.
The /journey route is addon-gated on both client and server.
Also includes: unit + integration test suites, registry integrity test
that validates action CTA IDs against client source, and technical
documentation in docs/system-notices.md.
2026-04-16 20:36:33 +08:00
|
|
|
"undici": "^7.0.0",
|
2026-03-19 06:58:08 +08:00
|
|
|
"unzipper": "^0.12.3",
|
2026-04-23 17:07:25 +08:00
|
|
|
"uuid": "^14.0.0",
|
2026-03-30 09:53:45 +08:00
|
|
|
"ws": "^8.19.0",
|
|
|
|
|
"zod": "^4.3.6"
|
2026-03-19 06:58:08 +08:00
|
|
|
},
|
2026-04-12 01:11:21 +08:00
|
|
|
"overrides": {
|
|
|
|
|
"hono": "^4.12.12",
|
|
|
|
|
"@hono/node-server": "^1.19.13"
|
|
|
|
|
},
|
2026-03-19 06:58:08 +08:00
|
|
|
"devDependencies": {
|
2026-03-28 01:40:18 +08:00
|
|
|
"@types/archiver": "^7.0.0",
|
|
|
|
|
"@types/bcryptjs": "^2.4.6",
|
|
|
|
|
"@types/better-sqlite3": "^7.6.13",
|
2026-04-01 17:02:45 +08:00
|
|
|
"@types/cookie-parser": "^1.4.10",
|
2026-03-28 01:40:18 +08:00
|
|
|
"@types/cors": "^2.8.19",
|
2026-03-29 04:36:09 +08:00
|
|
|
"@types/express": "^4.17.25",
|
2026-03-28 01:40:18 +08:00
|
|
|
"@types/jsonwebtoken": "^9.0.10",
|
|
|
|
|
"@types/multer": "^2.1.0",
|
|
|
|
|
"@types/node": "^25.5.0",
|
|
|
|
|
"@types/node-cron": "^3.0.11",
|
feat: email notifications, webhook support, ICS export — closes #110
Email Notifications:
- SMTP configuration in Admin > Settings (host, port, user, pass, from)
- App URL setting for email CTA links
- Webhook URL support (Discord, Slack, custom)
- Test email button with SMTP validation
- Beautiful HTML email template with TREK logo, slogan, red heart footer
- All notification texts translated in 8 languages (en/de/fr/es/nl/ru/zh/ar)
- Emails sent in each user's language preference
Notification Events:
- Trip invitation (member added)
- Booking created (new reservation)
- Vacay fusion invite
- Photos shared (Immich)
- Collab chat message
- Packing list category assignment
User Notification Preferences:
- Per-user toggle for each event type in Settings
- Addon-aware: Vacay/Collab/Photos toggles hidden when addon disabled
- Webhook opt-in per user
ICS Calendar Export:
- Download button next to PDF in day plan header
- Exports trip dates + all reservations with details
- Compatible with Google Calendar, Apple Calendar, Outlook
Technical:
- Nodemailer for SMTP
- notification_preferences DB table with per-event columns
- GET/PUT /auth/app-settings for admin config persistence
- POST /notifications/test-smtp for validation
- Dynamic imports for non-blocking notification sends
2026-03-30 23:07:33 +08:00
|
|
|
"@types/nodemailer": "^7.0.11",
|
2026-03-28 10:29:37 +08:00
|
|
|
"@types/qrcode": "^1.5.5",
|
feat(notices): add system notice infrastructure
Server-side notice registry with per-user condition evaluation (firstLogin,
existingUserBeforeVersion, addonEnabled, dateWindow, role, custom).
Notices are sorted by priority then severity, filtered against dismissals
stored in a new user_notice_dismissals table, and served via
GET /api/system-notices/active + POST /api/system-notices/:id/dismiss.
Client renders notices through a host component that partitions by
display type (modal / banner / toast). The modal renderer supports
multi-page pagination with directional slide transitions, keyboard
navigation, and correct dismiss-all semantics on CTA / X / ESC.
Dismissals are optimistic with a single background retry.
Includes 3.0.0 upgrade notices (v3-photos, v3-journey, v3-features),
onboarding welcome modal, and full i18n coverage across 15 languages.
The /journey route is addon-gated on both client and server.
Also includes: unit + integration test suites, registry integrity test
that validates action CTA IDs against client source, and technical
documentation in docs/system-notices.md.
2026-04-16 20:36:33 +08:00
|
|
|
"@types/semver": "^7.7.1",
|
2026-04-03 19:17:53 +08:00
|
|
|
"@types/supertest": "^6.0.3",
|
2026-03-28 01:40:18 +08:00
|
|
|
"@types/unzipper": "^0.10.11",
|
|
|
|
|
"@types/uuid": "^10.0.0",
|
|
|
|
|
"@types/ws": "^8.18.1",
|
2026-04-03 19:17:53 +08:00
|
|
|
"@vitest/coverage-v8": "^3.2.4",
|
|
|
|
|
"nodemon": "^3.1.0",
|
|
|
|
|
"supertest": "^7.2.2",
|
2026-04-17 20:04:40 +08:00
|
|
|
"tz-lookup": "^6.1.25",
|
2026-04-03 19:17:53 +08:00
|
|
|
"vitest": "^3.2.4"
|
2026-03-19 06:58:08 +08:00
|
|
|
}
|
|
|
|
|
}
|