From f8586f0f509da5e17f3ed7cf36c1f50f74337752 Mon Sep 17 00:00:00 2001 From: Peter Blenessy Date: Mon, 22 Jul 2024 23:25:20 +0200 Subject: [PATCH] - Changed background color for expanded rows for better contrast compared to the rest of the table. - Fixed scroll performance degradation due to sticky headers in tables. - Upgraded openssl version to 0.10.66 (CWE-476) --- CHANGELOG.md | 8 +- package.json | 2 +- src-tauri/Cargo.lock | 108 +++++++++++------------ src-tauri/tauri.conf.json | 3 +- src/components/ComponentFundHoldings.vue | 18 ++-- src/components/ComponentFunds.vue | 18 ++-- src/components/ComponentIbindex.vue | 16 ++-- 7 files changed, 93 insertions(+), 80 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1738ab4..2f99a85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,8 +25,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### [MINOR] - Change: Refactor components. (1). Create composables, abstracting getting data from dB. (2). Move fetch() operations to pine store layer. -- Change: Downloading FI data takes too long time, and immediately loading data from dB after refresh hangs, it seems that dB is not ready. -- Fix: there are dupplicates in the data from FI and we get 605 items when refreshing, vs 600 when loading from dB. Refactor download-import flow? - Add: selectable rows in funds holdings tables. - Add support for user settings and app configuration. - Add historical rebate/premioum to expanded row in ibindex component. @@ -35,7 +33,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Change yarn from v1 -> v2 (https://yarnpkg.com/getting-started/migration) ### [PATCH] -- Fix: catch and handle fetch() POST errors, e.g., Failed to load resource: the server responded with a status of 500. - Fix: refresh does not seem to propagate to child components on ibindex pages - Fix: dashboard refreshed when alarm trigger is saved and refresh success notification is shown @@ -46,6 +43,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [UNRELEASED] +## v1.0.2 - 2024-07-21 +- Changed background color for expanded rows for better contrast compared to the rest of the table. +- Fixed scroll performance degradation due to sticky headers in tables. +- Upgraded openssl version to 0.10.66 (CWE-476) + ## v1.0.1 - 2024-07-20 - Fixed some table styling inconsistencies in the app. - Translated some missed texts to Swedish. diff --git a/package.json b/package.json index e5b335b..bd7343f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stoqster", - "version": "1.0.1", + "version": "1.0.2", "productName": "Stoqster", "author": "Péter Blénessy", "private": true, diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index b4187ac..7f4eb44 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -213,9 +213,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" +checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" dependencies = [ "serde", ] @@ -256,9 +256,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.0" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaff6f8ce506b9773fa786672d63fc7a191ffea1be33f72bbd4aeacefca9ffc8" +checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f" [[package]] name = "cesu8" @@ -493,7 +493,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" dependencies = [ "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -503,7 +503,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f" dependencies = [ "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -527,7 +527,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -538,7 +538,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -561,7 +561,7 @@ dependencies = [ "proc-macro2", "quote", "rustc_version", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -624,14 +624,14 @@ checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" [[package]] name = "embed-resource" -version = "2.4.2" +version = "2.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6985554d0688b687c5cb73898a34fbe3ad6c24c58c238a4d91d5e840670ee9d" +checksum = "4edcacde9351c33139a41e3c97eb2334351a81a2791bebb0b243df837128f602" dependencies = [ "cc", "memchr", "rustc_version", - "toml 0.8.14", + "toml 0.8.15", "vswhom", "winreg 0.52.0", ] @@ -794,7 +794,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -1818,9 +1818,9 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "openssl" -version = "0.10.64" +version = "0.10.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f" +checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" dependencies = [ "bitflags 2.6.0", "cfg-if", @@ -1839,7 +1839,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -1850,9 +1850,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.102" +version = "0.9.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2" +checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" dependencies = [ "cc", "libc", @@ -1909,7 +1909,7 @@ checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.5.2", + "redox_syscall 0.5.3", "smallvec", "windows-targets 0.52.6", ] @@ -2024,7 +2024,7 @@ dependencies = [ "phf_shared 0.11.2", "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -2281,9 +2281,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c82cf8cff14456045f55ec4241383baeff27af886adb72ffb2162f99911de0fd" +checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" dependencies = [ "bitflags 2.6.0", ] @@ -2490,9 +2490,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "security-framework" -version = "2.11.0" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c627723fd09706bacdb5cf41499e95098555af3c3c29d014dc3c458ef6be11c0" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ "bitflags 2.6.0", "core-foundation", @@ -2503,9 +2503,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.11.0" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317936bbbd05227752583946b9e66d7ce3b489f84e11a94a510b4437fef407d7" +checksum = "75da29fe9b9b08fe9d6b22b5b4bcbc75d8db3aa31e639aa56bb62e9d46bfceaf" dependencies = [ "core-foundation-sys", "libc", @@ -2557,7 +2557,7 @@ checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" dependencies = [ "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -2580,7 +2580,7 @@ checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -2606,9 +2606,9 @@ dependencies = [ [[package]] name = "serde_with" -version = "3.8.3" +version = "3.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e73139bc5ec2d45e6c5fd85be5a46949c1c39a4c18e56915f5eb4c12f975e377" +checksum = "69cecfa94848272156ea67b2b1a53f20fc7bc638c4a46d2f8abde08f05f4b857" dependencies = [ "base64 0.22.1", "chrono", @@ -2624,14 +2624,14 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "3.8.3" +version = "3.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b80d3d6b56b64335c0180e5ffde23b3c5e08c14c585b51a15bd0e95393f46703" +checksum = "a8fee4991ef4f274617a51ad4af30519438dacb2f56ac773b08a1922ff743350" dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -2811,9 +2811,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.70" +version = "2.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f0209b68b3613b093e0ec905354eccaedcfe83b8cb37cbdeae64026c3064c16" +checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" dependencies = [ "proc-macro2", "quote", @@ -2869,7 +2869,7 @@ dependencies = [ "cfg-expr 0.15.8", "heck 0.5.0", "pkg-config", - "toml 0.8.14", + "toml 0.8.15", "version-compare 0.2.0", ] @@ -3173,22 +3173,22 @@ checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c" [[package]] name = "thiserror" -version = "1.0.61" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" +checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.61" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" +checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -3249,9 +3249,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.38.0" +version = "1.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" +checksum = "eb2caba9f80616f438e09748d5acda951967e1ea58508ef53d9c6402485a46df" dependencies = [ "backtrace", "bytes", @@ -3309,14 +3309,14 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.14" +version = "0.8.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f49eb2ab21d2f26bd6db7bf383edc527a7ebaee412d17af4d40fdccd442f335" +checksum = "ac2caab0bf757388c6c0ae23b3293fdb463fee59434529014f85e3263b995c28" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.15", + "toml_edit 0.22.16", ] [[package]] @@ -3343,15 +3343,15 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.22.15" +version = "0.22.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d59a3a72298453f564e2b111fa896f8d07fabb36f51f06d7e875fc5e0b5a3ef1" +checksum = "278f3d518e152219c994ce877758516bca5e118eaed6996192a774fb9fbf0788" dependencies = [ "indexmap 2.2.6", "serde", "serde_spanned", "toml_datetime", - "winnow 0.6.13", + "winnow 0.6.15", ] [[package]] @@ -3379,7 +3379,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", ] [[package]] @@ -3589,7 +3589,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", "wasm-bindgen-shared", ] @@ -3623,7 +3623,7 @@ checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.70", + "syn 2.0.72", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -4069,9 +4069,9 @@ dependencies = [ [[package]] name = "winnow" -version = "0.6.13" +version = "0.6.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59b5e5f6c299a3c7890b876a2a587f3115162487e704907d9b6cd29473052ba1" +checksum = "557404e450152cd6795bb558bca69e43c585055f4606e3bcae5894fc6dac9ba0" dependencies = [ "memchr", ] diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 284bb5c..2b95cc4 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -62,7 +62,8 @@ "active": true, "dialog": true, "endpoints": [ - "https://github.com/PeterBlenessy/stoqster/releases/latest/download/latest.json" + "https://github.com/PeterBlenessy/stoqster/releases/latest/download/latest.json", + "https://github.com/PeterBlenessy/stoqster-releases/releases/latest/download/latest.json" ], "pubkey":"dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDVGMkIxRjY0MzI2RjJGQ0QKUldUTkwyOHlaQjhyWDdxMTYvYlh5TnV2L3ZvMEdpSGpLTVUxYTRwKzBic3IvQ1o3MzZOMkZiUCsK", "windows": { diff --git a/src/components/ComponentFundHoldings.vue b/src/components/ComponentFundHoldings.vue index 121867b..e429200 100644 --- a/src/components/ComponentFundHoldings.vue +++ b/src/components/ComponentFundHoldings.vue @@ -100,20 +100,24 @@ export default { height: calc(50vh) .q-table__top, + .q-table__middle, .q-table__bottom, + thead tr:first-child th + /* bg color is important for th; just specify one */ + background-color: #f8f8f8 thead tr th position: sticky top: 0 z-index: 1 text-transform: uppercase - background-color: #ffffff -.q-table--dark - .q-table__top, - .q-table__bottom, - thead tr:first-child th - /* bg color is important for th; just specify one */ - background-color: #1d1d1d + &.q-table--dark + .q-table__top, + .q-table__middle, + .q-table__bottom, + thead tr:first-child th + /* bg color is important for th; just specify one */ + background-color: #2e2e2e diff --git a/src/components/ComponentFunds.vue b/src/components/ComponentFunds.vue index 134503b..e055afb 100644 --- a/src/components/ComponentFunds.vue +++ b/src/components/ComponentFunds.vue @@ -311,20 +311,24 @@ export default { height: calc(100vh - 100px) .q-table__top, + .q-table__middle, .q-table__bottom, + thead tr:first-child th + /* bg color is important for th; just specify one */ + background-color: #ffffff thead tr th top: 0 position: sticky z-index: 2 - background-color: #ffffff text-transform: uppercase -.q-table--dark - .q-table__top, - .q-table__bottom, - thead tr:first-child th - /* bg color is important for th; just specify one */ - background-color: #1d1d1d + &.q-table--dark + .q-table__top, + .q-table__middle, + .q-table__bottom, + thead tr:first-child th + /* bg color is important for th; just specify one */ + background-color: #1d1d1d \ No newline at end of file diff --git a/src/components/ComponentIbindex.vue b/src/components/ComponentIbindex.vue index a6956c7..99430f6 100644 --- a/src/components/ComponentIbindex.vue +++ b/src/components/ComponentIbindex.vue @@ -257,19 +257,21 @@ export default { .q-table__top, .q-table__bottom, + thead tr:first-child th + /* bg color is important for th; just specify one */ + background-color: #ffffff thead tr th top: 0 position: sticky z-index: 2 - background-color: #ffffff text-transform: uppercase -.q-table--dark - .q-table__top, - .q-table__bottom, - thead tr:first-child th - /* bg color is important for th; just specify one */ - background-color: #1d1d1d + &.q-table--dark + .q-table__top, + .q-table__bottom, + thead tr:first-child th + /* bg color is important for th; just specify one */ + background-color: #1d1d1d \ No newline at end of file