Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## Microsoft Office clipboard and Russian editor menus — 2026-11-09

- Add Copy for Microsoft Office for selected note fragments: semantic HTML and
plain text, table TSV and embedded raster images.
- Convert supported Word HTML and Excel HTML/TSV into editable Markdown, using
existing attachment rules, one-step undo and guards against stale insertions.
- Normalize actual CodeMirror reading DOM before export, remove widget-buffer
images and preserve enclosing selection formatting and plain-text block breaks.
- Translate editor context-menu groups and numbered headings; provide a
[Russian usage guide](docs/OFFICE_CLIPBOARD.md) with HTTPS requirements and
the remaining desktop Word/Excel interoperability limits.

## Native embed compatibility and public readers — 2026-11-01

- Match explorer filtering, filename titles, ordered tasks and native checkbox/strikethrough behavior.
Expand Down
26 changes: 26 additions & 0 deletions IMPLEMENTATION_PLAN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# IMPLEMENTATION PLAN — WebObsidian

## Microsoft Office clipboard — 2026-11-09

- [x] Implement Office export, HTML/TSV import, attachment integration and one-step
undo with stale-document guards. Add English strings and Russian translations.
- [x] Verify eight focused conversion/insertion tests and project typecheck.
- [x] Verify graphical browser conversion/insertion and live HTTPS copying.
- [ ] Complete desktop Word/Excel round-trip and offline DOCX image acceptance.
- [x] Deploy to CT102 and verify live assets and health.
- [x] Document usage, clipboard representations and compatibility limits in
[the Office clipboard guide](docs/OFFICE_CLIPBOARD.md).

Progress — 2026-11-09. Deployment completed through SSH outside the execution
sandbox. CT102 runs `office-clipboard-43082df05166`, including Russian context-menu
labels, the updated server language pack and reading-mode export corrections.
Full validation passed: 398 server tests (3 skipped) and 531 web tests.
Production build, typecheck, focused
browser/command tests, isolated Linux smoke, health/build and live asset hashes
were verified. Copying through HTTPS succeeded in the graphical browser; direct
HTTP copying was refused. Desktop Office round trips remain unverified. Deployment
and backup details are recorded in [the CT102 guide](docs/INSTALLATION_CT102.md).

## Consistent English defaults — 2026-11-03

- [x] Remove Russian PDF defaults and browser-language editor fallbacks. Localize
Expand All @@ -12,6 +33,11 @@ PDF controls and missing-heading notices use English in a ru-RU browser.
Explicit Russian import updates existing controls and reset restores English.
The authored Russian import file now covers all 975 catalogue entries.

Deployment — 2026-11-03. Installed main commit `26dc8fa` as
`english-defaults-827418182aaf` on CT102. Production build, isolated Linux smoke,
live health/build and asset hashes passed. Existing settings and environment
were preserved, with a consistent data backup recorded in the installation guide.

## Browser language packs — 2026-11-03

- [x] Add an English UI catalog, compatible .txt import, blank template download,
Expand Down
19 changes: 19 additions & 0 deletions PRD.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@

# PRD — WebObsidian

## Microsoft Office clipboard — 2026-11-09

User-facing explanation, steps and limits (Russian):
[Office clipboard guide](docs/OFFICE_CLIPBOARD.md).

Reading/preview and editor context menus offer Copy for Microsoft Office for the
selected fragment. Clipboard HTML preserves semantic headings, lists, links,
editable tables and embedded raster images, alongside a plain-text alternative.
Pasting structured HTML or rectangular TSV into a Markdown editor converts it
to Markdown, preserving displayed spreadsheet values and empty cells. Images
received as files or embedded raster data are uploaded with the existing vault
attachment rules. Unavailable or ambiguously matched images retain a visible
placeholder. Formula reconstruction and exact Word page styling are outside this
feature. Plain text and paste inside code blocks follow existing editor behavior.
An insertion is undoable as one action and cancels after a document, selection,
active-editor or note change while uploads are pending.
Desktop Word/Excel interoperability and offline DOCX image retention require
manual validation before claiming compatibility with specific Office versions.

