-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(storage optimization): Removed and replaced used of PStore with G… #1730
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sienna-sterling Hello! This looks good. A few things:
- When we make changes to FluffyChat file (any file that's not under the /pangea folder) we wrap those changes in comments ("// #Pangea" and "// Pangea#") to indicate that it's our code and not FluffyChat's. Can you do this for the changes in chat_list.dart? Don't worry about changes that are already inside one of these blocks.
- All instances of GetStorage should be static
…_login is the only one unfixed, I ran into additional errors I did not have time to fix today
…hing should be static now.
@sienna-sterling Hello! Can you also remove the changes related to link color? If you want to keep working on those, you can open a separate PR |
@sienna-sterling Each PLocalKey should correspond to one GetStorageBox. For instance, PLocalKey.showedUpdateDialog is only ever used in the GetStorage box with the key "version_storage" (see app_version_util.dart). There's a few instance here where a give PLocalKey is being written to one box and read from another. These are:
These should all be one-to-one |
… same box it's read from. Removed link changes.
@sienna-sterling Looks good! Thank you. |
@sienna-sterling Hello! The definitions for GetStorage boxes that were defined before this PR, like lemma_storage, don't need to be moved. Sorry if that wasn't clear. |
@ggurdin How do I see which ones I have to put back? |
@sienna-sterling I think it's any of the GetStorage box names that exist in the current main branch. I would look at the file changes in gihub |
…files, moved modifed storages instances to respective controllers
@sienna-sterling Thank you! Looks just about ready. I resolved some merge conflicts with the main branch, so make sure to pull those locally. I think the only thing left is to go through the changes files in github and remove any added spaces (in files that don't contain any storage box references) / commented out imports |
…etStorage
Thank you so much for your contribution to FluffyChat ❤️❤️❤️
Please make sure that your Pull Request meet the following acceptance criteria:
dart format lib/ test/
anddart run import_sorter:main --no-comments
Pull Request has been tested on: