Skip to content

Feature/151 add offline sharing options#174

Merged
felix-schultz merged 7 commits intodevfrom
feature/151-add-offline-sharing-options
Aug 11, 2025
Merged

Feature/151 add offline sharing options#174
felix-schultz merged 7 commits intodevfrom
feature/151-add-offline-sharing-options

Conversation

@felix-schultz
Copy link
Copy Markdown
Member

This pull request introduces a new feature for exporting offline applications with optional password-based encryption, along with several code style improvements and minor UI enhancements. The export dialog allows users to choose between encrypted and unencrypted exports, provides password strength feedback, and validates password confirmation. Additionally, code formatting has been improved throughout the codebase for better readability.

New Feature: Export Offline Applications

  • Added an export dialog to the offline app sidebar, enabling users to export application data to a file. Users can choose to encrypt the export with a password, with password strength indication and confirmation validation. The export operation uses the new export_app_to_file backend method. [1] [2]

UI and UX Improvements

  • Integrated password visibility toggle, password strength meter, and error messaging for password validation in the export dialog.
  • Improved progress bar and related UI components for upload progress in the bits add page. [1] [2]

Code Style and Formatting

  • Reformatted and standardized import statements and callback definitions for better readability in multiple files. [1] [2] [3] [4] [5] [6]
  • Applied consistent formatting to function calls and conditional logic, especially in the bits upload and progress calculation logic. [1] [2] [3] [4] [5]

Dependency and Provider Management

  • Corrected import order for UpdateProvider in the desktop app layout file.
  • Added missing imports for new UI components used in the export dialog, such as Dialog, Switch, Input, and icons. [1] [2]

Sidebar Navigation Consistency

  • Updated sidebar navigation styling to consistently use muted colors for inactive items, improving visual clarity.

Let me know if you have any questions about the new export feature or the code style changes!

- Added `export_app_to_file` command to export an app to a file with optional encryption.
- Introduced `import_app_from_file` command to import an app from a file, handling both encrypted and unencrypted formats.
- Updated the app's manifest structure to separate priority and secondary files during export.
- Enhanced file association types in `tauri.conf.json` to reflect new file extensions.
- Refactored the `App` struct's export and import methods to support the new file structure and encryption.
- Improved error handling and logging during the export and import processes.
- Added UpdateProvider component to RootLayout for handling app updates.
- Improved layout structure and formatting in layout.tsx and library/config/layout.tsx.
- Enhanced import/export functionality with better state management and user feedback in library/page.tsx.
- Updated UpdateProvider logic to streamline update checks and user confirmations.
- Refactored API calls and error handling in download-manager and sharing modules.
- Cleaned up imports and improved code readability across various files.
@felix-schultz felix-schultz merged commit 3ceeb86 into dev Aug 11, 2025
2 of 4 checks passed
@felix-schultz felix-schultz deleted the feature/151-add-offline-sharing-options branch August 11, 2025 23:07
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.

1 participant