Skip to content

Commit

Permalink
Merge pull request #104 from afadil/dev
Browse files Browse the repository at this point in the history
fix dividend validation
  • Loading branch information
afadil committed Sep 12, 2024
2 parents 561662a + 4fd6f8a commit 3929a96
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 47 deletions.
56 changes: 15 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<br />
<a href="https://wealthfolio.app">Website</a>
·
<a href="https://discord.gg/KFWg22au">Discord</a>
<a href="https://discord.gg/WDMCY6aPWK">Discord</a>
·
<a href="https://x.com/intent/follow?screen_name=WealthfolioApp">Twitter</a>
·
Expand Down Expand Up @@ -108,46 +108,20 @@ Ensure you have the following installed on your machine:

```
wealthfolio/
├── .github/
│ └── workflows/
│ └── release.yml
├── public/
├── src/
│ ├── assets/
│ ├── commands/
│ ├── components/
│ ├── lib/
│ ├── pages/
│ ├── App.tsx
│ ├── main.tsx
│ ├── routes.tsx
│ ├── styles.css
│ ├── useGlobalEventListener.ts
│ └── vite-env.d.ts
├── src-tauri/
│ ├── icons/
│ ├── migrations/
│ ├── src/
│ ├── target/
│ ├── .gitignore
│ ├── build.rs
│ ├── Cargo.lock
│ ├── Cargo.toml
│ ├── diesel.toml
│ ├── tauri.conf.json
├── .env
├── .eslintrc.cjs
├── .gitignore
├── .prettierrc.cjs
├── components.json
├── index.html
├── package.json
├── pnpm-lock.yaml
├── postcss.config.js
├── README.md
├── tailwind.config.js
├── tsconfig.json
└── vite.config.ts
├── src/ # Main source code for the React application
├── src-core/ # Core backend functionality
├── src-tauri/ # Tauri-specific code for desktop app functionality
├── public/ # Public assets
├── LICENSE # License file
├── README.md # Project documentation
├── ROADMAP.md # Future plans and roadmap
├── components.json # Component configuration
├── package.json # Node.js dependencies and scripts
├── pnpm-lock.yaml # Lock file for pnpm
├── postcss.config.js # PostCSS configuration
├── tailwind.config.js # Tailwind CSS configuration
├── tsconfig.json # TypeScript configuration
└── vite.config.ts # Vite build tool configuration
```
## Contributing
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wealthfolio-app",
"private": true,
"version": "1.0.12",
"version": "1.0.13",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wealthfolio-app"
version = "1.0.12"
version = "1.0.13"
description = "Portfolio tracker"
authors = ["Aziz Fadil"]
license = "LGPL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "Wealthfolio",
"version": "1.0.12"
"version": "1.0.13"
},
"tauri": {
"allowlist": {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export const newActivitySchema = z.object({
unitPrice: z.coerce
.number({
required_error: 'Please enter a valid price.',
invalid_type_error: 'Price must be a positive number.',
invalid_type_error: 'Price must be a non-negative number.',
})
.positive({ message: 'Price must be a positive number.' }),
.min(0, { message: 'Price must be a non-negative number.' }),
comment: z.string().optional(),
});

0 comments on commit 3929a96

Please sign in to comment.