Skip to content
This repository was archived by the owner on Sep 21, 2025. It is now read-only.

Comments

feat: export data#80

Merged
hjbugajski merged 3 commits intomainfrom
feat/export
Jun 8, 2025
Merged

feat: export data#80
hjbugajski merged 3 commits intomainfrom
feat/export

Conversation

@hjbugajski
Copy link
Owner

No description provided.

@hjbugajski hjbugajski requested a review from Copilot June 8, 2025 14:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Implements a new bulk export feature for user data and updates versioning, dependencies, and CI settings.

  • Adds a bulkExport callable in FirebaseFunctionsService and integrates it into the account settings UI with loading states and notifications.
  • Provides a helper to download the exported JSON and displays alerts during the process.
  • Bumps app version to 3.1.0, updates dependencies and pnpm workspace settings, and removes explicit pnpm version pins from GitHub workflows.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/app/shared/services/firebase-functions/firebase-functions.service.ts Add _bulkExport callable and bulkExport method
src/app/settings/account/account.component.ts Introduce bulkExport method, loading flag, and download helper
src/app/settings/account/account.component.html Add “Export data” UI section with button and alert
src/app/settings/about/about.component.html Update displayed app version to 3.1.0
pnpm-workspace.yaml Define onlyBuiltDependencies to optimize builds
package.json Bump version to 3.1.0, update packageManager and dependencies
CHANGELOG.md Add 3.1.0 release entry for export data feature
.github/workflows/pull_request.yml Remove explicit pnpm version pin
.github/workflows/deploy.yml Remove explicit pnpm version pin
Comments suppressed due to low confidence (3)

src/app/settings/account/account.component.ts:92

  • Add unit tests for this bulkExport method to cover loading states, successful downloads, and error handling flows.
public async bulkExport(): Promise<void> {

.github/workflows/pull_request.yml:21

  • [nitpick] Pin the pnpm version explicitly (e.g., with: version: 10.11.0) to ensure consistent CI installs and avoid surprises when defaults change.
uses: pnpm/action-setup@v4

.github/workflows/deploy.yml:19

  • [nitpick] Similarly, consider specifying a pnpm version in this workflow so builds remain reproducible.
uses: pnpm/action-setup@v4

}

public async bulkExport(): Promise<any> {
return await this._bulkExport().catch((error) => {
Copy link

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

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

[nitpick] The await on the return is redundant; you can simplify to return this._bulkExport().catch(...) to avoid an extra microtask.

Suggested change
return await this._bulkExport().catch((error) => {
return this._bulkExport().catch((error) => {

Copilot uses AI. Check for mistakes.
);
}

public async bulkExport(): Promise<any> {
Copy link

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

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

Consider replacing the Promise<any> return type with a more specific interface for the exported data to improve type safety.

Copilot uses AI. Check for mistakes.
@hjbugajski hjbugajski merged commit 54207d1 into main Jun 8, 2025
3 checks passed
@hjbugajski hjbugajski deleted the feat/export branch June 8, 2025 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant