Skip to content
This repository was archived by the owner on Feb 27, 2026. It is now read-only.

v3.0.0-beta.10#101

Merged
danielalves96 merged 5 commits into
mainfrom
next
Jun 23, 2025
Merged

v3.0.0-beta.10#101
danielalves96 merged 5 commits into
mainfrom
next

Conversation

@danielalves96
Copy link
Copy Markdown
Contributor

@danielalves96 danielalves96 commented Jun 23, 2025

1. Translation Management Documentation

  • New file: apps/docs/content/docs/3.0-beta/translation-management.mdx
    • Adds comprehensive documentation for Palmr’s new translation management system, including usage instructions, workflows, command examples, best practices, and troubleshooting.
  • Modified file: apps/docs/content/docs/3.0-beta/meta.json
    • Adds the new "translation-management" documentation page to the beta documentation summary.

2. Database Schema (Prisma)

  • Modified file: apps/server/prisma/schema.prisma
    • In the ReverseShare table:
      • Adds two new fields: nameFieldRequired and emailFieldRequired of enum type FieldRequirement (HIDDEN, OPTIONAL, REQUIRED).
    • Creates the new enum FieldRequirement.
    • These changes allow configuring the visibility/requirement of the "Name" and "Email" fields for uploads via Reverse Share.

3. File Download Improvements

  • Modified file: apps/server/src/modules/filesystem/controller.ts
    • Implements support for partial downloads via HTTP Range, allowing for resumable downloads and downloading only parts of large files.
    • Improves handling of large files and sets proper HTTP responses for downloads.

4. Reverse Share: Routes and Logic

  • Modified files:
    • apps/server/src/modules/reverse-share/controller.ts
      • Adds a new endpoint to copy files from a Reverse Share to the authenticated user’s personal files.
    • apps/server/src/modules/reverse-share/dto.ts
      • Updates DTOs to include name/email field requirement settings.
    • apps/server/src/modules/reverse-share/routes.ts
      • New POST route /reverse-shares/files/:fileId/copy to copy Reverse Share files to user files.
      • Expands validation schemas to reflect new fields.
    • apps/server/src/modules/reverse-share/service.ts
      • Implements the business logic for copying Reverse Share files to the user, including permission checks, size limits, and storage quota checks.
      • Updates response serialization methods to include new fields.

5. Internationalization (i18n)

  • Adds translations for new features:
    • UI texts and labels related to the required/visibility status of name and email fields.
    • New UI messages for multi-file ZIP download, feedback for file copy-to-"My Files", improved accessibility, and status updates.
    • Improved translations for bulk actions, error/success messages for download/copy operations, and field options in forms.

Summary of Key Features and Improvements

  • New translation management system: Scripts for syncing, auto-translating, checking, and reporting on language files, with full documentation.
  • Customizable Reverse Share fields: It’s now possible to configure whether the uploader’s name and email fields are hidden, optional, or required.
  • Copy files from Reverse Share to personal files: Users can copy files received via Reverse Shares directly into their own files, respecting limits and permissions.
  • Large file download improvements: Support for resumable (partial) downloads, more robust large file handling.
  • Expanded i18n: New and improved translations for Arabic and German, covering new features and UI actions.

🔗 See all files and details on the PR:
https://github.com/kyantech/Palmr/pull/101/files

If you need details for any specific file or change, just let me know!

…iles

- Added a new endpoint to copy files from reverse shares to a user's personal files, ensuring only the creator can perform this action.
- Implemented error handling for various scenarios, including file not found, unauthorized access, and storage limitations.
- Updated the UI to include a "Copy to my files" action, enhancing user experience and accessibility.
- Localized new messages for success and error states in both English and Portuguese.
- Refactored related components to support the new copy functionality, ensuring a seamless integration into the existing workflow.
- Eliminated the UploadFileModal from the SharesModals component to streamline the modal management.
- Adjusted the component structure to enhance clarity and maintainability.
…n support

- Added a new translation management system to automate synchronization, validation, and translation of internationalization files.
- Introduced scripts for running translation operations, including checking status, synchronizing keys, and auto-translating strings.
- Updated package.json with new translation-related commands for easier access.
- Enhanced localization files across multiple languages with new keys and improved translations.
- Integrated download functionality for share files in the UI, allowing users to download multiple files seamlessly.
- Refactored components to support new download features and improved user experience.
- Introduced new field requirements for name and email in the ReverseShare model, allowing for configurations of "HIDDEN", "OPTIONAL", or "REQUIRED".
- Updated the Create and Update schemas to include these new fields, ensuring proper validation and handling in the UI.
- Enhanced the file upload section to conditionally require name and email based on the new settings, improving user experience.
- Localized new messages for field requirements across multiple languages, ensuring consistent user feedback.
- Added a script to clean up translation files, addressing issues with multiple prefixes in translation keys.
@danielalves96 danielalves96 merged commit 719b7f0 into main Jun 23, 2025
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