Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
UX: compact Share panel; hints fold into tooltips
nyblnetfa2f1fa52c56
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.tsindex b84d71df..f6daaf05 100644--- a/slides/src/editor/editor.ts+++ b/slides/src/editor/editor.ts@@ -290,7 +290,7 @@ export class Editor {pmenu.appendChild(b)}pItem(ICONS.window, t('Present in this tab'), t('Fills this tab instead of going fullscreen — handy for testing or sharing a window'), () => this.present(false, false))- pItem(ICONS.presenter, t('Open speaker view'), t('Notes, controls and slide thumbnails in a separate window — drag it to a second screen'), () => this.openSpeakerView())+ pItem(ICONS.presenter, t('Open speaker view'), t('Notes, controls and slide thumbnails in a separate window — drag it to a second screen. On macOS, open it before going fullscreen.'), () => this.openSpeakerView())pill.append(showB, caret, pmenu)document.addEventListener('pointerdown', (ev) => {if (!pill.contains(ev.target as Node)) pill.classList.remove('open')@@ -821,22 +821,24 @@ export class Editor {: `● ${t('Connecting…')}`status.classList.toggle('ok', tr!.status === 'open')} else {- status.textContent = t('Not live yet — sharing a copy turns it on')+ status.textContent = `○ ${t('Not live — turns on when you share')}`}// SHARE ACTIONS — sharing IS files: each button saves a copy to send, and- // turns the live session on so whoever opens it lands in the room with you.+ // turns the live session on. Labels stay short; the tooltips explain.const canWrite = !!cme && cme.role !== 'reader'if (canWrite) {- action(ICONS.share, t('Invite to edit — save a copy to send…'), true, () => void this.inviteToEdit(),- t('Saves a copy that edits this deck live with you. You stay the owner and can remove them later from the People list.'))- action(ICONS.eye, t('Share view-only copy…'), false, () => void this.saveReaderCopy(),- t('A live viewer: it follows every edit as it happens but can never change the deck — the relay enforces it.'))- action(ICONS.slideshow, t('Export present-only file…'), false, () => void this.savePresentationPackage(),+ const label = div('ed-share-label')+ label.textContent = t('Share a copy')+ panel.appendChild(label)+ action(ICONS.share, t('Invite to edit…'), true, () => void this.inviteToEdit(),+ t('Saves a copy to send. Whoever opens it edits this deck live with you (end-to-end encrypted); you stay the owner and can remove them from the People list.'))+ action(ICONS.eye, t('View-only copy…'), false, () => void this.saveReaderCopy(),+ t('A live viewer: follows every edit as it happens but can never change the deck — the relay enforces it.'))+ action(ICONS.slideshow, t('Present-only file…'), false, () => void this.savePresentationPackage(),t('A sealed hand-out that opens straight into the show — no editor, no live connection.'))- action(ICONS.template, t('Share as template…'), false, () => void this.saveAsTemplate(),+ action(ICONS.template, t('Template…'), false, () => void this.saveAsTemplate(),t('A reusable starter: everyone who opens it gets their own fresh, independent deck.'))- note(t('Whoever opens your copy joins this deck live. Everything is end-to-end encrypted — the relay only ever sees ciphertext.'))} else {note(t('This is a view-only copy — it follows the live session but can’t change the deck.'))}@@ -852,10 +854,10 @@ export class Editor {this.renderSharePanel()}, t('Disconnect this deck from the live session. Copies keep their last state and can rejoin if you go live again.'))} else {- action(ICONS.live, t('Go live without sharing a copy'), false, () => void this.goLive().then(() => this.renderSharePanel()),- t('Connect to the live session now — copies you sent earlier will meet you there.'))+ action(ICONS.live, t('Go live'), false, () => void this.goLive().then(() => this.renderSharePanel()),+ t('Connect to the live session without saving a new copy — copies you sent earlier will meet you there.'))}- action(ICONS.key, t('Reset access — cut off every copy sent so far'), false, async () => {+ action(ICONS.key, t('Reset access…'), false, async () => {if (!this.session) returnif (!confirm(t('Reset access? Every copy you’ve sent stops syncing; only copies saved after this can join.'))) returnawait rotateKeys(this.session, this.store)diff --git a/slides/src/editor/panels.ts b/slides/src/editor/panels.tsindex 5ad643f5..9b805d1e 100644--- a/slides/src/editor/panels.ts+++ b/slides/src/editor/panels.ts@@ -195,12 +195,8 @@ export class PropsPanel {this.store.slide.stateOf = stateSel.value || undefinedthis.store.emit('slides')}, true))+ stateSel.title = t('A state is hidden from arrow-key flow — viewers reach it by clicking a linked element. Shared element ids morph between states.')this.row(t('State of'), stateSel)- const stateHint = document.createElement('p')- stateHint.className = 'ed-hint'- stateHint.innerHTML =- t('A <b>state</b> is hidden from arrow-key flow — viewers reach it by clicking a linked element. Shared element ids morph between states.')- this.host.appendChild(stateHint)if (slide.stateOf) {const sync = document.createElement('button')@@ -275,13 +271,9 @@ export class PropsPanel {notes.value = slide.notesnotes.addEventListener('input', () => this.edit(() => { this.store.slide.notes = notes.value }, false))notes.addEventListener('change', () => this.edit(() => { this.store.slide.notes = notes.value }, true))+ notes.title = t('Shown in the speaker view (Slideshow menu, or S while presenting).') ++ (isMacOS() ? ' ' + t('On macOS, open the speaker view before going fullscreen.') : '')this.host.appendChild(notes)- const notesHint = document.createElement('p')- notesHint.className = 'ed-hint'- notesHint.innerHTML =- t('Open the <b>speaker view</b> — in the Slideshow menu at the bottom right, or <b>S</b> while presenting — for a separate window with these notes, the current and next slide, a timer, a thumbnail rail to jump anywhere, and a black-screen key. Move it to a second screen and present as usual.') +- (isMacOS() ? ' ' + t('On macOS, open it BEFORE you go fullscreen — otherwise it lands on the slides’ screen.') : '')- this.host.appendChild(notesHint)}private buildMultiPanel(els: SlideElement[]) {diff --git a/slides/src/styles.css b/slides/src/styles.cssindex 6bfb0990..a637bef7 100644--- a/slides/src/styles.css+++ b/slides/src/styles.css@@ -1391,10 +1391,18 @@ body.ed-col-resizing { cursor: col-resize; user-select: none; }min-width: 250px;max-width: 290px;padding: 12px;- gap: 9px;+ gap: 7px;right: 0;left: auto;}+.ed-share-label {+ font-size: 10.5px;+ font-weight: 700;+ text-transform: uppercase;+ letter-spacing: 0.07em;+ color: var(--muted);+ margin-top: 3px;+}.ed-share-note {font-size: 12px;line-height: 1.45;