Browse Source

Merge branch 'main' into pr/8312

pull/8312/head
Thomas Kaul 1 month ago
parent
commit
456e1d146f
  1. 6
      CHANGELOG.md
  2. 16
      apps/api/src/app/account-balance/account-balance.service.ts
  3. 4
      apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html
  4. 2
      apps/client/src/app/pages/portfolio/activities/activities-page.html
  5. 2
      apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts
  6. 27
      apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.html
  7. 4
      package-lock.json
  8. 2
      package.json

6
CHANGELOG.md

@ -5,10 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format 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). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased ## 3.93.0 - 2026-10-25
### Changed ### Changed
- Moved the support for filtering by activity type on the activities page from experimental to general availability
- Moved the allocation in the accounts tab of the holding detail dialog from experimental to general availability
- Moved the quantity in the accounts tab of the holding detail dialog from experimental to general availability
- Improved the style of the menu button in the asset profile details dialog of the admin control panel - Improved the style of the menu button in the asset profile details dialog of the admin control panel
- Improved the style of the menu button in the user detail dialog of the admin control panel - Improved the style of the menu button in the user detail dialog of the admin control panel
- Improved the consistency of the import of activities with _Ghostfolio AI_ (experimental) - Improved the consistency of the import of activities with _Ghostfolio AI_ (experimental)
@ -16,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed a race condition in the creation of an account balance
- Fixed the handling of an output of the model which does not agree with the schema in the import of activities with _Ghostfolio AI_ (experimental) - Fixed the handling of an output of the model which does not agree with the schema in the import of activities with _Ghostfolio AI_ (experimental)
## 3.92.0 - 2026-10-24 ## 3.92.0 - 2026-10-24

16
apps/api/src/app/account-balance/account-balance.service.ts

@ -51,17 +51,13 @@ export class AccountBalanceService {
}: CreateAccountBalanceDto & { }: CreateAccountBalanceDto & {
userId: string; userId: string;
}): Promise<AccountBalance> { }): Promise<AccountBalance> {
const dateOfBalance = resetHours(parseISO(date));
const accountBalance = await this.prismaService.accountBalance.upsert({ const accountBalance = await this.prismaService.accountBalance.upsert({
create: { create: {
account: { accountId,
connect: { userId,
id_userId: { date: dateOfBalance,
userId,
id: accountId
}
}
},
date: resetHours(parseISO(date)),
value: balance value: balance
}, },
update: { update: {
@ -71,7 +67,7 @@ export class AccountBalanceService {
accountId_userId_date: { accountId_userId_date: {
accountId, accountId,
userId, userId,
date: resetHours(parseISO(date)) date: dateOfBalance
} }
} }
}); });

4
apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.html

@ -413,10 +413,10 @@
[hasPermissionToOpenDetails]="false" [hasPermissionToOpenDetails]="false"
[locale]="user?.settings?.locale" [locale]="user?.settings?.locale"
[showActivitiesCount]="false" [showActivitiesCount]="false"
[showAllocationInPercentage]="user?.settings?.isExperimentalFeatures" [showAllocationInPercentage]="true"
[showBalance]="false" [showBalance]="false"
[showFooter]="false" [showFooter]="false"
[showQuantity]="user?.settings?.isExperimentalFeatures" [showQuantity]="true"
[showValue]="false" [showValue]="false"
[showValueInBaseCurrency]="false" [showValueInBaseCurrency]="false"
/> />

2
apps/client/src/app/pages/portfolio/activities/activities-page.html

@ -11,7 +11,7 @@
[hasPermissionToCreateActivity]="hasPermissionToCreateActivity" [hasPermissionToCreateActivity]="hasPermissionToCreateActivity"
[hasPermissionToDeleteActivity]="hasPermissionToDeleteActivity" [hasPermissionToDeleteActivity]="hasPermissionToDeleteActivity"
[hasPermissionToExportActivities]="!hasImpersonationId" [hasPermissionToExportActivities]="!hasImpersonationId"
[hasPermissionToFilterByType]="user?.settings?.isExperimentalFeatures" [hasPermissionToFilterByType]="true"
[hasPermissionToImportActivities]="hasPermissionToImportActivities" [hasPermissionToImportActivities]="hasPermissionToImportActivities"
[hasPermissionToUpdateActivity]="hasPermissionToUpdateActivity" [hasPermissionToUpdateActivity]="hasPermissionToUpdateActivity"
[locale]="user?.settings?.locale" [locale]="user?.settings?.locale"

2
apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts

@ -26,6 +26,7 @@ import {
FileFormat, FileFormat,
GfFileDropAreaComponent GfFileDropAreaComponent
} from '@ghostfolio/ui/file-drop-area'; } from '@ghostfolio/ui/file-drop-area';
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator';
import { DataService } from '@ghostfolio/ui/services'; import { DataService } from '@ghostfolio/ui/services';
import { import {
@ -90,6 +91,7 @@ import {
GfDialogFooterComponent, GfDialogFooterComponent,
GfDialogHeaderComponent, GfDialogHeaderComponent,
GfFileDropAreaComponent, GfFileDropAreaComponent,
GfPremiumIndicatorComponent,
IonIcon, IonIcon,
MatButtonModule, MatButtonModule,
MatCheckboxModule, MatCheckboxModule,

27
apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.html

@ -82,25 +82,32 @@
(fileSelected)="onFileSelected({ stepper, file: $event })" (fileSelected)="onFileSelected({ stepper, file: $event })"
/> />
@if ( @if (
data.deviceType !== 'mobile' && hasPermissionToEnableGhostfolioAi data.deviceType !== 'mobile' &&
(hasPermissionToEnableGhostfolioAi ||
(data.user?.subscription?.type === 'Basic' &&
data.user?.settings?.isExperimentalFeatures))
) { ) {
<div class="align-items-center d-flex mt-4"> <div class="align-items-center d-flex mt-4">
<mat-checkbox <mat-checkbox
color="primary" color="primary"
[checked]="isGhostfolioAiEnabled" [checked]="isGhostfolioAiEnabled"
[disabled]="isLoading" [disabled]="isLoading || !hasPermissionToEnableGhostfolioAi"
(change)="onGhostfolioAiChange($event)" (change)="onGhostfolioAiChange($event)"
> >
<ng-container i18n>AI-assisted import</ng-container> <ng-container i18n>AI-assisted import</ng-container>
</mat-checkbox> </mat-checkbox>
<span @if (data.user?.subscription?.type === 'Basic') {
class="align-items-center d-flex ms-1" <gf-premium-indicator class="ms-1" [enableLink]="false" />
matTooltipPosition="above" } @else {
[class.text-body-secondary]="isLoading" <span
[matTooltip]="ghostfolioAiTooltip" class="align-items-center d-flex ms-1"
> matTooltipPosition="above"
<ion-icon name="information-circle-outline" /> [class.text-body-secondary]="isLoading"
</span> [matTooltip]="ghostfolioAiTooltip"
>
<ion-icon name="information-circle-outline" />
</span>
}
</div> </div>
} }
</div> </div>

4
package-lock.json

@ -1,12 +1,12 @@
{ {
"name": "ghostfolio", "name": "ghostfolio",
"version": "3.92.0", "version": "3.93.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ghostfolio", "name": "ghostfolio",
"version": "3.92.0", "version": "3.93.0",
"hasInstallScript": true, "hasInstallScript": true,
"license": "AGPL-3.0", "license": "AGPL-3.0",
"dependencies": { "dependencies": {

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "ghostfolio", "name": "ghostfolio",
"version": "3.92.0", "version": "3.93.0",
"homepage": "https://ghostfol.io", "homepage": "https://ghostfol.io",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"repository": "https://github.com/ghostfolio/ghostfolio", "repository": "https://github.com/ghostfolio/ghostfolio",

Loading…
Cancel
Save