Sync snapshot (2026-08-10) (#80)

- Improve DOCX rendering fidelity, pagination, image handling, and Markdown paste
- Expand PDF text editing with paragraph reflow, style preservation, and more reliable text matching
- Harden XLSX sheet deletion, localized date formats, multi-row autofit, charts, and system font support
- Add inline AI turn rollback and sent-attachment visibility across editors
- Add Office-style ScreenTips and refine ribbons, dialogs, menus, and themes
- Improve Slides cropping, rotate and flip tools, printing, animations, and editing workflows
- Add shell settings, configurable save locations, account credits, and update recovery guidance
- Add Intel macOS and RPM download support and refresh public documentation

Co-authored-by: GenOffice <merrick-2002@users.noreply.github.com>
This commit is contained in:
merrick-2002
2026-08-10 23:17:11 +08:00
committed by GitHub
co-authored by GenOffice
parent fd33934dab
commit 7023e635bd
168 changed files with 9855 additions and 2799 deletions
@@ -91,4 +91,27 @@ describe('showSaveDialogWithMemory', () => {
await showOpenDialogWithMemory(second, undefined, {})
expect(second.showOpenDialog).toHaveBeenCalledWith({})
})
it('anchors a bare file-name suggestion in the fallback dir when nothing is remembered', async () => {
const dialog = fakeDialog()
await showSaveDialogWithMemory(dialog, undefined, { defaultPath: 'deck.pptx' }, '/default/save')
expect(dialog.showSaveDialog).toHaveBeenCalledWith({
defaultPath: join('/default/save', 'deck.pptx'),
})
})
it('prefers the remembered directory over the fallback dir', async () => {
const dialog = fakeDialog({ showSaveDialog: pickedSave(join('/work', 'deck.pptx')) })
await showSaveDialogWithMemory(dialog, undefined, { defaultPath: 'deck.pptx' })
await showSaveDialogWithMemory(dialog, undefined, { defaultPath: 'b.pptx' }, '/default/save')
expect(dialog.showSaveDialog).toHaveBeenLastCalledWith({
defaultPath: join('/work', 'b.pptx'),
})
})
it('keeps an explicit absolute defaultPath untouched even with a fallback dir', async () => {
const dialog = fakeDialog()
await showSaveDialogWithMemory(dialog, undefined, { defaultPath: '/docs/tab.pdf' }, '/default')
expect(dialog.showSaveDialog).toHaveBeenCalledWith({ defaultPath: '/docs/tab.pdf' })
})
})