Skip to content
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

Rearchitecture of Dashboard features #131

Open
wants to merge 104 commits into
base: develop
Choose a base branch
from

Conversation

maznnwell
Copy link
Contributor

Summary of changes, manly found in the lib/rearchitecture folder:

  • created a new entry point of the app: main_dev.dart that skips the splash screen; to use this entry point, you can import the run configuration from run_configurations/dev.run.xml
  • implemented a feature based architecture, using Bloc as state management solution; all the new, or refactored code, will be found in the lib/rearchitecture folder; in a feature based architecture, we create a folder and add all related code to it inside that folder
  • refactored code and created features to be used in the "Dashboard" tab - with the exception of "Plasma" and "Latest Transactions" widgets that I considered to be part of another mother tab
  • used HydratedCubits, instead of the inhouse blocs; cubits are lightweight blocs that handle one single job; HydratedCubits cache their last state and restores it
  • I've added the https://pub.dev/packages/very_good_analysis package for linter rules; it's far more stricter than the previous solution; I haven't solved all the warnings and hints in the app, because that would make my PR too wide in terms of scope
  • I've created a new version of CardScaffold, one that does not listens to a stream anymore; this new widget also uses the new app themes that are more closer to the default Material Design used by Flutter, especially when it comes to the text styles: I preferred to used the original ones, instead of overwriting them
  • fixed the switch from the back of the new cards - when active, the thumb was disappearing
  • fixed the feature of hiding, unhiding the front widget of card (the password field was not being dismissed properly, and the switch was showing that the discreet mode was not active, but front widget was still hidden)
  • started using localized strings, so it will be easier to translate the app later
  • added unit tests for the cubits used

The high amount of changes in the folders outside lib/rearchitecture are due to running dart fix --apply, that fixed warnings from the new linter rules. One new rule that I wanted to use specifically, and that generated a lot of changes, is the one that requests strict types when declaring a local variable. I've added comments for this choice in the analysis_options.yaml file

maznnwell and others added 30 commits October 10, 2024 13:32
Copy link
Collaborator

@KingGorrin KingGorrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Icon has been reset to default flutter icon. See screenshot.
  • Header font size of new scaffold card is bigger causing a discrepancy between old and new cards. See screenshot.
  • The Pillar Rewards values in the vertical column do not fit. See screenshot.
  • Metadata information is not being build. See comments.
  • App Links support has been removed.

image

image

image


find_program(POWERSHELL_PATH NAMES powershell)
add_custom_target("git_metadata" ALL
COMMAND ${POWERSHELL_PATH} -ExecutionPolicy Bypass "${CMAKE_HOME_DIRECTORY}/CreateGitMetadata.ps1")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes from line 97 to 132 causes the build not to copy the necessary binaries library files and the metadata not to be populated with the git information.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just so you know, this happens on all three platforms. Changes are made to the CMakeLists.txt and project.pbxproj files. I'm not entirely convinced this is the recommended way of doing it.

@@ -89,11 +89,11 @@ BEGIN
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "network.zenon.syrius" "\0"
VALUE "FileDescription", "s y r i u s (" VERSION_AS_STRING ")" "\0"
VALUE "CompanyName", "com.example" "\0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the company name changed?

VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "syrius" "\0"
VALUE "LegalCopyright", "(C) 2024 Zenon Network" "\0"
VALUE "LegalCopyright", "Copyright (C) 2024 com.example. All rights reserved." "\0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the LegalCopyright statement changed?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This overwrites the new syrius icon with the default flutter icon.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this file has been manually changed to include support for App Links. The changes remove the App Links support.

@KingGorrin KingGorrin added the enhancement New feature or request label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants