prerelease #70

Merged
Christoph merged 11 commits from prerelease into main 2026-11-05 21:33:33 +00:00
Owner
No description provided.
Allow generating whitespace-insensitive diffs and applying patches that treat
indentation/space-only differences as non-matching changes.

- Backend: add an optional ignore_whitespace flag to get_file_patch and
  apply_file_patch. get_file_patch uses `git diff --ignore-all-space` when set.
  apply_file_patch will pass `--ignore-whitespace` to git apply/check_apply unless
  action == "restore-lines" (restore always requires an exact patch).
- Frontend: thread the ignore-whitespace option through getFilePatch/applyFilePatch,
  persist the diff mode, and add a toggle + UI indicator in the line-patch dialog.
- Tests: update existing tests to supply the new parameter and add
  whitespace_insensitive_patch_stages_only_real_changes covering staging with
  whitespace-insensitive diffs.

This enables staging/unstaging that ignores indentation-only changes while keeping
restore behavior exact.
feat(line-patch): add side-by-side split view for line patches
All checks were successful
publish / Type checks and all tests (release) Has been skipped
publish / Build and publish Windows installer (release) Has been skipped
publish / Build and publish Ubuntu AppImage (release) Has been skipped
publish / Build and publish AUR packages (release) Has been skipped
prerelease (manual installation) / Type checks and all tests (release) Successful in 8m28s
prerelease (manual installation) / Build Windows prerelease installer (release) Successful in 12m14s
prerelease (manual installation) / Build Linux prerelease AppImage (release) Successful in 12m46s
10cd387f13
Add an optional side-by-side (split) view to LinePatchDialog that displays deletions and additions in paired columns. Introduces a SplitPatchRow model and buildSplitRows(hunk) to pair removed/added lines (context lines are shown on both sides). A header toggle button switches between unified and split layouts, and the preference is persisted to localStorage under "gitlite.linePatchSplitView". The split UI reuses the existing line selection logic and includes new styling and localized strings (en/de).
Add a unified markup and CSS for the "Ignore whitespace" toggle used in compare
and line-patch dialogs. Both CompareDialog and LinePatchDialog now include a
ws-toggle class and a repo-switch span, and app.css is updated with
.dialog .btn-secondary.ws-toggle and .line-patch-dialog .ws-toggle rules to
provide consistent sizing, active styles and a sliding switch indicator.

Also replace the icon-only ignore-whitespace button in LinePatchDialog with the
same btn-secondary layout as CompareDialog so both dialogs share the same
visual behavior. No functional logic changes.
feat(compare): inline word diffs, unified view and ignore-whitespace toggle
All checks were successful
publish / Type checks and all tests (release) Has been skipped
publish / Build and publish Windows installer (release) Has been skipped
publish / Build and publish Ubuntu AppImage (release) Has been skipped
publish / Build and publish AUR packages (release) Has been skipped
prerelease (manual installation) / Type checks and all tests (release) Successful in 8m13s
prerelease (manual installation) / Build Windows prerelease installer (release) Successful in 13m5s
prerelease (manual installation) / Build Linux prerelease AppImage (release) Successful in 13m55s
20aece7eca
Add inline word-level diffing and a unified view to the compare/changed-lines dialogs, plus an "ignore whitespace" toggle that can hide indentation-only edits.

- Implement src/lib/inlineDiff.ts and unit tests (scripts/inline-diff.test.mjs) to mark the minimal changed segments inside modified lines (and fall back for long or unrelated lines).
- Update CompareDialog to:
  - support split (side-by-side) and unified layouts, persisted in localStorage and toggleable with the header button or the S key;
  - render inline word-level highlights for paired changed lines and show a unified row-oriented rendering with change overview markers;
  - honor the ignore-whitespace toggle (W key) and show a message instead of silently closing when only whitespace changes remain.
- Add CSS for unified layout and inline change highlighting.
- Add dialogShortcutKey helper to modal.svelte.ts and use a window key handler so S/W only affect the topmost dialog when appropriate.
- Keep App.svelte behavior consistent with ignored whitespace: don't auto-close the line-patch dialog if indentation-only edits remain.
- Update README, CHANGELOG and in-app help/locales to document the new controls.

