Skip to content

fix: resolve file encryption issues and add note ID to status bar#3

Merged
typelets merged 3 commits intomainfrom
fix/encryption-user-id-debug
Sep 6, 2025
Merged

fix: resolve file encryption issues and add note ID to status bar#3
typelets merged 3 commits intomainfrom
fix/encryption-user-id-debug

Conversation

@typelets
Copy link
Copy Markdown
Owner

@typelets typelets commented Sep 6, 2025

Fix: File encryption issues and add note ID to status bar

Summary

This PR resolves critical file attachment encryption/decryption issues and adds note ID
display to the editor status bar for better debugging and reference.

Issues Fixed

  • File downloads showing as encrypted/corrupt - Fixed user ID propagation from
    MainLayout to Editor component
  • "String contains an invalid character" errors - Fixed file encryption/decryption
    with proper base64 handling
  • "Too many function arguments" errors on large file uploads - Fixed large file
    upload chunking to prevent function argument limits
  • File size limit calculation errors - Improved error handling and logging

New Features

  • Note ID in status bar - Added note ID display in editor status bar next to zoom
    controls for easy reference

Technical Changes

File Encryption Fixes

  • Fixed user ID propagation by adding userId prop to editorProps in
    MainLayout.tsx
  • Corrected file encryption/decryption flow in fileService.ts:
    • Proper base64 encoding/decoding sequence
    • Fixed double base64 encoding issue
    • Chunked large file processing to prevent function argument limits

Status Bar Enhancement

  • Added optional noteId prop to StatusBar component
  • Displays full note ID with consistent styling
  • Added tooltip for better UX

  - Fix user ID propagation from MainLayout to Editor component
  - Fix file encryption/decryption with proper base64 handling
  - Fix large file upload chunking to prevent function argument limits
  - Add note ID display in editor status bar
@typelets typelets self-assigned this Sep 6, 2025
@typelets typelets merged commit 5643f60 into main Sep 6, 2025
3 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 6, 2025

🎉 This PR is included in version 1.10.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants