From 0b99bf688f5ebd6dc4b1a5e0483779681ef83336 Mon Sep 17 00:00:00 2001 From: Aleix Soler Date: Mon, 5 May 2025 15:57:11 +0200 Subject: [PATCH] chore: use sentence case in ui --- README.md | 22 +++++++++++----------- constants/status-templates.ts | 8 ++++---- main.ts | 18 +++++++++--------- settings/settings-tab.ts | 12 ++++++------ ui/components/status-dropdown-component.ts | 2 +- ui/components/status-dropdown.ts | 4 ++-- ui/components/status-pane-view.ts | 8 ++++---- 7 files changed, 37 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 1ef504b..6b4e9a7 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ The Status Pane provides an overview of all your notes grouped by status: To open the Status Pane: - Click the status pane icon in the left sidebar -- Use the command palette: "Note Status: Open Status Pane" +- Use the command palette: "Open status pane" In the Status Pane you can: - View all notes grouped by status - Click on any note to open it @@ -101,7 +101,7 @@ To add additional statuses: #### Batch Updates To update multiple files at once: 1. Select multiple files in the file explorer (using Ctrl/Cmd or Shift) -2. Right-click and choose "Change Status" +2. Right-click and choose "Change status" 3. Select whether to replace or add the status 4. Choose the status to apply @@ -114,10 +114,10 @@ Access plugin settings via Settings → Note Status Choose from predefined status templates: -- **Colorful Workflow**: A colorful set of workflow statuses with descriptive icons -- **Minimal Workflow**: A simplified set of essential workflow statuses -- **Academic Research**: Status workflow for academic research and writing -- **Project Management**: Status workflow for project management and tracking +- **Colorful workflow**: A colorful set of workflow statuses with descriptive icons +- **Minimal workflow**: A simplified set of essential workflow statuses +- **Academic research**: Status workflow for academic research and writing +- **Project management**: Status workflow for project management and tracking ![Status Templates](images/status-templates.png) @@ -143,11 +143,11 @@ Configure how statuses are displayed: ## Commands The plugin provides several commands accessible via the Command Palette: -- `Note Status: Open Status Pane` - Opens the status view -- `Note Status: Refresh Status` - Refreshes current note's status -- `Note Status: Add Status to Current Note` - Shows status menu -- `Note Status: Insert Status Metadata` - Adds status frontmatter -- `Note Status: Force Refresh UI` - Complete UI refresh +- `Open status pane` - Opens the status view +- `Refresh status` - Refreshes current note's status +- `Add status to current note` - Shows status menu +- `Insert status metadata` - Adds status frontmatter +- `Force refresh user interface` - Complete UI refresh ## Technical Details ### Frontmatter Format diff --git a/constants/status-templates.ts b/constants/status-templates.ts index 3e580a7..811f2dc 100644 --- a/constants/status-templates.ts +++ b/constants/status-templates.ts @@ -16,7 +16,7 @@ export interface StatusTemplate { export const PREDEFINED_TEMPLATES: StatusTemplate[] = [ { id: 'colorful', - name: 'Colorful Workflow', + name: 'Colorful workflow', description: 'A colorful set of workflow statuses with descriptive icons', statuses: [ { name: 'idea', icon: '💡', color: '#FFEB3B' }, @@ -32,7 +32,7 @@ export const PREDEFINED_TEMPLATES: StatusTemplate[] = [ }, { id: 'minimal', - name: 'Minimal Workflow', + name: 'Minimal workflow', description: 'A simplified set of essential workflow statuses', statuses: [ { name: 'todo', icon: '📌', color: '#F44336' }, @@ -43,7 +43,7 @@ export const PREDEFINED_TEMPLATES: StatusTemplate[] = [ }, { id: 'academic', - name: 'Academic Research', + name: 'Academic research', description: 'Status workflow for academic research and writing', statuses: [ { name: 'research', icon: '🔍', color: '#2196F3' }, @@ -57,7 +57,7 @@ export const PREDEFINED_TEMPLATES: StatusTemplate[] = [ }, { id: 'project', - name: 'Project Management', + name: 'Project management', description: 'Status workflow for project management and tracking', statuses: [ { name: 'planning', icon: '🗓️', color: '#9E9E9E' }, diff --git a/main.ts b/main.ts index 35fdb9c..ea19a40 100644 --- a/main.ts +++ b/main.ts @@ -157,7 +157,7 @@ export default class NoteStatus extends Plugin { }); // Add ribbon icon - this.addRibbonIcon('status-pane', 'Open Status Pane', () => { + this.addRibbonIcon('status-pane', 'Open status pane', () => { this.openStatusPane(); }); } @@ -231,7 +231,7 @@ export default class NoteStatus extends Plugin { // Refresh status command this.addCommand({ id: 'refresh-status', - name: 'Refresh Status', + name: 'Refresh status', callback: () => { this.checkNoteStatus(); new Notice('Note status refreshed!'); @@ -240,7 +240,7 @@ export default class NoteStatus extends Plugin { this.addCommand({ id: 'force-refresh-ui', - name: 'Force Refresh UI', + name: 'Force refresh user interface', callback: () => this.forceRefreshUI() }); @@ -248,7 +248,7 @@ export default class NoteStatus extends Plugin { // Insert status metadata command this.addCommand({ id: 'insert-status-metadata', - name: 'Insert Status Metadata', + name: 'Insert status metadata', editorCallback: (editor: Editor, view: MarkdownView) => { this.statusService.insertStatusMetadataInEditor(editor); new Notice('Status metadata inserted'); @@ -258,14 +258,14 @@ export default class NoteStatus extends Plugin { // Open status pane command this.addCommand({ id: 'open-status-pane', - name: 'Open Status Pane', + name: 'Open status pane', callback: () => this.openStatusPane() }); // Add status to note command this.addCommand({ id: 'add-status-to-note', - name: 'Add Status to Current Note', + name: 'Add status to current note', callback: () => this.showAddStatusToNoteMenu() }); } @@ -293,7 +293,7 @@ export default class NoteStatus extends Plugin { if (source === 'file-explorer-context-menu' && file instanceof TFile && file.extension === 'md') { menu.addItem((item) => item - .setTitle('Change Status') + .setTitle('Change status') .setIcon('tag') .onClick(() => { const selectedFiles = this.explorerIntegration.getSelectedFiles(); @@ -320,7 +320,7 @@ export default class NoteStatus extends Plugin { if (mdFiles.length > 0) { menu.addItem((item) => item - .setTitle('Change Status') + .setTitle('Change status') .setIcon('tag') .onClick(() => { this.statusContextMenu.showForFiles(mdFiles); @@ -336,7 +336,7 @@ export default class NoteStatus extends Plugin { if (view instanceof MarkdownView) { menu.addItem((item) => item - .setTitle('Change Note Status') + .setTitle('Change note status') .setIcon('tag') .onClick(() => this.statusDropdown.showInContextMenu(editor, view)) ); diff --git a/settings/settings-tab.ts b/settings/settings-tab.ts index 16bb8b8..9286053 100644 --- a/settings/settings-tab.ts +++ b/settings/settings-tab.ts @@ -22,7 +22,7 @@ export class NoteStatusSettingTab extends PluginSettingTab { this.displayTemplateSettings(containerEl.createDiv()); // UI section - new Setting(containerEl).setName('User Interface').setHeading(); + new Setting(containerEl).setName('User interface').setHeading(); // Status bar settings @@ -82,7 +82,7 @@ export class NoteStatusSettingTab extends PluginSettingTab { await this.plugin.saveSettings(); })); - new Setting(containerEl).setName('Status Tag').setHeading(); + new Setting(containerEl).setName('Status tag').setHeading(); // Option to use multiple statuses new Setting(containerEl) @@ -119,7 +119,7 @@ export class NoteStatusSettingTab extends PluginSettingTab { // Status management section - new Setting(containerEl).setName('Custom Statuses').setHeading(); + new Setting(containerEl).setName('Custom statuses').setHeading(); // Option to use only custom statuses new Setting(containerEl) @@ -232,7 +232,7 @@ export class NoteStatusSettingTab extends PluginSettingTab { * Display template settings section */ private displayTemplateSettings(containerEl: HTMLElement): void { - new Setting(containerEl).setName('Status Templates').setHeading(); + new Setting(containerEl).setName('Status templates').setHeading(); containerEl.createEl('p', { text: 'Enable predefined templates to quickly add common status workflows', cls: 'setting-item-description' @@ -306,7 +306,7 @@ export class NoteStatusSettingTab extends PluginSettingTab { // Import button const importButton = buttonsContainer.createEl('button', { - text: 'Import Template', + text: 'Import template', cls: 'mod-cta' }); @@ -317,7 +317,7 @@ export class NoteStatusSettingTab extends PluginSettingTab { // Export button const exportButton = buttonsContainer.createEl('button', { - text: 'Export Templates', + text: 'Export templates', cls: '' }); diff --git a/ui/components/status-dropdown-component.ts b/ui/components/status-dropdown-component.ts index c3a993d..28fdf15 100644 --- a/ui/components/status-dropdown-component.ts +++ b/ui/components/status-dropdown-component.ts @@ -235,7 +235,7 @@ export class StatusDropdownComponent { const titleEl = headerEl.createDiv({ cls: 'note-status-popover-title' }); const iconContainer = titleEl.createDiv({ cls: 'note-status-popover-icon' }); setIcon(iconContainer, 'tag'); - titleEl.createSpan({ text: 'Note Status', cls: 'note-status-popover-label' }); + titleEl.createSpan({ text: 'Note status', cls: 'note-status-popover-label' }); } /** diff --git a/ui/components/status-dropdown.ts b/ui/components/status-dropdown.ts index 38f67cb..79a60ce 100644 --- a/ui/components/status-dropdown.ts +++ b/ui/components/status-dropdown.ts @@ -80,7 +80,7 @@ export class StatusDropdown { // Create the button element this.toolbarButton = document.createElement('button'); this.toolbarButton.addClass('note-status-toolbar-button', 'clickable-icon', 'view-action'); - this.toolbarButton.setAttribute('aria-label', 'Note Status'); + this.toolbarButton.setAttribute('aria-label', 'Note status'); // Update initial button state this.updateToolbarButton(); @@ -495,7 +495,7 @@ export class StatusDropdown { // Create new button this.toolbarButton = document.createElement('button'); this.toolbarButton.addClass('note-status-toolbar-button', 'clickable-icon', 'view-action'); - this.toolbarButton.setAttribute('aria-label', 'Note Status'); + this.toolbarButton.setAttribute('aria-label', 'Note status'); // Update the button state this.updateToolbarButton(); diff --git a/ui/components/status-pane-view.ts b/ui/components/status-pane-view.ts index dfd4da4..f2a07f1 100644 --- a/ui/components/status-pane-view.ts +++ b/ui/components/status-pane-view.ts @@ -24,7 +24,7 @@ export class StatusPaneView extends View { } getDisplayText(): string { - return 'Status Pane'; + return 'Status pane'; } getIcon(): string { @@ -126,7 +126,7 @@ export class StatusPaneView extends View { // Refresh button const refreshButton = actionsContainer.createEl('button', { type: 'button', - title: 'Refresh Statuses', + title: 'Refresh statuses', cls: 'note-status-actions-refresh clickable-icon' }); @@ -255,7 +255,7 @@ export class StatusPaneView extends View { // Add status change options menu.addItem((item) => - item.setTitle('Change Status') + item.setTitle('Change status') .setIcon('tag') .onClick(() => { // Use the position from the event @@ -266,7 +266,7 @@ export class StatusPaneView extends View { // Add open options menu.addItem((item) => - item.setTitle('Open in New Tab') + item.setTitle('Open in new tab') .setIcon('lucide-external-link') .onClick(() => { this.app.workspace.openLinkText(file.path, file.path, 'tab');