From ec817fee9605b91298ec076928198c468daed650 Mon Sep 17 00:00:00 2001 From: Aleix Soler Date: Sun, 20 Jul 2025 20:52:10 +0200 Subject: [PATCH 1/2] chore: improve text messages --- components/SettingsUI.tsx/BehaviourSettings.tsx | 2 +- components/SettingsUI.tsx/CustomStatusItem.tsx | 2 +- components/SettingsUI.tsx/CustomStatusSettings.tsx | 9 +++------ components/SettingsUI.tsx/UISettings.tsx | 14 +++++++------- components/StatusDashboard/QuickActionsPanel.tsx | 2 +- core/commandsService.ts | 8 ++++---- .../context-menu/contextMenuIntegration.tsx | 4 ++-- integrations/views/grouped-status-view.tsx | 2 +- integrations/views/status-dashboard-view.tsx | 2 +- main.tsx | 4 ++-- 10 files changed, 23 insertions(+), 26 deletions(-) diff --git a/components/SettingsUI.tsx/BehaviourSettings.tsx b/components/SettingsUI.tsx/BehaviourSettings.tsx index 313c39a..af8bd5a 100644 --- a/components/SettingsUI.tsx/BehaviourSettings.tsx +++ b/components/SettingsUI.tsx/BehaviourSettings.tsx @@ -27,7 +27,7 @@ export const BehaviourSettings: React.FC = ({ settings, onChange }) => { = ({ onClick={() => onCustomStatusRemove(index)} aria-label="Remove status" className="custom-status-item__remove-btn" - title="Remove this status" + title="Remove status" > × diff --git a/components/SettingsUI.tsx/CustomStatusSettings.tsx b/components/SettingsUI.tsx/CustomStatusSettings.tsx index 5168fd8..e52a105 100644 --- a/components/SettingsUI.tsx/CustomStatusSettings.tsx +++ b/components/SettingsUI.tsx/CustomStatusSettings.tsx @@ -63,8 +63,8 @@ export const CustomStatusSettings: React.FC = ({
@@ -90,10 +90,7 @@ export const CustomStatusSettings: React.FC = ({
- + diff --git a/components/SettingsUI.tsx/UISettings.tsx b/components/SettingsUI.tsx/UISettings.tsx index ce6e7cf..c33556f 100644 --- a/components/SettingsUI.tsx/UISettings.tsx +++ b/components/SettingsUI.tsx/UISettings.tsx @@ -66,7 +66,7 @@ export const UISettings: React.FC = ({ settings, onChange }) => { = ({ settings, onChange }) => { = ({ settings, onChange }) => { = ({ settings, onChange }) => { = ({ settings, onChange }) => { = ({ settings, onChange }) => { onAction("find-unassigned")} title="Find notes without status" > - 🔍 Find Unassigned Notes + 🔍 Find Unassigned diff --git a/core/commandsService.ts b/core/commandsService.ts index 510dfbd..370a442 100644 --- a/core/commandsService.ts +++ b/core/commandsService.ts @@ -24,7 +24,7 @@ export class CommandsService { // Change status of current note this.plugin.addCommand({ id: "change-status", - name: "Change status of current note", + name: "Change current note status", checkCallback: (checking: boolean) => { const file = this.app.workspace.getActiveFile(); if (!file) return false; @@ -44,7 +44,7 @@ export class CommandsService { // Cycle through statuses this.plugin.addCommand({ id: "cycle-status", - name: "Cycle to next status", + name: "Cycle through statuses", checkCallback: (checking: boolean) => { if (settingsService.settings.useMultipleStatuses) { // For now the cycle status is for single statuses @@ -138,7 +138,7 @@ export class CommandsService { // Copy status from current note this.plugin.addCommand({ id: "copy-status", - name: "Copy status from current note", + name: "Copy current note status", checkCallback: (checking: boolean) => { const file = this.app.workspace.getActiveFile(); if (!file) return false; @@ -232,7 +232,7 @@ export class CommandsService { // Open Status Pane command this.plugin.addCommand({ id: "open-status-pane", - name: "Open Status Pane", + name: "Open status pane", callback: async () => { await this.openStatusPane(); }, diff --git a/integrations/context-menu/contextMenuIntegration.tsx b/integrations/context-menu/contextMenuIntegration.tsx index 577ed8c..25a2d91 100644 --- a/integrations/context-menu/contextMenuIntegration.tsx +++ b/integrations/context-menu/contextMenuIntegration.tsx @@ -40,7 +40,7 @@ export class ContextMenuIntegration { leaf?: WorkspaceLeaf, ) => { menu.addItem((item) => { - item.setTitle("Change note state") + item.setTitle("Change note status") .setIcon("rotate-ccw") // Lucide icon .onClick(async () => { const tFiles = files.filter( @@ -81,7 +81,7 @@ export class ContextMenuIntegration { "editor-menu", (menu, editor, view) => { menu.addItem((item) => { - item.setTitle("Change note state") + item.setTitle("Change note status") .setIcon("rotate-ccw") // Lucide icon .onClick(async () => { if (view.file) { diff --git a/integrations/views/grouped-status-view.tsx b/integrations/views/grouped-status-view.tsx index df267dc..c7a74eb 100644 --- a/integrations/views/grouped-status-view.tsx +++ b/integrations/views/grouped-status-view.tsx @@ -25,7 +25,7 @@ export class GroupedStatusView extends ItemView { } getDisplayText() { - return "Grouped Status View"; + return "Grouped Status"; } getIcon() { diff --git a/integrations/views/status-dashboard-view.tsx b/integrations/views/status-dashboard-view.tsx index 768e6d0..41cc319 100644 --- a/integrations/views/status-dashboard-view.tsx +++ b/integrations/views/status-dashboard-view.tsx @@ -50,7 +50,7 @@ export class StatusDashboardView extends ItemView { } getDisplayText() { - return "Status Dashboard"; + return "Dashboard"; } getIcon() { diff --git a/main.tsx b/main.tsx index 50fcbd8..8329d45 100644 --- a/main.tsx +++ b/main.tsx @@ -47,11 +47,11 @@ export default class NoteStatusPlugin extends Plugin { (leaf) => new StatusDashboardView(leaf), ); - this.addRibbonIcon("dice", "Activate grouped view", () => { + this.addRibbonIcon("dice", "Open grouped status view", () => { this.activateView(); }); - this.addRibbonIcon("bar-chart-2", "Status Dashboard", () => { + this.addRibbonIcon("bar-chart-2", "Open status dashboard", () => { this.activateDashboard(); }); } From de5f03c7c211f70d44e79e6527e43e48719afc49 Mon Sep 17 00:00:00 2001 From: Aleix Soler Date: Sun, 20 Jul 2025 20:54:02 +0200 Subject: [PATCH 2/2] chore: improve view icons --- main.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tsx b/main.tsx index 8329d45..6c2df10 100644 --- a/main.tsx +++ b/main.tsx @@ -47,11 +47,11 @@ export default class NoteStatusPlugin extends Plugin { (leaf) => new StatusDashboardView(leaf), ); - this.addRibbonIcon("dice", "Open grouped status view", () => { + this.addRibbonIcon("list-tree", "Open grouped status view", () => { this.activateView(); }); - this.addRibbonIcon("bar-chart-2", "Open status dashboard", () => { + this.addRibbonIcon("activity", "Open status dashboard", () => { this.activateDashboard(); }); }