From bc414096e32da9a983448df08ef9316344e41014 Mon Sep 17 00:00:00 2001 From: div-seungha Date: Wed, 18 Dec 2024 12:44:33 +0900 Subject: [PATCH] Add `theme` field in `Account` to represent user's screen color theme --- CHANGELOG.md | 22 ++- Cargo.toml | 2 +- src/account.rs | 7 +- src/migration.rs | 294 ++++++++++++++++++++++++++++++++++++++--- src/tables/accounts.rs | 11 ++ 5 files changed, 307 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bd1c682..2617637e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Added + +- Added `Account::theme` field to represent user's selected screen color theme + on the user interface. + ## [0.33.1] - 2024-12-20 ### Fixed @@ -339,7 +346,7 @@ Versioning](https://semver.org/spec/v2.0.0.html). - Changed the return type of `Store::network_map` to `IndexedTable` to enhance security by preventing direct exposure of internal structure. - Replaced `IndexedMap::get_by_id` function with `Indexed::get_by_id`, providing - a more structured and type-safe result. + a more structured and type-safe result. - Previously, the function returned a binary representation of the key-value pair: `Result<(Option>, Option>)>`. - Now, it returns `Result>`, where T is the entry type. @@ -355,8 +362,8 @@ Versioning](https://semver.org/spec/v2.0.0.html). more straightforward and human-readable format compared to the raw binary format exposed by `IndexSet`. - Replaced the `IndexedTable::get`, `IndexedTable::get` and - `IndexedTable::get` method with the more general function - `IndexedTable::get_by_id`. This change enhances flexibility by allowing + `IndexedTable::get` method with the more general function + `IndexedTable::get_by_id`. This change enhances flexibility by allowing retrieval based on any type R rather than being limited to a specific category. Existing code using get for categories should be updated to use get_by_id with the appropriate type. @@ -398,7 +405,7 @@ Versioning](https://semver.org/spec/v2.0.0.html). - Added new functions to facilitate insert, remove, and update operations, ensuring a more controlled and secure template management. - Introduced `Structured`, `Unstructured`, `StructuredClusteringAlgorithm` and - `UnstructuredClusteringAlgorithm` to describe data stored in `Table