fix: comprehensive sentence case violations - Phase 2 (#53)

Fixed UI text sentence case issues per ObsidianReviewBot feedback:

**SettingsTab.ts:**
- 'Speech Note' → 'Speech note'
- 'Openai' → 'OpenAI' (brand name)

**EnhancedSettingsTab.ts:**
- 'Speech Note' → 'Speech note'

**ProviderSettingsContainer.ts:**
- 'Configuration' → 'configuration'
- Fixed unsafe any assignment in JSON.parse

**FormatOptions.ts:**
- '(Dash)' → '(dash)'
- '(Asterisk)' → '(asterisk)'
- '(Plus)' → '(plus)'
- '(Bullet)' → '(bullet)'

**main.ts:**
- 'Speech-to-Text plugin' → 'Speech-to-text plugin'

Total: 10 sentence case fixes + 1 type safety fix across 5 files
This commit is contained in:
asyouplz 2026-01-23 11:52:25 +09:00 committed by GitHub
parent c60ee25a95
commit d03121ca0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 11 deletions

View file

@ -63,10 +63,10 @@ export default class SpeechToTextPlugin extends Plugin {
this.createStatusBarItem();
});
new Notice('Speech-to-Text plugin loaded successfully');
new Notice('Speech-to-text plugin loaded successfully');
} catch (error) {
console.error('Failed to load Speech-to-Text plugin:', error);
new Notice('Failed to load Speech-to-Text plugin. Check console for details.');
new Notice('Failed to load speech-to-text plugin. Check console for details.');
}
}

View file

@ -234,10 +234,10 @@ export class FormatOptionsModal extends Modal {
.setDesc('Character to use for bullets')
.addDropdown((dropdown) => {
dropdown
.addOption('-', '- (Dash)')
.addOption('*', '* (Asterisk)')
.addOption('+', '+ (Plus)')
.addOption('•', '• (Bullet)')
.addOption('-', '- (dash)')
.addOption('*', '* (asterisk)')
.addOption('+', '+ (plus)')
.addOption('•', '• (bullet)')
.setValue(this.options.bulletChar || '-')
.onChange((value) => {
this.options.bulletChar = value;

View file

@ -131,7 +131,7 @@ export class EnhancedSettingsTab extends PluginSettingTab {
// 제목
const titleContainer = headerEl.createDiv({ cls: 'header-title-container' });
new Setting(titleContainer).setName('Speech Note').setHeading();
new Setting(titleContainer).setName('Speech note').setHeading();
// 상태 표시
const statusBadge = titleContainer.createEl('span', {

View file

@ -48,7 +48,7 @@ export class SettingsTab extends PluginSettingTab {
containerEl.empty();
// Add main title
new Setting(containerEl).setName('Speech Note').setHeading();
new Setting(containerEl).setName('Speech note').setHeading();
this.debug('Title setting created');
// Add debug info section at the top
@ -316,7 +316,7 @@ export class SettingsTab extends PluginSettingTab {
// API Endpoint
new Setting(containerEl)
.setName('API endpoint')
.setDesc('Openai API endpoint (leave default unless using custom endpoint)')
.setDesc('OpenAI API endpoint (leave default unless using custom endpoint)')
.addText((text) =>
text
.setPlaceholder('https://api.openai.com/v1')

View file

@ -95,7 +95,7 @@ export class ProviderSettingsContainer {
// 타이틀
const titleEl = headerEl.createDiv({ cls: 'provider-title' });
new Setting(titleEl).setName('🎯 Transcription provider Configuration').setHeading();
new Setting(titleEl).setName('🎯 Transcription provider configuration').setHeading();
// 확장/축소 토글
const toggleBtn = headerEl.createEl('button', {
@ -541,7 +541,7 @@ export class ProviderSettingsContainer {
try {
const content = await file.text();
const parsed = JSON.parse(content);
const parsed: unknown = JSON.parse(content);
const keys: Record<string, string> = {};
if (isPlainRecord(parsed)) {
Object.entries(parsed).forEach(([key, value]) => {