Skip to content

sync(oss): mirror inkeep/open-knowledge#602: feat: add "Import as template" to File Tree context menu#710

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jul 20, 2026
Merged

sync(oss): mirror inkeep/open-knowledge#602: feat: add "Import as template" to File Tree context menu#710
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.

…ontext menu

Commits:

[9e6a0e0](9e6a0e0)
Author: Adityakk9031 <143548997+Adityakk9031@users.noreply.github.com>

feat: add "Import as template" to File Tree context menu

[7dd2d94](7dd2d94)
Author: tim-inkeep <132074086+tim-inkeep@users.noreply.github.com>

fix: make Import-as-template build and pass gates

Fixups on top of the "Import as template" feature so it compiles and clears CI:

- Restore handleTemplateMove's closing: the new handler splice dropped its
  `},` plus `{ handler: 'template-move', method: 'POST' }` options argument,
  which broke the parse of api-extension.ts (whole server failed to build).
- Add 'template-import' to checkTemplateConflictGate's handler union (typecheck).
- Register handleTemplateImport in the route meta-tests: REQUIRED in
  conflict-gate-coverage (it calls respondDocInConflict), EXEMPT in
  attribution-sweep-coverage (single-file-mode guard emits before identity).
- Extract Lingui catalogs for the new UI strings (en + pseudo).
- Add a changeset; tidy the empty catch and name fallback for lint.

Co-authored-by: Aditya kumar singh <143548997+Adityakk9031@users.noreply.github.com>

[ec73e78](ec73e78)
Author: Adityakk9031 <143548997+Adityakk9031@users.noreply.github.com>

fix: address template import PR feedback

[e429234](e429234)
Author: tim-inkeep <132074086+tim-inkeep@users.noreply.github.com>

chore: extract i18n catalogs for template-convert dialog + format

Regenerate en/pseudo Lingui catalogs for the new convert-confirmation
dialog strings, and apply the formatter to FileTree.tsx.

Co-authored-by: Aditya kumar singh <143548997+Adityakk9031@users.noreply.github.com>

[e30c3cf](e30c3cf)
Author: tim-inkeep <132074086+tim-inkeep@users.noreply.github.com>

test: smoke-test /api/template/import (keep + convert + guards)

Narrow-integration coverage for the new import endpoint, since the destructive
"Convert (delete original)" path had none:
- keep original: template created, source intact
- convert: template created AND source doc deleted from disk
- regression guard: source title is not baked into the instantiated frontmatter
- missing source: 404 + urn:ok:error:doc-not-found

Co-authored-by: Aditya kumar singh <143548997+Adityakk9031@users.noreply.github.com>

Co-authored-by: Adityakk9031 <143548997+Adityakk9031@users.noreply.github.com>
Co-authored-by: tim-inkeep <132074086+tim-inkeep@users.noreply.github.com>
Co-authored-by: Aditya kumar singh <143548997+Adityakk9031@users.noreply.github.com>
GitOrigin-RevId: 0618805a14d95eda89de74f3434188c29bdfe6ad
@inkeep-oss-sync
inkeep-oss-sync Bot merged commit adffdc0 into main Jul 20, 2026
@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch July 20, 2026 19:47
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.

0 participants