revdeck 0.2.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,30 @@ All notable changes to this project are documented here. The format is based on
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.3.1] - 2026-11-12
10
+
11
+ ### Fixed
12
+
13
+ - GitLab upload URLs: relative `/uploads/...` links are no longer rewritten to `https://host/uploads/...`
14
+ (GitLab expands them itself), and absolute host-only links are repaired to
15
+ `https://host/-/project/<id>/uploads/...` using the review's project id. The UI uses the same
16
+ project-aware base for images and videos.
17
+
18
+ ## [0.3.0] - 2026-11-12
19
+
20
+ ### Added
21
+
22
+ - UI: MR/PR description on the Overview; an **Open review** dialog (`o`) that opens a number or URL
23
+ from the browser; deep links to threads, findings and diff lines with working Back/Forward; a file
24
+ filter, per-review "viewed" checkboxes and previous/next file buttons in the diff.
25
+ - Markdown editor: paste and drag-and-drop image/video uploads, and `Ctrl/Cmd+B`, `Ctrl/Cmd+I`,
26
+ `Ctrl/Cmd+K` formatting shortcuts.
27
+ - Mobile sidebar as an overlay with a backdrop; it is closed by default on narrow screens.
28
+
29
+ ### Fixed
30
+
31
+ - Header actions wrap on mobile instead of squeezing the MR title.
32
+
9
33
  ## [0.2.3] - 2026-11-12
10
34
 
11
35
  ### Added
package/README.md CHANGED
@@ -117,16 +117,21 @@ Russian READMEs live in this repository; translation fixes are welcome.
117
117
 
118
118
  Common flags: `--json`, `--root`, `--review`, `--platform`, `--project`, `--host`, `--lang ru|en`.
119
119
 
120
- UI shortcuts: `1`–`5` switch tabs, `r` refreshes, `s` hides/shows the sidebar, `p` opens
121
- publishing, `?` opens the command palette. The sidebar choice is stored in `localStorage`.
120
+ UI shortcuts: `1`–`5` switch tabs, `o` opens a review, `r` refreshes, `s` hides/shows the
121
+ sidebar, `p` opens publishing, `?` opens the command palette. The sidebar choice is stored in
122
+ `localStorage`.
123
+
124
+ The UI shows the MR/PR description, supports deep links to threads, findings and diff lines (with
125
+ working browser Back/Forward), and keeps a per-review "viewed" state and file filter in the diff.
122
126
 
123
127
  ## Attachments
124
128
 
125
129
  The UI has an **Attach** button next to reply, finding and line-comment editors; the CLI equivalent is
126
130
  `revdeck attach <N> --file shot.png`. The file is uploaded by the daemon on the host, and the editor
127
131
  receives a markdown link with an absolute platform URL, so GitLab renders images and videos in the
128
- original MR. Relative GitLab `/uploads/...` links in existing drafts are rewritten to
129
- `https://<host>/uploads/...` during the publish preview.
132
+ original MR. Relative GitLab `/uploads/...` links are left for GitLab to expand in the project
133
+ context; absolute host-only links are repaired to `https://<host>/-/project/<id>/uploads/...` when the
134
+ GitLab project id is known.
130
135
 
131
136
  GitLab is supported through project uploads (requires a `glab` with `--form` support). GitHub has no
132
137
  public attachment API, so the button is disabled there and a link must be pasted manually. Only raster
