Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions FinTrack/Dtos/CategoryDtos/CategoryCreateDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace FinTrackForWindows.Dtos.CategoryDtos
{
public class CategoryCreateDto
{
public string Name { get; set; } = null!;
}
}
10 changes: 10 additions & 0 deletions FinTrack/Dtos/CategoryDtos/CategoryDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace FinTrackForWindows.Dtos.CategoryDtos
{
public class CategoryDto
{
public int Id { get; set; }
public string Name { get; set; } = null!;
public DateTime CreatedAtUtc { get; set; }
public DateTime? UpdatedAtUtc { get; set; }
}
}
7 changes: 7 additions & 0 deletions FinTrack/Dtos/CategoryDtos/CategoryUpdateDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace FinTrackForWindows.Dtos.CategoryDtos
{
public class CategoryUpdateDto
{
public string Name { get; set; } = null!;
}
}
17 changes: 17 additions & 0 deletions FinTrack/Dtos/DebtDtos/CreateDebtOfferRequestDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using FinTrackForWindows.Enums;

namespace FinTrackForWindows.Dtos.DebtDtos
{
public class CreateDebtOfferRequestDto
{
public string BorrowerEmail { get; set; } = null!;

public decimal Amount { get; set; }

public BaseCurrencyType CurrencyCode { get; set; }

public DateTime DueDateUtc { get; set; }

public string? Description { get; set; }
}
}
13 changes: 13 additions & 0 deletions FinTrack/Dtos/DebtDtos/DebtCreateDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using FinTrackForWindows.Enums;

namespace FinTrackForWindows.Dtos.DebtDtos
{
public class DebtCreateDto
{
public string BorrowerEmail { get; set; } = null!;
public decimal Amount { get; set; }
public BaseCurrencyType Currency { get; set; }
public DateTime DueDate { get; set; }
public string Description { get; set; } = string.Empty;
}
}
28 changes: 28 additions & 0 deletions FinTrack/Dtos/DebtDtos/DebtDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using FinTrackForWindows.Enums;

namespace FinTrackForWindows.Dtos.DebtDtos
{
public class DebtDto
{
public int Id { get; set; }
public int LenderId { get; set; }
public string LenderName { get; set; } = null!;
public string LenderEmail { get; set; } = null!;
public string? LenderProfilePicture { get; set; }
public int BorrowerId { get; set; }
public string BorrowerName { get; set; } = null!;
public string BorrowerEmail { get; set; } = null!;
public string? BorrowerProfilePicture { get; set; }
public decimal Amount { get; set; }
public BaseCurrencyType Currency { get; set; }
public DateTime DueDateUtc { get; set; }
public string Description { get; set; } = null!;
public DebtStatusType Status { get; set; }
public DateTime CreateAtUtc { get; set; }
public DateTime? UpdatedAtUtc { get; set; }
public DateTime? PaidAtUtc { get; set; }
public DateTime? OperatorApprovalAtUtc { get; set; }
public DateTime? BorrowerApprovalAtUtc { get; set; }
public DateTime? PaymentConfirmationAtUtc { get; set; }
}
}
9 changes: 9 additions & 0 deletions FinTrack/Dtos/DebtDtos/DebtUpdateDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using FinTrackForWindows.Enums;

namespace FinTrackForWindows.Dtos.DebtDtos
{
public class DebtUpdateDto
{
public DebtStatusType Status { get; set; }
}
}
12 changes: 12 additions & 0 deletions FinTrack/Dtos/FeedbackDtos/FeedbackCreateDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using FinTrackForWindows.Enums;