No external API or on-disk format changes.
feat(prerelease): publish release-candidates to prerelease updater channel
All checks were successful
publish / Type checks and all tests (release) Has been skipped
publish / Build and publish Windows installer (release) Has been skipped
publish / Build and publish Ubuntu AppImage (release) Has been skipped
publish / Build and publish AUR packages (release) Has been skipped
prerelease / Type checks and all tests (release) Successful in 10m19s
prerelease / Build and publish Windows prerelease installer (release) Successful in 12m36s
prerelease / Build and publish Linux prerelease AppImage (release) Successful in 12m58s
9e963fd99b
Publish prerelease installers to a separate updater manifest (prerelease/latest.json)
instead of touching the stable latest.json. The prerelease workflow and cicd tool:

- add PRERELEASE_MANIFEST and pass a manifest_name through publish/merge helpers
  so uploads can target "prerelease/latest.json".
- introduce _updater_settings to read ARTIFACT_BASE_URL/S3_BUCKET/APP_DIR and
  normalise bucket/prefix handling for updater uploads.
- change --prerelease-only behavior: the installer is still attached to the Forgejo
  prerelease, but the updater artifacts are published to the prerelease manifest
  only; the stable manifest is never modified.

User-facing docs and UI:
- README and CHANGELOG updated to describe the new "Receive prerelease updates"
  setting and how the prerelease channel is used.
- App UI and locale strings updated and new client-side updatePreferences logic added.

Tests and CI:
- workflow (.gitea) adjusted to provide S3/MinIO env vars to prerelease jobs.
- unit tests updated and new prerelease tests added to verify that prerelease
  uploads go to the prerelease manifest and do not overwrite the stable manifest.

This change keeps signing keys and bucket usage the same but isolates release
candidates to a separate updater feed read only by devices with prerelease
updates enabled.
Add support for optional user-configurable "instructions" that are appended
after each fixed system prompt. Introduces a new with_custom_instructions
helper (max 4000 chars, truncated at UTF-8 boundaries) and threads an
optional instructions: Option<&str> through prompt builders and AI
entrypoints (generate/review/split/pull-request/changelog). The appended
block is wrapped in <user_preferences> and explicitly cannot override the
base prompt's accuracy/safety/output rules.

Also:
- Update Tauri command handlers to accept and pass optional instructions.
- Adjust prompt builder tests and regression call sites to include the new param.

This enables per-request user preferences (tone/wording) while preserving
the required output formats for downstream parsers.
feat(review-center): scope by repository and add first-push PR prompt
All checks were successful
publish / Type checks and all tests (release) Has been skipped
publish / Build and publish Windows installer (release) Has been skipped
publish / Build and publish Ubuntu AppImage (release) Has been skipped
publish / Build and publish AUR packages (release) Has been skipped
prerelease / Type checks and all tests (release) Successful in 9m59s
prerelease / Build and publish Windows prerelease installer (release) Successful in 12m9s
prerelease / Build and publish Linux prerelease AppImage (release) Successful in 12m35s
61a53289b8
Introduce review-scope resolution and wire it into the UI so the Review Center can be opened for a specific local repository/integration and optionally preselect a branch to create a PR.

- Add a new reviewScope module (with unit tests) that matches local remotes or PR badges to configured integration sources and exposes helpers (matchRemoteToSource, remotesContainRepository, pullRequestSourceBranch, requestMatchesRepository).
- openReviewCenter now accepts options (repositoryPath, preferScope, createBranch). The app resolves the repository's integration scope (from PR badge or remotes) and uses it to prefill the Review Center. If createBranch is provided but no integration is found, show an error.
- Track a pushedBranchNotice when a branch is pushed for the first time and show a notice in the workspace with a "Create PR" action that opens the Review Center scoped to that repo/branch.
- Add BranchPanel support to create a pull request from a branch context menu when the repo is linked to an integration.
- CreateReviewDialog: accept a preferredSourceBranch, auto-select a local branch when the remotes match the chosen hosted repository (using remotesContainRepository), and provide a helper to resolve the hosted repository id from the open local repo.
- PullRequestStatusLoader now uses the new reviewScope helpers instead of ad-hoc URL parsing.

