refactor: flatten capture choice executor#1207
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 375bc8a332
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (!captureAnywhereInVault && !filePaths.includes(targetFilePath)) { | ||
| return await this.formatCustomFolderCapturePath( |
There was a problem hiding this comment.
Preserve already-prefixed custom folder paths
When capturing to a folder, any custom input not present in filePaths is treated as a relative path and sent to formatCustomFolderCapturePath. If a user types a full vault path that already includes the selected folder prefix (for example Folder/New Note while targeting Folder/), this branch still runs and the folder gets prepended again, producing Folder/Folder/New Note.md. Before this change, the startsWith(folderPathSlash) path handled this correctly, so this is a regression that can create notes in the wrong location.
Useful? React with 👍 / 👎.
Deploying quickadd with
|
| Latest commit: |
375bc8a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ad6b2912.quickadd.pages.dev |
| Branch Preview URL: | https://engine-flat-04-capture-choic.quickadd.pages.dev |
Summary
CaptureChoiceEngineinto a flat executor using the extracted services/evaluator seams.Stack
engine-flat/01-vault-frontmatter-servicesengine-flat/02-formatter-template-servicesengine-flat/03-template-choiceengine-flat/05-macro-cutoverValidation
bun run lintbun run testbun run build