Skip to content

Commit 310ab82

Browse files
authored
Merge pull request #167 from javedh-dev/dev
Bugfix for migration
2 parents 640e4ee + 4599934 commit 310ab82

File tree

4 files changed

+289
-177
lines changed

4 files changed

+289
-177
lines changed

changelogs/1.2.0.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Release Notes – v1.2.0 (2026-01-21)
2+
3+
## Overview
4+
5+
v1.2.0 brings significant enhancements to settings management, improved localization support with new languages, enhanced form flexibility, and better deployment capabilities. This release focuses on user customization, accessibility improvements, and making Tracktor more adaptable to diverse deployment scenarios and user preferences.
6+
7+
## Major Features
8+
9+
### Enhanced Settings Management
10+
11+
- **Settings:** Comprehensive settings interface with organized configuration options
12+
- **Fuel Unit Configuration:** Configurable fuel units for different fuel types (CNG, LPG)
13+
- **Mileage Unit Formats:** Support for both distance-per-fuel (km/L, mpg) and fuel-per-distance (L/100km) display formats
14+
- **Auto-complete Inputs:** Improved form experience with auto-complete support for common fields
15+
- **Timezone Management:** Canonical IANA timezone list for consistent cross-platform time handling
16+
17+
### Expanded Internationalization Support
18+
19+
- **New Languages:**
20+
- Italian (it) localization added with complete translations
21+
- Hungarian (hu) localization support
22+
- Arabic (ar) localization with RTL (Right-to-Left) support
23+
- **RTL Language Support:** Enhanced UI components to properly handle right-to-left languages
24+
- **Improved i18n Infrastructure:**
25+
- Added `languageTags` and `sourceLanguageTag` to settings for better localization support
26+
- Enhanced submit button with localized login button text
27+
- Updated message handling across all forms and components
28+
29+
### Flexible Data Input
30+
31+
- **Optional Fields:** Made odometer and fuel volume optional in fuel logs for greater flexibility
32+
- **Extended Vehicle Years:** Updated vehicle year constraint to support vehicles from 1900 onwards
33+
- **Validation Improvements:** Auto-switch to tabs containing validation errors for better user feedback
34+
35+
### Deployment & Infrastructure
36+
37+
- **Reverse Proxy Support:** Added base URL configuration for deployment behind reverse proxies
38+
- **Enhanced Documentation:** New comprehensive guide for reverse proxy deployment scenarios
39+
40+
## UI/UX Improvements
41+
42+
### Enhanced Components
43+
44+
- **Pagination:** Added pagination ellipsis in AppTable component for improved navigation of large datasets
45+
- **Dialog Positioning:** Improved positioning and styling for dialog components and vehicle details modal
46+
- **Import Layout:** Refactored import button layout with enhanced loading state handling in FuelLogImportForm
47+
- **Form Feedback:** Better error messaging and auto-navigation to fields with validation errors
48+
49+
### Styling & Accessibility
50+
51+
- **RTL Language Support:** Proper text alignment and layout for right-to-left languages
52+
- **Consistent Formatting:** Improved submit button formatting across all forms
53+
- **Mobile Responsiveness:** Enhanced mobile experience for settings and configuration screens
54+
55+
## Bug Fixes & Improvements
56+
57+
### Critical Fixes
58+
59+
- Fixed localization support with proper language tag configuration
60+
- Corrected Italian translation typos in recurrence messages
61+
- Fixed formatting and linting issues across the codebase
62+
63+
### Code Quality
64+
65+
- Upgraded all dependencies to latest stable versions (performed twice during release cycle)
66+
- Removed unnecessary dependencies for improved bundle size
67+
- Fixed various formatting and linting errors for better code maintainability
68+
- Enhanced TypeScript type safety across components
69+
70+
## Technical Changes
71+
72+
### Database Migrations
73+
74+
- **20260120190621:** Made odometer and volume fields optional in fuel_logs table
75+
- **20260120190820:** Added configuration entries for:
76+
- Mileage unit format (distance-per-fuel vs fuel-per-distance)
77+
- LPG fuel unit configuration (litre)
78+
- CNG fuel unit configuration (kilogram)
79+
80+
### Configuration System
81+
82+
- Enhanced settings schema to support fuel type-specific unit configurations
83+
- Added mileage display format preferences
84+
- Improved configuration category organization
85+
86+
### Localization Files
87+
88+
- Added complete Italian translation file (messages/it.json)
89+
- Added complete Hungarian translation file (messages/hu.json)
90+
- Updated Arabic translation file with RTL support enhancements
91+
- Fixed translation inconsistencies across all language files
92+
93+
## Migration Notes
94+
95+
- No breaking changes from v1.1.0
96+
- Optional fields in fuel logs maintain backward compatibility
97+
- New configuration entries are automatically seeded during migration
98+
- Existing data remains fully compatible with new optional field structure
99+
100+
## Contributors
101+
102+
Special thanks to:
103+
104+
- @albanobattistella for Italian localization
105+
- @daunera for settings modal implementation and fuel unit configurations
106+
- All community members who reported issues and provided feedback
107+
108+
## Known Issues
109+
110+
- None reported at release time
111+
112+
For detailed commit history, see the [compare view](https://github.com/javedh-dev/tracktor/compare/v1.1.0...v1.2.0).

migrations/20260120190621_make_odometer_and_volume_optional.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ CREATE TABLE fuel_logs_new (
99
odometer INTEGER,
1010
fuel_amount REAL,
1111
cost REAL NOT NULL,
12-
filled INTEGER NOT NULL,
13-
missed_last INTEGER NOT NULL,
12+
filled tinyint(1) NOT NULL,
13+
missed_last tinyint(1) NOT NULL,
1414
notes TEXT,
1515
attachment TEXT,
1616
created_at TEXT,
1717
updated_at TEXT
1818
);
1919

2020
--> statement-breakpoint
21-
INSERT INTO fuel_logs_new
22-
SELECT * FROM fuel_logs;
21+
INSERT INTO fuel_logs_new(id, vehicle_id, date, odometer, fuel_amount, cost, filled, missed_last, notes, attachment, created_at, updated_at)
22+
SELECT id, vehicle_id, date, odometer, fuel_amount, cost, filled, missed_last, notes, attachment, created_at, updated_at FROM fuel_logs;
2323

2424
--> statement-breakpoint
2525
DROP TABLE fuel_logs;

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
},
2323
"devDependencies": {
2424
"@eslint/js": "^9.39.2",
25-
"@inlang/paraglide-js": "^2.9.0",
25+
"@inlang/paraglide-js": "^2.9.1",
2626
"@internationalized/date": "^3.10.1",
2727
"@lucide/svelte": "^0.562.0",
2828
"@sveltejs/adapter-node": "^5.5.1",
29-
"@sveltejs/kit": "^2.49.5",
29+
"@sveltejs/kit": "^2.50.0",
3030
"@sveltejs/vite-plugin-svelte": "^6.2.4",
3131
"@tailwindcss/forms": "^0.5.11",
3232
"@tailwindcss/typography": "^0.5.19",
@@ -35,8 +35,8 @@
3535
"@testing-library/svelte": "^5.3.1",
3636
"@types/node": "^25.0.9",
3737
"@types/supertest": "^6.0.3",
38-
"@typescript-eslint/eslint-plugin": "^8.53.0",
39-
"@typescript-eslint/parser": "^8.53.0",
38+
"@typescript-eslint/eslint-plugin": "^8.53.1",
39+
"@typescript-eslint/parser": "^8.53.1",
4040
"@vitest/coverage-v8": "^4.0.17",
4141
"bits-ui": "^2.15.4",
4242
"clsx": "^2.1.1",
@@ -60,7 +60,7 @@
6060
"prettier": "^3.8.0",
6161
"prettier-plugin-svelte": "^3.4.1",
6262
"prettier-plugin-tailwindcss": "^0.7.2",
63-
"svelte": "^5.46.4",
63+
"svelte": "^5.47.1",
6464
"svelte-awesome-color-picker": "^4.1.0",
6565
"svelte-check": "^4.3.5",
6666
"svelte-eslint-parser": "^1.4.1",

0 commit comments

Comments
 (0)