Skip to content

Commit ebff631

Browse files
committed
chore: release version packages
1 parent c386a17 commit ebff631

File tree

15 files changed

+125
-20
lines changed

15 files changed

+125
-20
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# mpesa2csv
22

3+
## 0.6.0
4+
5+
### Minor Changes
6+
7+
- feat: added date formatter to filter options
8+
- fix: save file dialog not working on windows
9+
310
## 0.5.5
411

512
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mpesa2csv",
33
"private": true,
4-
"version": "0.5.5",
4+
"version": "0.6.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mpesa2csv"
3-
version = "0.5.5"
3+
version = "0.6.0"
44
description = "Convert M-PESA Statements to CSV/Excel Files"
55
authors = ["David Amunga"]
66
edition = "2021"

src-tauri/capabilities/default.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"windows": ["main"],
66
"permissions": [
77
"core:default",
8+
"os:default",
89
"opener:default",
910
"core:webview:allow-webview-position",
1011
"core:webview:allow-webview-size",

src-tauri/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ async fn save_file(
135135
use tauri_plugin_dialog::DialogExt;
136136
use std::fs;
137137

138-
139138
let file_path = app
140139
.dialog()
141140
.file()

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "mpesa2csv",
4-
"version": "0.5.5",
4+
"version": "0.6.0",
55
"identifier": "com.amunga.david.mpesa2csv",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

src/App.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,16 @@ function App() {
8484
useEffect(() => {
8585
const initializeApp = async () => {
8686
try {
87-
const [version, platformName] = await Promise.all([
87+
const [version] = await Promise.all([
8888
invoke<string>("get_app_version"),
89-
platform(),
89+
// platform(),
9090
]);
9191
setAppVersion(version);
92-
setCurrentPlatform(platformName);
92+
setCurrentPlatform(platform());
9393
} catch (error) {
94-
setAppVersion("unknown");
95-
setCurrentPlatform("unknown");
94+
console.error("Failed to initialize app:", error);
9695
}
9796
};
98-
9997
initializeApp();
10098
}, []);
10199

src/components/export-options.tsx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {
22
ExportFormat,
33
ExportOptions as ExportOptionsType,
44
SortOrder,
5+
DateFormat,
56
} from "../types";
67
import { ExportService } from "../services/exportService";
78
import {
@@ -15,6 +16,10 @@ import { Checkbox } from "./ui/checkbox";
1516
import { Tooltip, TooltipTrigger, TooltipContent } from "./ui/tooltip";
1617
import { Label } from "./ui/label";
1718
import { Info } from "lucide-react";
19+
import {
20+
getDateFormatDisplayName,
21+
getAllDateFormats,
22+
} from "../utils/dateFormatter";
1823

1924
interface ExportOptionsProps {
2025
exportFormat: ExportFormat;
@@ -96,6 +101,14 @@ export default function ExportOptions({
96101
onOptionsChange(newOptions);
97102
};
98103

104+
const handleDateFormatChange = (value: DateFormat) => {
105+
const newOptions = {
106+
...exportOptions,
107+
dateFormat: value,
108+
};
109+
onOptionsChange(newOptions);
110+
};
111+
99112
return (
100113
<div className="space-y-4">
101114
<div>
@@ -170,6 +183,32 @@ export default function ExportOptions({
170183
</SelectContent>
171184
</Select>
172185
</div>
186+
187+
{/* Date Format */}
188+
<div>
189+
<Label className="block text-sm font-medium mb-2">
190+
Date Format
191+
</Label>
192+
<Select
193+
value={exportOptions.dateFormat || DateFormat.ISO_FORMAT}
194+
onValueChange={handleDateFormatChange}
195+
>
196+
<SelectTrigger className="w-full">
197+
<SelectValue placeholder="Select date format">
198+
{getDateFormatDisplayName(
199+
exportOptions.dateFormat || DateFormat.ISO_FORMAT
200+
)}
201+
</SelectValue>
202+
</SelectTrigger>
203+
<SelectContent>
204+
{getAllDateFormats().map((format) => (
205+
<SelectItem key={format} value={format}>
206+
{getDateFormatDisplayName(format)}
207+
</SelectItem>
208+
))}
209+
</SelectContent>
210+
</Select>
211+
</div>
173212
</div>
174213
</div>
175214

src/components/file-uploader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const FileUploader: React.FC<FileUploaderProps> = ({
166166
>
167167
{dragActive
168168
? "Drop your PDF files here!"
169-
: "Convert M-PESA PDF's to CSV/Excel"}
169+
: "Convert M-PESA Statements to CSV/Excel"}
170170
</h3>
171171

172172
<p

0 commit comments

Comments
 (0)