namespace FinTrackForWindows.Dtos.FeedbackDtos
{
public class FeedbackCreateDto
{
public string Subject { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public FeedbackType? Type { get; set; }
public string? SavedFilePath { get; set; }
}
}
15 changes: 15 additions & 0 deletions FinTrack/Dtos/FeedbackDtos/FeedbackDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using FinTrackForWindows.Enums;

namespace FinTrackForWindows.Dtos.FeedbackDtos
{
public class FeedbackDto
{
public int Id { get; set; }
public string Subject { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public FeedbackType? Type { get; set; }
public string? SavedFilePath { get; set; }
public DateTime CreatedAtUtc { get; set; }
public DateTime? UpdatedAtUtc { get; set; }
}
}
16 changes: 16 additions & 0 deletions FinTrack/Dtos/NotificationDtos/NotificationDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using FinTrackForWindows.Enums;

namespace FinTrackForWindows.Dtos.NotificationDtos
{
public class NotificationDto
{
public int Id { get; set; }
public string MessageHead { get; set; } = null!;
public string MessageBody { get; set; } = null!;
public NotificationType NotificationType { get; set; }
public bool IsRead { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
public DateTime? ReadAt { get; set; }
}
}
30 changes: 30 additions & 0 deletions FinTrack/Dtos/ReportDtos/ReportRequestDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using FinTrackForWindows.Enums;


namespace FinTrackForWindows.Dtos.ReportDtos
{
public class ReportRequestDto
{
public ReportType ReportType { get; set; }
public DocumentFormat ExportFormat { get; set; }

// Genel Filtreler
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public List<int>? SelectedCategoryIds { get; set; }
public List<int>? SelectedAccountIds { get; set; }

// Bütçe Raporuna Özel
public List<int>? SelectedBudgetIds { get; set; }

// Hesap Raporuna Özel
public decimal? MinBalance { get; set; }
public decimal? MaxBalance { get; set; }

// İşlem Raporuna Özel
public DateTime? Date { get; set; }
public bool IsIncomeSelected { get; set; }
public bool IsExpenseSelected { get; set; }
public string? SelectedSortingCriterion { get; set; } // Örn: "Amount_Asc", "Date_Desc"
}
}
12 changes: 12 additions & 0 deletions FinTrack/Dtos/SettingsDtos/ProfileSettingsDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace FinTrackForWindows.Dtos.SettingsDtos
{
public class ProfileSettingsDto
{
public int Id { get; set; }
public string FullName { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string? ProfilePictureUrl { get; set; }
public DateTime CreatedAtUtc { get; set; }
public DateTime? UpdatedAtUtc { get; set; }
}
}
9 changes: 9 additions & 0 deletions FinTrack/Dtos/SettingsDtos/ProfileSettingsUpdateDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace FinTrackForWindows.Dtos.SettingsDtos
{
public class ProfileSettingsUpdateDto
{
public string? FullName { get; set; }
public string? Email { get; set; }
public string? ProfilePictureUrl { get; set; }
}
}
13 changes: 13 additions & 0 deletions FinTrack/Dtos/SettingsDtos/UserAppSettingsDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using FinTrackForWindows.Enums;

namespace FinTrackForWindows.Dtos.SettingsDtos
{
public class UserAppSettingsDto
{
public int Id { get; set; }
public AppearanceType Appearance { get; set; }
public BaseCurrencyType Currency { get; set; }
public DateTime CreatedAtUtc { get; set; }
public DateTime? UpdatedAtUtc { get; set; }
}
}
10 changes: 10 additions & 0 deletions FinTrack/Dtos/SettingsDtos/UserAppSettingsUpdateDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using FinTrackForWindows.Enums;

namespace FinTrackForWindows.Dtos.SettingsDtos
{
public class UserAppSettingsUpdateDto
{
public AppearanceType Appearance { get; set; }
public BaseCurrencyType Currency { get; set; }
}
}
14 changes: 14 additions & 0 deletions FinTrack/Dtos/SettingsDtos/UserNotificationSettingsDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace FinTrackForWindows.Dtos.SettingsDtos
{
public class UserNotificationSettingsDto
{
public int Id { get; set; }
public bool SpendingLimitWarning { get; set; }
public bool ExpectedBillReminder { get; set; }
public bool WeeklySpendingSummary { get; set; }
public bool NewFeaturesAndAnnouncements { get; set; }
public bool EnableDesktopNotifications { get; set; }
public DateTime CreatedAtUtc { get; set; }
public DateTime? UpdatedAtUtc { get; set; }
}
}
11 changes: 11 additions & 0 deletions FinTrack/Dtos/SettingsDtos/UserNotificationSettingsUpdateDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace FinTrackForWindows.Dtos.SettingsDtos
{
public class UserNotificationSettingsUpdateDto
{
public bool SpendingLimitWarning { get; set; }
public bool ExpectedBillReminder { get; set; }
public bool WeeklySpendingSummary { get; set; }
public bool NewFeaturesAndAnnouncements { get; set; }
public bool EnableDesktopNotifications { get; set; }
}
}
7 changes: 6 additions & 1 deletion FinTrack/Enums/CurrencyConversionType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
namespace FinTrackForWindows.Enums
{
public enum CurrencyConversionType { Increase, Decrease }
public enum CurrencyConversionType
{
Increase,
Decrease,
Neutral
}
}
19 changes: 10 additions & 9 deletions FinTrack/Enums/DebtStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
{
public enum DebtStatusType
{
PendingBorrowerAcceptance, // Borç Alan Onayı Bekliyor
PendingOperatorApproval, // Operatör Onayı Bekliyor (eğer varsa)
Active, // Aktif Borç
PaymentConfirmationPending, // Ödeme Onayı Bekliyor
Paid, // Ödendi
Defaulted, // Vadesi Geçmiş/Ödenmemiş
RejectedByBorrower, // Borç Alan Tarafından Reddedildi
RejectedByOperator, // Operatör Tarafından Reddedildi (eğer varsa)
CancelledByLender, // Borç Veren Tarafından İptal Edildi
PendingBorrowerAcceptance, // Borç Alan Onayı Bekliyor
AcceptedPendingVideoUpload, // Borçlu Kabul Etti, Video Yüklemesi Bekleniyor (YENİ)
PendingOperatorApproval, // Operatör Onayı Bekliyor
Active, // Aktif Borç
PaymentConfirmationPending, // Ödeme Onayı Bekliyor
Paid, // Ödendi
Defaulted, // Vadesi Geçmiş/Ödenmemiş
RejectedByBorrower, // Borç Alan Tarafından Reddedildi
RejectedByOperator, // Operatör Tarafından Reddedildi
CancelledByLender, // Borç Veren Tarafından İptal Edildi
}
}
2 changes: 1 addition & 1 deletion FinTrack/Enums/ExportFormat.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace FinTrackForWindows.Enums
{
public enum ExportFormat
public enum DocumentFormat
{
PDF,
Word,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace FinTrackForWindows.Enums
{
public enum FeedbackTypes
public enum FeedbackType
{
[Description("Bug Report")]
BugReport,
Expand Down
6 changes: 3 additions & 3 deletions FinTrack/Enums/NotificationType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{
public enum NotificationType
{
Suggestion,
GoalAchieved,
Info,
Warning,
General
Error,
Success,
}
}
1 change: 1 addition & 0 deletions FinTrack/FinTrackForWindows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.0-preview.6.25358.103" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.0-preview.6.25358.103" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.0-preview.6.25358.103" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Npgsql" Version="9.0.3" />
<PackageReference Include="Serilog.Extensions.Hosting" Version="9.0.1-dev-02307" />
Expand Down
62 changes: 62 additions & 0 deletions FinTrack/Helpers/BusyAdorner.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;

namespace FinTrackForWindows.Helpers
{
public class BusyAdorner : Adorner
{
private readonly StackPanel _child;

public BusyAdorner(UIElement adornedElement) : base(adornedElement)
{
var progressBar = new ProgressBar
{
IsIndeterminate = true,
Width = 100,
Height = 20
};

var textBlock = new TextBlock
{
Text = "Creating Report...",
Foreground = Brushes.White,
Margin = new Thickness(0, 15, 0, 0),
FontSize = 14,
HorizontalAlignment = HorizontalAlignment.Center
};

_child = new StackPanel
{
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center
};
_child.Children.Add(progressBar);
_child.Children.Add(textBlock);

AddVisualChild(_child);
}

protected override Size MeasureOverride(Size constraint)
{
AdornedElement.Measure(constraint);
return AdornedElement.DesiredSize;
}

protected override Size ArrangeOverride(Size finalSize)
{
_child.Arrange(new Rect(finalSize));
return finalSize;
}

protected override void OnRender(DrawingContext drawingContext)
{
drawingContext.DrawRectangle(new SolidColorBrush(Color.FromArgb(160, 0, 0, 0)), null, new Rect(RenderSize));
base.OnRender(drawingContext);
}

protected override int VisualChildrenCount => 1;
protected override Visual GetVisualChild(int index) => _child;
}
}
Loading
Loading