8000 Improve Portfolio section (Avalonia) by SuperJMN · Pull Request #447 · block-core/angor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve Portfolio section (Avalonia) #447

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

Merged
merged 7 commits into from
Jun 27, 2025

Conversation

SuperJMN
Copy link
Contributor
@SuperJMN SuperJMN commented Jun 27, 2025

image

image

SuperJMN added 7 commits June 26, 2025 16:03
- Introduced new fields: `FundedProjects`, `TotalInvested`, `ProjectsInRecovery`, and `RecoveredToPenalty` in `IPortfolioSectionViewModel` and implemented them in `PortfolioSectionViewModel` and `PortfolioSectionViewModelDesign`.
- Added new SVG assets (`btc.svg` and `recovery.svg`) for visual elements in the portfolio view.
- Enhanced `PortfolioSectionView.axaml` to include investment summary cards and recovery details with updated bindings and icons.
- Updated design-time data to reflect new investment and recovery metrics for improved development UX.
- Created a new `Badge` control with `Color` property and default styling in `Badge.axaml` and `Badge.axaml.cs`.
- Added `Badge.axaml` to the application styles in `App.axaml`.
- Updated `Light.axaml` to remove unused namespaces.
- Added `Invested` field to `IPortfolioProject` and `PortfolioProject` for tracking invested amount.
- Enhanced `PortfolioProjectView` with structured investment and recovery sections using `CardGrid` and `HeaderedContainer`.
- Replaced old inline styles with theme-based styles for better consistency and maintainability.
- Updated `PortfolioProjectDesign` with default test data for `Target`, `Raised`, `InRecovery`, and `Invested` fields.
- Modified `CardGrid` control to support themed item containers.
…lated references

- Adjusted `PortfolioProjectView.axaml` to use `OfferAcceptedView` for improved context clarity.
- Changed design width of `PortfolioProjectView` from 900 to 600 for better alignment with UI requirements.
- Simplified card structure by removing redundant `Target`, `Raised`, and `Founder Status` sections in investment details.
- Updated investment status badge to display "Pending" with an orange color for accurate representation.
…logic and improve UI responsiveness

- Transitioned from `IsInvestmentCompleted` boolean to `InvestmentStatus` enum in related models, view models, and data transfer objects for more granular investment tracking.
- Updated all relevant bindings and UI components to reflect the new `InvestmentStatus`, including investment status badge and related behaviors.
- Introduced a new control, `MinMaxUniformGrid`, for dynamic column sizing in grids, integrated it into `CardGrid` for better layout adaptability.
- Renamed and revamped `NotCompletedProjectView` to `OfferAcceptedView` to align with the updated investment flow.
- Adjusted package dependencies with minor version updates for `Zafiro.Avalonia` and `Zafiro.Avalonia.Dialogs`.
- Improved error messaging in `SensitiveWalletDataProvider` for clearer feedback during decryption failures.
…mpty state in FounderSectionView

- Added default values for MinWidth, MinHeight, MaxWidth, and MaxHeight in Light theme for non-Desktop platforms.
- Changed `RequestedThemeVariant` in `App.axaml` from "Dark" to "Default" to follow system theme preference.
- Enhanced `FounderSectionView` with empty state messaging for projects list when no items are available.
- Commented out unused SlimWizardControl style in Light theme for cleanup.
- Changed `RequestedThemeVariant` in `App.axaml` from "Default" to "Dark".
- Updated `Badge` control styles to use more refined colors (`DarkOrange`, `Goldenrod`, `LimeGreen`) for better visual distinction of investment statuses.
- Improved `Badge` template structure for enhanced layering and styling flexibility.
- Cleaned up redundant spacing and unused properties in theme resources.
@@ -12,7 +13,7 @@ public class InvestedProjectDto
public Amount Raised { get; set; }
public string Description { get; set; }
public Amount InRecovery { get; set; }
public bool IsInvesmentCompleted { get; set; }
public InvestmentStatus InvestmentStatus { get; set; }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need the Founder status in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know if it's relevant for the investor. Shall we remove it from the invested projects?

@DavidGershony DavidGershony self-requested a review June 27, 2025 11:19
@DavidGershony DavidGershony merged commit 678d7b1 into block-core:main Jun 27, 2025
3 checks passed
@SuperJMN SuperJMN deleted the improve-portfolio branch June 27, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0