This change improves the flow for creating pull requests from local branches and makes the Review Center more reliably scoped to the repository the user is working with.
feat(updater): try multiple prerelease endpoints and default prefix to bucket
All checks were successful
publish / Build and publish Ubuntu AppImage (release) Has been skipped
publish / Type checks and all tests (release) Has been skipped
publish / Build and publish Windows installer (release) Has been skipped
publish / Build and publish AUR packages (release) Has been skipped
prerelease / Type checks and all tests (release) Successful in 8m18s
prerelease / Build and publish Linux prerelease AppImage (release) Successful in 13m0s
prerelease / Build and publish Windows prerelease installer (release) Successful in 13m8s
1f53ba17bd
Make the prerelease updater mirror the stable endpoints: the prerelease
pipeline now writes one manifest per bucket and the app will try each of
those prerelease endpoints in order (first that answers is used).

- Replace single PRERELEASE_UPDATE_ENDPOINT with PRERELEASE_UPDATE_ENDPOINTS
  and update check logic to accept and parse multiple endpoints.
- Default the artifact URL prefix (APP_DIR) to the lowercase S3_BUCKET so
  CDN URLs are reachable when the bucket name differs from the hardcoded
  "gitty".
- Add tests and update the pipeline test to assert the new multi-endpoint
  behavior; update README to document the endpoints the app reads.

This fixes unreachable prerelease URLs when the bucket differs and aligns
prerelease lookup with how stable endpoints are probed.
Remove the Explorer (Files) panel from the left sidebar and surface it as a
toolbar dialog instead.

- Drop "explorer" from SIDEBAR_PANEL_ORDER and rename its stored collapsed key
  to LEGACY_EXPLORER_PANEL_COLLAPSED_KEY so we can clean up stale localStorage.
- Update App.svelte: remove explorer panel state/handlers, add filesDialogOpen
  state with openFilesDialog/closeFilesDialog, dynamically import the new
  FilesDialog component, and remove sidebar-specific explorer UI and CSS hooks.
- RepoToolbar: add a Files button (FolderTree icon) that displays file count
  and calls onOpenFiles; App passes repoFiles.length and the opener callback.
- ExplorerPanel: remove collapsed/toggle props and adapt header to show file
  count pill when used independently of the sidebar.
- Add FilesDialog.svelte and tests (scripts/files-dialog.test.mjs) and add each
  locale string required by the dialog.

Also remove a now-unused CSS rule for the explorer collapsed state and add a
best-effort localStorage cleanup for the legacy explorer panel preference.
Backdrops may use fixed/high z-indexes (e.g. file history = 70), causing a confirmation
opened from such a dialog to render behind it. When a modal is appended, compute the
maximum z-index of currently open modals and, if the new node's z-index is not higher,
bump it to max+1 (parsing computed styles with a 0 fallback). This ensures the newest
modal is always visually on top.
feat(repo-toolbar): remove file count badge from files button
All checks were successful
publish / Type checks and all tests (release) Has been skipped
publish / Build and publish Windows installer (release) Has been skipped
publish / Build and publish Ubuntu AppImage (release) Has been skipped
publish / Build and publish AUR packages (release) Has been skipped
prerelease / Type checks and all tests (release) Successful in 8m15s
prerelease / Build and publish Windows prerelease installer (release) Successful in 12m19s
prerelease / Build and publish Linux prerelease AppImage (release) Successful in 13m3s
1d023f9e99
Remove the visual file count badge from the files action in RepoToolbar.svelte
(the <span class="repo-action-count">{fileCount}</span> was deleted). Update the
test to reflect this UI change: the test name now asserts the button opens the
files dialog without a count badge and checks the badge is not present.

Behavioral wiring is unchanged: App still supplies fileCount and the onOpenFiles
handler remains connected; only the displayed count was removed.
Sign in to join this conversation.
No description provided.