fix: use sentence case for all UI text
Apply sentence case (first word capitalized, rest lowercase unless proper noun) to all user-facing text strings to comply with Obsidian UI guidelines. Changes: - Command names (already correct) - Notice messages - Button labels - Setting names - Modal titles Specific fixes: - "MCP Server" -> "MCP server" (in notices and headings) - "Server Status" -> "Server status" - "API Key Management" -> "API key management" - "MCP Client Configuration" -> "MCP client configuration" - "Start/Stop/Restart Server" -> "Start/stop/restart server" (buttons) - "View History" -> "View history" - "Copy Key" -> "Copy key" - "Regenerate Key" -> "Regenerate key" - "Copy Configuration" -> "Copy configuration" - "Export to Clipboard" -> "Export to clipboard" - "MCP Notification History" -> "MCP notification history" - "Authentication" -> "authentication" (in error message) All 760 tests pass.
This commit is contained in:
@@ -26,7 +26,7 @@ export class NotificationHistoryModal extends Modal {
|
||||
contentEl.addClass('mcp-notification-history-modal');
|
||||
|
||||
// Title
|
||||
contentEl.createEl('h2', { text: 'MCP Notification History' });
|
||||
contentEl.createEl('h2', { text: 'MCP notification history' });
|
||||
|
||||
// Filters (create once, never recreate)
|
||||
this.createFilters(contentEl);
|
||||
@@ -161,7 +161,7 @@ export class NotificationHistoryModal extends Modal {
|
||||
const actionsContainer = containerEl.createDiv({ cls: 'mcp-history-actions' });
|
||||
|
||||
// Export button
|
||||
const exportButton = actionsContainer.createEl('button', { text: 'Export to Clipboard' });
|
||||
const exportButton = actionsContainer.createEl('button', { text: 'Export to clipboard' });
|
||||
exportButton.addEventListener('click', () => {
|
||||
void (async () => {
|
||||
const exportData = JSON.stringify(this.filteredHistory, null, 2);
|
||||
@@ -169,7 +169,7 @@ export class NotificationHistoryModal extends Modal {
|
||||
// Show temporary success message
|
||||
exportButton.textContent = '✅ Copied!';
|
||||
setTimeout(() => {
|
||||
exportButton.textContent = 'Export to Clipboard';
|
||||
exportButton.textContent = 'Export to clipboard';
|
||||
}, 2000);
|
||||
})();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user