From 0f7a568ca8bcf360f53e049d5c46f4681ea27347 Mon Sep 17 00:00:00 2001 From: Anantha Kumaran Date: Sat, 11 Nov 2023 08:25:27 +0530 Subject: [PATCH] bump version --- .github/workflows/linux-app.yml | 6 ++-- CHANGELOG.md | 11 +++++++ cmd/version.go | 2 +- desktop/build/linux/DEBIAN/control | 2 +- desktop/main.go | 2 +- desktop/wails.json | 2 +- flake.nix | 2 +- src/lib/components/AccountsSelect.svelte | 39 ++++++++++++------------ src/routes/more/about/+page.svelte | 2 +- 9 files changed, 39 insertions(+), 29 deletions(-) diff --git a/.github/workflows/linux-app.yml b/.github/workflows/linux-app.yml index 47886c45..83083fb7 100644 --- a/.github/workflows/linux-app.yml +++ b/.github/workflows/linux-app.yml @@ -34,10 +34,10 @@ jobs: wails doctor wails build -tags webkit2_40 cp build/bin/Paisa build/linux/usr/local/bin - cp -r build/linux paisa_0.5.6_amd64 - dpkg --build paisa_0.5.6_amd64 + cp -r build/linux paisa_0.5.7_amd64 + dpkg --build paisa_0.5.7_amd64 cd .. - mv desktop/paisa_0.5.6_amd64.deb paisa-app-linux-amd64.deb + mv desktop/paisa_0.5.7_amd64.deb paisa-app-linux-amd64.deb - name: Release uses: softprops/action-gh-release@v1 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a58e5cf..d4bf5b2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # CHANGELOG +### 0.5.7 (2023-11-11) + +* Add [goals](https://paisa.fyi/reference/goals) +* Remove retirement page (available under goals) +* Bug fixes + +## Breaking Changes :rotating_light: + +Retirement page has been moved under goals. If you have used +retirement, you need to setup a new [retirement goal](https://paisa.fyi/reference/goals) + ### 0.5.6 (2023-11-04) * Add support for Income:CapitalGains diff --git a/cmd/version.go b/cmd/version.go index 62c9c5f7..ef46490b 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -9,7 +9,7 @@ var versionCmd = &cobra.Command{ Use: "version", Short: "Print the version information", Run: func(cmd *cobra.Command, args []string) { - fmt.Println("Version:", "0.5.6") + fmt.Println("Version:", "0.5.7") }, } diff --git a/desktop/build/linux/DEBIAN/control b/desktop/build/linux/DEBIAN/control index 472120d6..456268b9 100644 --- a/desktop/build/linux/DEBIAN/control +++ b/desktop/build/linux/DEBIAN/control @@ -1,5 +1,5 @@ Package: paisa -Version: 0.5.6 +Version: 0.5.7 Section: misc Priority: optional Architecture: amd64 diff --git a/desktop/main.go b/desktop/main.go index cf150fe6..f13721ef 100644 --- a/desktop/main.go +++ b/desktop/main.go @@ -61,7 +61,7 @@ func main() { Mac: &mac.Options{ About: &mac.AboutInfo{ Title: "Paisa", - Message: "Version 0.5.6 \nCopyright © 2022 - 2023 \nAnantha Kumaran", + Message: "Version 0.5.7 \nCopyright © 2022 - 2023 \nAnantha Kumaran", Icon: icon, }, }, diff --git a/desktop/wails.json b/desktop/wails.json index 46db75f7..c0f4b37b 100644 --- a/desktop/wails.json +++ b/desktop/wails.json @@ -11,7 +11,7 @@ "Info": { "companyName": "Paisa", "productName": "Paisa", - "productVersion": "0.5.6", + "productVersion": "0.5.7", "copyright": "Copyright © 2022 - 2023 Anantha Kumaran", "comments": "Personal finance manager" } diff --git a/flake.nix b/flake.nix index d4b18c38..5f80b705 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,7 @@ packages.default = pkgs.buildGoModule { pname = "paisa-cli"; - version = "0.5.6"; + version = "0.5.7"; src = ./.; diff --git a/src/lib/components/AccountsSelect.svelte b/src/lib/components/AccountsSelect.svelte index 1d130b93..ee5da368 100644 --- a/src/lib/components/AccountsSelect.svelte +++ b/src/lib/components/AccountsSelect.svelte @@ -6,22 +6,19 @@ export let allAccounts: string[]; export let accounts: string[]; + let allAccountItems: { value: string; label: string; created?: boolean }[]; + let accountItems: { value: string; label: string; created?: boolean }[]; + let filterText = ""; - let allAccountItems: { value: string; label: string; created?: boolean }[] = _.map( - allAccounts, - (account) => ({ - value: account, - label: account - }) - ); + $: allAccountItems = _.map(allAccounts, (account) => ({ + value: account, + label: account + })); - let accountItems: { value: string; label: string; created?: boolean }[] = _.map( - accounts, - (account) => ({ - value: account, - label: account - }) - ); + $: accountItems = _.map(accounts, (account) => ({ + value: account, + label: account + })); function handleFilter(e: any) { if (accountItems?.find((i) => i.label === filterText)) return; @@ -31,11 +28,13 @@ } } - function handleChange(_e: any) { - accountItems = accountItems.map((i) => { - delete i.created; - return i; - }); + function handleChange(e: any) { + if (e.type === "clear") { + accountItems = _.without(accountItems, e.detail); + } else { + accountItems = _.cloneDeep(e.detail); + } + accounts = accountItems.map((i) => i.value); } @@ -45,7 +44,7 @@ multiple class="is-small is-expandable custom-icon" items={allAccountItems} - bind:value={accountItems} + value={accountItems} showChevron={true} searchable={true} clearable={false} diff --git a/src/routes/more/about/+page.svelte b/src/routes/more/about/+page.svelte index 5c0eba91..e146d1e7 100644 --- a/src/routes/more/about/+page.svelte +++ b/src/routes/more/about/+page.svelte @@ -43,7 +43,7 @@
Paisa
- Version: 0.5.6 + Version: 0.5.7