mirror of
https://github.com/ankit-kapur/obsidian-kanban-status-updater-plugin.git
synced 2026-07-22 05:42:29 +00:00
Improve UI styling and follow Obsidian guidelines
This commit is contained in:
parent
358bb124a0
commit
f6424b06b3
2 changed files with 9 additions and 34 deletions
10
README.md
10
README.md
|
|
@ -51,11 +51,11 @@ No additional configuration is required for basic functionality.
|
|||
|
||||
The plugin can be configured in the Settings tab:
|
||||
|
||||
- **Status Property Name**: The name of the property to update in the note's frontmatter (default: "status")
|
||||
- **Show Notifications**: Toggle notifications when a status is updated
|
||||
- **Debug Mode**: Enable detailed logging to console (reduces performance, only use for troubleshooting)
|
||||
- **Status property name**: The name of the property to update in the note's frontmatter (default: "status")
|
||||
- **Show notifications**: Toggle notifications when a status is updated
|
||||
- **Debug mode**: Enable detailed logging to console (reduces performance, only use for troubleshooting)
|
||||
|
||||
There's also a "Test Plugin" button that will scan for Kanban items on the active board to verify the plugin is working.
|
||||
There's also a "Test plugin" button that will scan for Kanban items on the active board to verify the plugin is working.
|
||||
|
||||
## Performance Considerations
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ If the plugin isn't working as expected:
|
|||
|
||||
## Compatibility
|
||||
|
||||
- Requires Obsidian v0.15.0 or higher
|
||||
- Requires Obsidian v1.1.0 or higher
|
||||
- Requires Obsidian Kanban plugin v1.3.0 or higher
|
||||
|
||||
## If you find this plugin helpful,
|
||||
|
|
|
|||
33
main.ts
33
main.ts
|
|
@ -465,10 +465,9 @@ class KanbanStatusUpdaterSettingTab extends PluginSettingTab {
|
|||
const {containerEl} = this;
|
||||
|
||||
containerEl.empty();
|
||||
containerEl.createEl('h2', {text: 'Kanban Status Updater Settings'});
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Status Property Name')
|
||||
.setName('Status property name')
|
||||
.setDesc('The name of the property to update when a card is moved')
|
||||
.addText(text => text
|
||||
.setPlaceholder('status')
|
||||
|
|
@ -479,7 +478,7 @@ class KanbanStatusUpdaterSettingTab extends PluginSettingTab {
|
|||
}));
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Show Notifications')
|
||||
.setName('Show notifications')
|
||||
.setDesc('Show a notification when a status is updated')
|
||||
.addToggle(toggle => toggle
|
||||
.setValue(this.plugin.settings.showNotifications)
|
||||
|
|
@ -489,7 +488,7 @@ class KanbanStatusUpdaterSettingTab extends PluginSettingTab {
|
|||
}));
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Debug Mode')
|
||||
.setName('Debug mode')
|
||||
.setDesc('Enable detailed logging (reduces performance)')
|
||||
.addToggle(toggle => toggle
|
||||
.setValue(this.plugin.settings.debugMode)
|
||||
|
|
@ -506,36 +505,12 @@ class KanbanStatusUpdaterSettingTab extends PluginSettingTab {
|
|||
|
||||
// Add a test button
|
||||
new Setting(containerEl)
|
||||
.setName('Test Plugin')
|
||||
.setName('Test plugin')
|
||||
.setDesc('Test with current Kanban board')
|
||||
.addButton(button => button
|
||||
.setButtonText('Run Test')
|
||||
.onClick(() => {
|
||||
this.plugin.runTest();
|
||||
}));
|
||||
|
||||
// Performance info
|
||||
containerEl.createEl('h3', {text: 'Performance Optimization'});
|
||||
|
||||
containerEl.createEl('p', {
|
||||
text: 'This plugin only monitors the currently active Kanban board to minimize performance impact.'
|
||||
});
|
||||
|
||||
// Troubleshooting section
|
||||
containerEl.createEl('h3', {text: 'Troubleshooting'});
|
||||
|
||||
const list = containerEl.createEl('ul');
|
||||
|
||||
list.createEl('li', {
|
||||
text: 'The plugin only works with the currently open Kanban board'
|
||||
});
|
||||
|
||||
list.createEl('li', {
|
||||
text: 'Cards must contain internal links to notes'
|
||||
});
|
||||
|
||||
list.createEl('li', {
|
||||
text: 'Keep Debug Mode disabled for best performance'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue