sync(oss): mirror inkeep/open-knowledge#602: feat: add "Import as template" to File Tree context menu#710
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.