Skip to content

fix(FolderBrowser): commit manually-typed inline path to v-model (#523)#687

Open
pathak-satyam wants to merge 1 commit into
Listenarrs:canaryfrom
pathak-satyam:fix/523-inline-path-mapping
Open

fix(FolderBrowser): commit manually-typed inline path to v-model (#523)#687
pathak-satyam wants to merge 1 commit into
Listenarrs:canaryfrom
pathak-satyam:fix/523-inline-path-mapping

Conversation

@pathak-satyam

Copy link
Copy Markdown

Summary

Fixes #523 — manually typed local path values in the remote path mapping form were not being sent to the backend.

Changes

Fixed

  • FolderBrowser.vue: inline text input now emits update:modelValue on typing, not just path-draft
  • Added echo guard on modelValue watcher to prevent feedback loop

Added

  • FolderBrowser.inlineInput.spec.ts: two unit tests covering the fix

Testing

  • Unit tests added and passing (2/2)
  • Lint and type-check clean

Notes

Root cause: the inline input was draft-only and never committed its value to v-model. Fix is scoped to props.inline && props.autoSelect so the browse-modal flow is untouched.

@pathak-satyam pathak-satyam requested a review from a team June 15, 2026 02:40
…tenarrs#523)

The inline path input bound to a local ref and only emitted `path-draft`
on manual typing, never `update:modelValue`. Consumers that bind the field
with `v-model` (e.g. RemotePathMappingModal) listen only for
`update:modelValue`, so typed values were dropped and the save payload sent
`localPath: ""`.

Emit `update:modelValue` on input, gated on `inline && autoSelect` so
modal-embedded browsers (autoSelect=false) keep their draft-only semantics.
Guard the `modelValue` watcher against echoes of our own emit to avoid a
path-validation request on every keystroke.

Add unit tests asserting the typed value is committed when autoSelect is on
and stays silent (draft only) when autoSelect is false.
@pathak-satyam pathak-satyam force-pushed the fix/523-inline-path-mapping branch from 8e9121e to 9afde32 Compare June 15, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Path mapping: Manualy edited path is not used

1 participant