fix: address Obsidian Review Bot feedback for plugin submission

- Replace hardcoded '.obsidian' paths with Vault#configDir for proper config directory support
- Move inline styles to CSS classes for better theme compatibility
- Remove unnecessary type casting by using proper type predicates
- Add proper TypeScript type narrowing for filtered arrays

This addresses all required issues identified by the Obsidian Review Bot:
* TempDirectoryManager now accepts configDir parameter from app.vault.configDir
* PdfToImageConverter uses configDir instead of hardcoded '.obsidian'
* ExportConfigModal uses CSS classes (.export-progress-visible, .export-form-hidden) instead of inline styles
* Progress bar width controlled via CSS custom property --progress-width
* Removed 'as TFile[]' casting by implementing isMarkdownFile type predicate

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-09-06 23:10:31 +02:00
1 parent 20e8c0ccf9
commit a1380d88a0
6 files changed
+37 -20

No files matched your search

+3 -3
View File
@@ -324,13 +324,13 @@ export class ExportConfigModal extends Modal {
}
private showProgress(message: string, percent: number): void {
this.progressContainer.style.display = 'block';
this.formContainer.style.display = 'none';
this.progressContainer.addClass('export-progress-visible');
this.formContainer.addClass('export-form-hidden');
this.progressText.textContent = message;
if (percent >= 0) {
this.progressBar.style.width = `${percent}%`;
this.progressBar.style.setProperty('--progress-width', `${percent}%`);
const percentEl = this.progressContainer.querySelector('.export-progress-percent');
if (percentEl) {
percentEl.textContent = `${Math.round(percent)}%`;