## Browser language packs — 2026-11-03

The web client supports user-imported UTF-8 language files using Obsidian's
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ scripts/merge-upstream-pr.sh <n> # fetch refs/pull/<n>/head and merge
- 📝 **Editor & rendering** — CodeMirror 6 with live / source / reading views; wikilinks
`[[note]]`, embeds `![[file]]`, tags `#tag`, callouts, task lists, KaTeX math and
Mermaid diagrams. Diagrams require an ES2024-capable browser (Safari 17.4+).
- 📋 **Microsoft Office clipboard** — copy a selected note fragment as HTML and
plain text for Word/Excel, with table structure and embedded raster images;
paste supported Office HTML or tab-separated ranges back as Markdown.
[Usage and limitations (Russian)](docs/OFFICE_CLIPBOARD.md).
- 📕 **PDF viewer** — open a PDF from the tree or a `/note/<path>.pdf` link and it renders in the
pane (the browser's own viewer: pages, zoom, search, print); `![[doc.pdf]]` embeds that viewer
inline in a note.
Expand Down
35 changes: 35 additions & 0 deletions docs/INSTALLATION_CT102.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
| Proxmox UI | `https://10.10.1.21:8006` |
| LXC | `102`, Debian, amd64, hostname `docker` |
| Адрес приложения | `http://10.10.1.14:8787` |
| Пользовательский HTTPS-адрес | `https://selbst-obsidian.duckdns.org/` |
| Каталог установки внутри LXC | `/opt/webobsidian` |
| Compose project / контейнер | `webobsidian` / `webobsidian` |
| Compose | `/opt/webobsidian/docker-compose.yml` и `docker-compose.override.yml` |
Expand Down Expand Up @@ -92,6 +93,40 @@ package/lockfile, manifests всех пяти workspaces и `server/dist`, `serv

## Проверка состояния

### Установленная версия — исправления экспорта Office, 9 ноября 2026

- Build `office-clipboard-43082df05166`, commit `68991cde0ed48a93aa8711fc572549013b19ab4d`, source snapshot SHA256 `43082df0516694440120ed68ec93a8680370b9607c60ac298aff218e5af1fa0c`.
- Image ID `sha256:3e413e35f393006fb918f28dce98e02eb4dc443c1655a170b4e6f015c5fb54b7`; локальный пакет `build/office-clipboard-fix-release/`.
- Экспорт нормализует настоящую разметку режима чтения CodeMirror в семантический HTML, удаляет служебные картинки, сохраняет обрамление частичного выделения и разделители абзацев обычного текста.
- Backup `/opt/webobsidian/backups/office-clipboard-43082df05166-20261109T160750Z`. Прежний образ `webobsidian:office-clipboard-fa2a7b532790` сохранён.
- Полные typecheck/build PASS; 398 server PASS, 3 SKIP и 531 web PASS. Изолированный Linux smoke, healthy/build, основные отдаваемые assets и неизменность settings.json и `.env` при переключении подтверждены.

### Установленная версия — русский перевод меню редактора, 9 ноября 2026

- Build `office-clipboard-fa2a7b532790`, image ID `sha256:0a0759f9f39bfd8c18ee782ce476673f164bdd013bf5a80caccc43748814c034`. Пакет `build/menu-russian-final-release/`.
- Заголовки контекстного меню используют действующий перевод: «Форматирование», «Абзац», «Вставка». Подписи уровней заголовков также переведены и меняются вместе с языком.
- Существующий серверный языковой пакет дополнен 29 недостающими строками до 981/981; все прежние 952 перевода сохранены. Исходный пакет сохранён локально в `build/menu-russian-release/language-before.json`.
- Backup `/opt/webobsidian/backups/office-clipboard-fa2a7b532790-20261109T151945Z`. Предыдущий образ `webobsidian:office-clipboard-fcdaad3de166` сохранён.
- Проверены production build, web typecheck, 25 тестов локализации/Office/команд редактора, изолированный Linux smoke, healthy/build, контрольные суммы SPA/assets и неизменность settings.json и `.env` при переключении. После перезагрузки HTTPS-страницы проверены русские подписи и раскрытие подменю «Абзац» с пунктами «Заголовок 1–6».
- Разделы Format/Paragraph/Insert присутствуют с 30 октября 2026 (commit `e3ba3fd`), до Office clipboard. Это подменю команд редактора; команды изменения документа недоступны в режиме чтения.

### Установленная версия — обмен с Office, 9 ноября 2026

- Build `office-clipboard-72988636e4e3`, image ID `sha256:c03e5d88ed0a58cdfce86f2fc12a51aa91de393231e90a31c7a27ca912ffaf5a`.
- Снимок frontend/переводов: `72988636e4e32d8d2c66d0002496d4b2a687bc6075b83cc776f238874175558b`, базовый commit `26dc8faa12ff95e6dfb6d75b65374fc61fdf07d6`. Локальный пакет `build/office-clipboard-release/`; серверная часть унаследована от `webobsidian:english-defaults-827418182aaf`.
- Backup `/opt/webobsidian/backups/office-clipboard-72988636e4e3-20261109T145436Z`: согласованный архив `/data`, Compose/override, `.env`, прежняя ревизия и идентификатор образа. Старый образ сохранён для отката.
- Проверены изолированный Linux smoke (auth, uploads, PDF/downloads, locks/CAS, SPA), healthy/build, контрольные суммы основных отдаваемых assets, неизменность settings.json и `.env`, NAS и активность service/retry timer. HTTP health подтверждён с рабочего компьютера. Локально прошли 9 профильных тестов, включая браузерный, и полный typecheck.
- Полный тестовый запуск: 398 server PASS, 3 SKIP; 529 web PASS и один сбой public PDF/Canvas из-за отсутствующего локального `server/public`. После копирования проверенных 467 frontend-файлов установленного пакета в этот каталог повторный public PDF/Canvas-тест PASS. Таким образом, все 530 web-сценариев прошли, один — отдельным повтором; исходники тестов и приложения не изменялись.
- При подготовке освобождены кэши apt и неиспользуемый кэш сборки Docker старше недели; после установки свободно около 1,1 ГиБ.
- В графическом браузере приложение и заметка открываются. После входа через `https://selbst-obsidian.duckdns.org/` проверены режим чтения, выделение заголовка и команда Copy for Microsoft Office: приложение подтвердило успешное копирование. На прямом HTTP-адресе команда сообщает отказ доступа к буферу; пользоваться HTTPS-адресом. Реальный обмен с настольными Word/Excel пока не проверен.

### Установленная версия — единый английский язык по умолчанию, 3 ноября 2026

- Build `english-defaults-827418182aaf`, commit `26dc8faa12ff95e6dfb6d75b65374fc61fdf07d6`, image ID `sha256:3a8196a516c356091abcb7d470e6394db425e2170940df74f53119ee6a2c393c`.
- Новая установка и сброс языка используют английские подписи PDF, меню файлов, сообщения редактора и уведомления о внешних изменениях независимо от языка браузера. Импортированный пользователем пакет продолжает определять выбранный язык.
- Production build и изолированный Linux smoke прошли. После переключения проверены healthy/build, контрольные суммы SPA/assets, доступность с рабочего компьютера и service/retry timer. Настройки приложения и `.env` совпали с резервной копией.
- Backup `/opt/webobsidian/backups/english-defaults-827418182aaf-20261103T070923Z`. Предыдущий образ `webobsidian:localization-4b2213c625cb` сохранён. Локальный пакет `build/english-defaults-release/`.

### Установленная версия — локализация с серверным хранением, 3 ноября 2026

- Build `localization-4b2213c625cb`, image ID `sha256:ecb46d016ea367397445b4203f3bad097ce15e3e86741096be6b6ee89628e0ec`.
Expand Down
Loading
Loading