-
Notifications
You must be signed in to change notification settings - Fork 4
[ENG-409] Choose folder to create nodes in #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughThis update introduces a configurable folder path setting for Discourse nodes, modifies relevant UI and logic to support this feature, and refactors several utility and modal functions to accept the plugin instance instead of the app instance. It also updates type definitions and default settings to accommodate the new folder path property. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant GeneralSettings
participant Plugin
participant FileSystem
User->>GeneralSettings: Update nodesFolderPath input
GeneralSettings->>GeneralSettings: handleFolderPathChange()
User->>GeneralSettings: Click Save
GeneralSettings->>Plugin: Save nodesFolderPath to settings
Plugin->>FileSystem: Use nodesFolderPath for node creation
sequenceDiagram
participant User
participant Editor
participant NodeTypeModal
participant Plugin
participant Utils
User->>Editor: Trigger Node Creation Command
Editor->>NodeTypeModal: Open modal (with plugin)
NodeTypeModal->>Utils: processTextToDiscourseNode({plugin, ...})
Utils->>Plugin: Access settings.nodesFolderPath
Utils->>FileSystem: Create node file in specified folder
Possibly related PRs
Suggested reviewers
Poem
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
mdroidian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 just one change required ("Discourse Nodes")
| </div> | ||
| </div> | ||
| <div className="setting-item-control"> | ||
| <input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have this autocomplete their existing folders. Could probably use getAllFolders. This can definitely be deferred.
343ec81 to
884e55b
Compare
https://www.loom.com/share/e76588972474475d8d9d48ec06546aed
Summary by CodeRabbit
New Features
Bug Fixes
Other Improvements