Skip to content

ui: import conversations or settings by drag-and-drop - #56

Closed
allozaur wants to merge 10 commits into
masterfrom
allozaur/feat/drag-and-drop-json-data-import
Closed

allozaur wants to merge 10 commits into
masterfrom
allozaur/feat/drag-and-drop-json-data-import

Conversation

@allozaur

Copy link
Copy Markdown
Owner

Overview

Drop a conversations or settings JSON file anywhere on the app to import it, with a preview of what will change before it is applied.

Additional information

Moved here from ggml-org#27244, which is closed for now. Kept on the fork until it is rebased.

Known gap: the branch dates from August and conflicts with master. It also carries 18 older model selector and settings commits from the branch it was based on; only the last four commits are this feature, and the rest should drop out in the rebase.

What changed
  • A global drop target imports conversations or settings from a dropped JSON file.
  • Importing settings from the Import/Export tab first shows a diff of the settings that will change.

Requirements

allozaur added a commit that referenced this pull request Nov 12, 2026
Replayed onto the ui/ layout; only its last four commits are this feature,
the older model selector and settings commits beneath them are upstream.
allozaur added a commit that referenced this pull request Nov 16, 2026
Replayed onto the ui/ layout; only its last four commits are this feature,
the older model selector and settings commits beneath them are upstream.

(cherry picked from commit 18f9931)
allozaur added a commit that referenced this pull request Nov 16, 2026
develop now carries the current tips of fork stack 62 (ui-folders,
glass-surfaces, llama-harness-package, mcp-extension, projects, servers,
prompt-library, voice-mode) and its side branches (model-configuration,
models-manager-redesign, ui-server-storage, mcp-oauth-login), the
server fix for ASR transcript markup, and the develop-only PRs #49, #56
and #57 ported onto them, on the same master base as before.

#19 (MCP resources in the mention picker) is left out: MCP moved to an
extension and it needs a port onto the extension API.

Assisted-by: Claude (Opus 5.5 Medium)
allozaur added a commit that referenced this pull request Nov 17, 2026
develop now holds the fork's stack as it is after the SvelteKit 3 upgrade:
the top of stack ggml-org#72 (#73, typed routes, on master with the move merged),
with the side branches merged in: MCP OAuth (#63), the models manager
(#38) and UI server storage (#39).

The merge takes the stack's files throughout. What develop carried beyond
the stack is left out for now: the mention drawer on phones (#49), the
Notebook page (#57), drag-and-drop import (#56), MCP resources in the @
picker (#19), the server's ASR transcription fixes and the reasoning level
shown as a word on the model selector. They were built on the stack before
SvelteKit 3 and stay in their own PRs and in develop's history.

Assisted-by: Claude (Opus 5.5 Medium)
@allozaur
allozaur force-pushed the allozaur/feat/drag-and-drop-json-data-import branch from c8fe484 to fd6a343 Compare November 23, 2026 12:48
@github-actions github-actions Bot added documentation Improvements or additions to documentation testing ggml WebGPU labels Nov 23, 2026
ggerganov and others added 7 commits November 24, 2026 16:34
The bitonic top-k path is only faster for short rows. On M5 and M2 Ultra it
wins up to 128 columns; above that the radix path is faster. Use the radix
path for ncols > 128.

The radix path selects in place and needs no scratch, but the buffer type
always reserved 2*4 bytes per source element, which is 8 GiB for a
524288 x 2048 score. Reserve the bitonic worst case at the 128-column
threshold instead: 2*4*128*nrows, clamped to at least the output tensor size.
This keeps the allocation bounded and consistent with the bitonic path.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (Mac Studio, M5 Ultra, 256GB)
Dropping an exported conversation (.zip, .jsonl) or settings (.json)
anywhere in the app now routes to a global importer instead of attaching
the file to a message. A state machine in use-drop-import classifies the
file, shows a review dialog (settings diff, single-conversation preview,
or bulk picker), and applies it on confirmation. The chat screen defers
import files so they are not treated as attachments.
The Import/Export settings tab now opens the same settings diff dialog
used by drag-and-drop (showing which values would change) before applying
an imported settings file. It reuses computeSettingsDiff from the global
drop-import hook instead of importing immediately.
Assisted-by: Claude (Opus 5.5 Medium)
Store a plain snapshot of the previewed conversation, since IndexedDB
cannot clone the reactive proxy, and collapse drops that carry the same
conversation more than once to its newest copy, so the selection list
no longer crashes on duplicate keys.

Assisted-by: Claude (Opus 5.5 Medium)
@allozaur
allozaur force-pushed the allozaur/feat/drag-and-drop-json-data-import branch from fd6a343 to 398b15b Compare November 24, 2026 15:05
Drop the icon and the description from the header, and give the
preview padding and a subtler border.

Assisted-by: Claude (Opus 5.5 Medium)
Assisted-by: Claude (Opus 5.5 Medium)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants