This commit is contained in:
Mateusz Gruszczyński committed 2026-10-16 22:49:22 +02:00
1 parent 4da41a1404
commit 5cb6960b04
31 files changed
+1611 -2123

No files matched your search

+27 -8
View File
@@ -27,6 +27,11 @@
</div>
<div class="header-actions"><button id="copy-workspace-link" class="secondary-button">Copy link</button></div>
</header>
<section id="workspace-startup-error" class="workspace-startup-error" role="alert" hidden>
<p id="workspace-startup-message"></p>
<button id="workspace-startup-retry" class="secondary-button" type="button"
data-i18n="common.retry">Retry</button>
</section>
<main id="workspace-content" class="workspace-page" hidden>
<section class="workspace-top">
<div>
@@ -34,8 +39,10 @@
<p>Select a note or create a new one.</p>
</div>
<div class="workspace-top__actions">
<button id="archived-notes-button" class="secondary-button inline-button" type="button" data-i18n="workspace.archive.title" hidden>Archived notes</button>
<button id="workspace-settings-button" class="secondary-button inline-button" type="button" aria-expanded="false" data-i18n="workspace.settings.title" hidden>Workspace settings</button>
<button id="archived-notes-button" class="secondary-button inline-button" type="button"
data-i18n="workspace.archive.title" hidden>Archived notes</button>
<button id="workspace-settings-button" class="secondary-button inline-button" type="button"
aria-expanded="false" data-i18n="workspace.settings.title" hidden>Workspace settings</button>
<button id="new-note-button" class="primary-button inline-button" type="button">New note</button>
</div>
</section>
@@ -50,9 +57,12 @@
<form id="workspace-settings-form" class="workspace-settings-card" hidden>
<div class="workspace-settings-card__copy">
<strong data-i18n="workspace.settings.deletedNotes">Deleted notes</strong>
<small data-i18n="workspace.settings.copy">Workspace-wide setting. Archived notes disappear from the workspace but remain in the database with their history and files.</small>
<small data-i18n="workspace.settings.copy">Workspace-wide setting. Archived notes disappear from the
workspace but remain in the database with their history and files.</small>
</div>
<label class="workspace-archive-toggle"><input id="archive-deleted-notes" type="checkbox"> <span data-i18n="workspace.settings.archiveToggle">Archive deleted notes instead of permanently deleting them</span></label>
<label class="workspace-archive-toggle"><input id="archive-deleted-notes" type="checkbox"> <span
data-i18n="workspace.settings.archiveToggle">Archive deleted notes instead of permanently deleting
them</span></label>
<button class="secondary-button" type="submit">Save</button>
<small id="workspace-settings-status" class="form-message" role="status"></small>
</form>
@@ -78,7 +88,8 @@
<div class="archived-notes-panel__header">
<div>
<h2 data-i18n="workspace.archive.title">Archived notes</h2>
<p class="dialog-copy" data-i18n="workspace.archive.copy">Restore notes that were archived instead of permanently deleted.</p>
<p class="dialog-copy" data-i18n="workspace.archive.copy">Restore notes that were archived instead
of permanently deleted.</p>
</div>
<button id="close-archived-notes" class="icon-button" type="button" aria-label="Close dialog">×</button>
</div>
@@ -127,14 +138,22 @@
<dialog id="note-dialog">
<form id="note-form" class="dialog-panel">
<h2>New note</h2><input id="note-name" maxlength="80" required placeholder="Note name"><label
class="dialog-check"><input id="note-protect" type="checkbox"> Protect this note from
deletion</label>
class="dialog-check"><input id="note-protect" type="checkbox"
aria-describedby="note-protection-explanation note-archive-explanation"><span
data-i18n="workspace.noteProtect">Protect this note from deletion</span></label>
<div class="note-protection-help">
<p id="note-protection-explanation" data-i18n="workspace.noteProtection.explain">When enabled,
collaborators can edit but cannot delete or archive the note or remove its files. The note creator
or workspace owner can still do so. This does not require a password.</p>
<p id="note-archive-explanation" aria-live="polite"></p>
</div>
<p id="note-error" class="form-message error"></p>
<div class="dialog-actions"><button type="button" id="cancel-note"
class="secondary-button">Cancel</button><button class="primary-button">Create</button></div>
</form>
</dialog>
<div id="toast" class="toast-region" aria-live="polite" aria-label="Notifications" aria-relevant="additions removals"></div>
<div id="toast" class="toast-region" aria-live="polite" aria-label="Notifications"
aria-relevant="additions removals"></div>
</body>
</html>