Skip to content

Commit 3929a96

Browse files
authored
Merge pull request #104 from afadil/dev
fix dividend validation
2 parents 561662a + 4fd6f8a commit 3929a96

File tree

6 files changed

+21
-47
lines changed

6 files changed

+21
-47
lines changed

README.md

Lines changed: 15 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<br />
1212
<a href="https://wealthfolio.app">Website</a>
1313
·
14-
<a href="https://discord.gg/KFWg22au">Discord</a>
14+
<a href="https://discord.gg/WDMCY6aPWK">Discord</a>
1515
·
1616
<a href="https://x.com/intent/follow?screen_name=WealthfolioApp">Twitter</a>
1717
·
@@ -108,46 +108,20 @@ Ensure you have the following installed on your machine:
108108

109109
```
110110
wealthfolio/
111-
├── .github/
112-
│ └── workflows/
113-
│ └── release.yml
114-
├── public/
115-
├── src/
116-
│ ├── assets/
117-
│ ├── commands/
118-
│ ├── components/
119-
│ ├── lib/
120-
│ ├── pages/
121-
│ ├── App.tsx
122-
│ ├── main.tsx
123-
│ ├── routes.tsx
124-
│ ├── styles.css
125-
│ ├── useGlobalEventListener.ts
126-
│ └── vite-env.d.ts
127-
├── src-tauri/
128-
│ ├── icons/
129-
│ ├── migrations/
130-
│ ├── src/
131-
│ ├── target/
132-
│ ├── .gitignore
133-
│ ├── build.rs
134-
│ ├── Cargo.lock
135-
│ ├── Cargo.toml
136-
│ ├── diesel.toml
137-
│ ├── tauri.conf.json
138-
├── .env
139-
├── .eslintrc.cjs
140-
├── .gitignore
141-
├── .prettierrc.cjs
142-
├── components.json
143-
├── index.html
144-
├── package.json
145-
├── pnpm-lock.yaml
146-
├── postcss.config.js
147-
├── README.md
148-
├── tailwind.config.js
149-
├── tsconfig.json
150-
└── vite.config.ts
111+
├── src/ # Main source code for the React application
112+
├── src-core/ # Core backend functionality
113+
├── src-tauri/ # Tauri-specific code for desktop app functionality
114+
├── public/ # Public assets
115+
├── LICENSE # License file
116+
├── README.md # Project documentation
117+
├── ROADMAP.md # Future plans and roadmap
118+
├── components.json # Component configuration
119+
├── package.json # Node.js dependencies and scripts
120+
├── pnpm-lock.yaml # Lock file for pnpm
121+
├── postcss.config.js # PostCSS configuration
122+
├── tailwind.config.js # Tailwind CSS configuration
123+
├── tsconfig.json # TypeScript configuration
124+
└── vite.config.ts # Vite build tool configuration
151125
```
152126

153127
## Contributing

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wealthfolio-app",
33
"private": true,
4-
"version": "1.0.12",
4+
"version": "1.0.13",
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 = "wealthfolio-app"
3-
version = "1.0.12"
3+
version = "1.0.13"
44
description = "Portfolio tracker"
55
authors = ["Aziz Fadil"]
66
license = "LGPL-3.0"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "Wealthfolio",
11-
"version": "1.0.12"
11+
"version": "1.0.13"
1212
},
1313
"tauri": {
1414
"allowlist": {

src/lib/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export const newActivitySchema = z.object({
7777
unitPrice: z.coerce
7878
.number({
7979
required_error: 'Please enter a valid price.',
80-
invalid_type_error: 'Price must be a positive number.',
80+
invalid_type_error: 'Price must be a non-negative number.',
8181
})
82-
.positive({ message: 'Price must be a positive number.' }),
82+
.min(0, { message: 'Price must be a non-negative number.' }),
8383
comment: z.string().optional(),
8484
});

0 commit comments

Comments
 (0)