@@ -266,7 +271,8 @@ Provider tests use recorded CLI responses and need no network. See [CONTRIBUTING
266
271
  - Publishing uses regular comments; native drafts (GitLab draft notes, GitHub pending review) are not
267
272
  used yet, though the provider interface is ready.
268
273
  - Project checks are planned by the agent; running them requires `revdeck checks --run --yes`.
269
- - The UI does not open a new review by number; use the CLI and the review appears in the list.
274
+ - The UI opens a review from the **Open review** dialog; the working-copy root is required so the daemon
275
+ can read `.revdeck.yml`.
270
276
  - Thread resolution is in the thread card; reactions are available on thread notes in the UI and through
271
277
  `revdeck react`.
272
278
  - GitHub has no public attachment API: the Attach button is disabled there; uploads work in GitLab.
package/README.ru.md CHANGED
@@ -26,8 +26,7 @@
26
26
  дочерних процессов. Агент в песочнице получает только RPC и не видит ни токена, ни конфигурации
27
27
  платформы.
28
28
  - **GitLab и GitHub.** Одна модель: MR/PR, треды, diff, резолв, реакции, комментарии к строкам, вложения.
29
- - **Несколько ревью.** Демон хранит открытые ревью в SQLite; UI — очередь с поиском и горячими
30
- клавишами.
29
+ - **Несколько ревью.** Демон хранит открытые ревью в SQLite; UI — очередь с горячими клавишами.
31
30
 
32
31
  ## Установка
33
32
 
@@ -103,17 +102,21 @@ revdeck ui # ссылка на локальный интерфейс
103
102
 
104
103
  Общие флаги: `--json`, `--root`, `--review`, `--platform`, `--project`, `--host`, `--lang ru|en`.
105
104
 
106
- Горячие клавиши UI: `1`–`5` переключают вкладки, `r` обновляет, `s` скрывает/показывает
107
- сайдбар, `p` открывает публикацию, `?` — палитру команд. Выбор сайдбара запоминается в
108
- `localStorage`.
105
+ Горячие клавиши UI: `1`–`5` переключают вкладки, `o` открывает ревью, `r` обновляет, `s`
106
+ скрывает/показывает сайдбар, `p` открывает публикацию, `?` — палитру команд. Выбор сайдбара
107
+ запоминается в `localStorage`.
108
+
109
+ UI показывает описание MR/PR, поддерживает deep links на треды, замечания и строки diff (с рабочей
110
+ кнопкой «назад»), а в diff — фильтр файлов и отметку «просмотрено» для каждого ревью.
109
111
 
110
112
  ## Вложения
111
113
 
112
114
  В UI рядом с редакторами ответа, замечания и комментария к строке есть кнопка **Прикрепить**; в CLI —
113
115
  `revdeck attach <N> --file shot.png`. Файл загружает демон на хосте, а в редактор попадает
114
116
  markdown-ссылка с абсолютным URL платформы, поэтому GitLab показывает картинки и видео в исходном MR.
115
- Относительные ссылки GitLab `/uploads/...` в уже написанных черновиках при предпросмотре публикации
116
- переписываются в `https://<host>/uploads/...`.
117
+ Относительные ссылки GitLab `/uploads/...` остаются как есть — GitLab сам разворачивает их в контексте
118
+ проекта; абсолютные ссылки без project id исправляются на
119
+ `https://<host>/-/project/<id>/uploads/...`, если id проекта известен.
117
120
 
118
121
  GitLab поддержан через project uploads (нужен `glab` с поддержкой `--form`). У GitHub нет публичного
119
122
  API загрузки вложений, поэтому кнопка там отключена, а ссылку нужно вставить вручную. Принимаются
@@ -254,7 +257,8 @@ npm run build # dist/cli.js, dist/daemon.js, dist/mcp.js, dist/ui
254
257
  - Публикация идёт обычными комментариями; native drafts (GitLab draft notes, GitHub pending review)
255
258
  ещё не используются, хотя провайдеры к этому готовы.
256
259
  - Проверки проекта агент только планирует; запуск — `revdeck checks --run --yes`.
257
- - UI не открывает новое ревью по номеру: это делает CLI, ревью появляется в списке.
260
+ - UI открывает ревью через диалог **Открыть ревью**; нужен корень рабочей копии, чтобы демон
261
+ прочитал `.revdeck.yml`.
258
262
  - Резолв тредов есть в карточке треда; реакции доступны на комментариях тредов в UI и через
259
263
  `revdeck react`.
260
264
  - У GitHub нет публичного API загрузки вложений: кнопка «Прикрепить» там отключена; загрузка работает
package/dist/cli.js CHANGED
@@ -168,7 +168,7 @@ var VERSION;
168
168
  var init_version = __esm({
169
169
  "src/version.ts"() {
170
170
  "use strict";
171
- VERSION = "0.2.3";
171
+ VERSION = "0.3.1";
172
172
  }
173
173
  });
174
174