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

Store initial "automatic read-only" decision, so that actively edited Note doesn't transition to read-only#1918

Merged
eliandoran merged 4 commits intodevelopfrom
feat/note-edit-readonly-fix2
Jun 6, 2025
Merged

Store initial "automatic read-only" decision, so that actively edited Note doesn't transition to read-only#1918
eliandoran merged 4 commits intodevelopfrom
feat/note-edit-readonly-fix2

Conversation

@perfectra1n
Copy link
Copy Markdown
Member

@perfectra1n perfectra1n commented May 12, 2025

When a Note triggers "automatic read-only" threshold but is still being edited, trigger readOnlyTemporarilyDisabled event so that the user's edits still go through while they're still editing the Note.

Upon refreshing the Note frontend, it will appropriately go into read-only mode.

Closes TriliumNext/Trilium#5717

@perfectra1n perfectra1n requested a review from eliandoran May 12, 2025 19:10
@github-actions
Copy link
Copy Markdown

github-actions bot commented May 12, 2025

Folder/File Previous size New size Difference
/upload/TriliumNextNotes-Server-1918-merge-linux-x64.tar.xz 67.75MB +67.75MB (+100.00%)
TOTAL +67.75MB

…only threshold is triggered

feat(client): stop the cursor from going to the top of the note when note transitions to read-only but we're still editing

feat(client): stop the cursor from going to the top of the note when note transitions to read-only but we're still editing, take 2
@perfectra1n perfectra1n force-pushed the feat/note-edit-readonly-fix2 branch from 68ae7c9 to caccbf4 Compare May 13, 2025 22:03
@perfectra1n perfectra1n changed the title Trigger readOnlyTemporarilyDisabled when "automatic read-only" threshold is crossed for text Notes Store initial "automatic read-only" decision, so that actively edited Note doesn't transition to read-only May 13, 2025
@eliandoran eliandoran added this to the v0.95.0 milestone Jun 1, 2025
@eliandoran eliandoran modified the milestones: v0.94.1, v1.0.0, v0.95.0 Jun 4, 2025
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 6, 2025
@eliandoran eliandoran modified the milestones: v0.95.0, v0.94.1 Jun 6, 2025
@eliandoran eliandoran merged commit 4489f6c into develop Jun 6, 2025
11 checks passed
@eliandoran eliandoran deleted the feat/note-edit-readonly-fix2 branch June 6, 2025 16:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Data loss when Note triggers "automatic read-only" threshold

2 participants