Skip to content

Standardize buttons and minor fixes - #43

Merged
pedrovsiqueira merged 5 commits into
mainfrom
refactor/standardize-btn-component
Dec 19, 2025
Merged

Standardize buttons and minor fixes#43
pedrovsiqueira merged 5 commits into
mainfrom
refactor/standardize-btn-component

Conversation

@pedrovsiqueira

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 19, 2025 00:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes button components across the application by introducing a reusable Button component and consolidating button styles, along with a minor bug fix for transcription progress capping.

Key Changes

  • Introduced a new Button component with variants (primary, danger, secondary, icon, ghost), sizes, loading states, and TypeScript type safety for icon-only buttons requiring aria-label
  • Replaced all custom button implementations across the codebase with the standardized Button component
  • Consolidated and removed duplicate button CSS from individual component stylesheets

Reviewed changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/renderer/components/ui/Button/Button.tsx New reusable Button component with type-safe props
src/renderer/components/ui/Button/Button.css Comprehensive button styles with variants and states
src/renderer/components/ui/Button/tests/Button.test.tsx Test coverage for the Button component
src/renderer/components/ui/Button/index.ts Export file for Button component
src/renderer/components/ui/index.ts Added Button to UI components exports
src/renderer/index.css Added global spin animation for reusability
src/renderer/App.css Removed redundant button styles now handled by Button component
src/renderer/features/transcription/components/TranscriptionToolbar/TranscriptionToolbar.tsx Migrated to use Button component
src/renderer/features/transcription/components/TranscriptionToolbar/TranscriptionToolbar.css Removed button-specific styles
src/renderer/features/transcription/components/TranscriptionSearch/TranscriptionSearch.tsx Migrated to use Button component
src/renderer/features/transcription/components/TranscriptionSearch/TranscriptionSearch.css Removed button-specific styles
src/renderer/features/transcription/components/FileDropZone/FileDropZone.tsx Migrated to use Button component
src/renderer/features/settings/components/ModelDetails/ModelDetails.tsx Migrated to use Button component
src/renderer/features/settings/components/ModelDetails/ModelDetails.css Removed button-specific styles
src/renderer/features/history/components/TranscriptionHistory/TranscriptionHistory.tsx Migrated to use Button component
src/renderer/features/history/components/TranscriptionHistory/TranscriptionHistory.css Removed button-specific styles
src/renderer/features/auto-update/components/UpdateNotification/UpdateNotification.tsx Migrated to use Button component
src/renderer/features/auto-update/components/UpdateNotification/UpdateNotification.css Removed button-specific styles
src/renderer/components/ui/SystemWarning/SystemWarning.tsx Migrated to use Button component with loading state
src/renderer/components/ui/SystemWarning/SystemWarning.css Removed button-specific and spin animation styles
src/renderer/components/ui/ErrorBoundary/ErrorBoundary.tsx Migrated to use Button component
src/renderer/components/ui/ErrorBoundary/ErrorBoundary.css Removed button-specific styles
src/renderer/components/ui/DebugLogsModal/DebugLogsModal.tsx Migrated to use Button component
src/renderer/components/ui/DebugLogsModal/DebugLogsModal.css Removed button-specific styles
src/renderer/components/layout/LeftPanel/TranscriptionActions/TranscriptionActions.tsx Migrated to use Button component with loading prop
src/renderer/components/layout/LeftPanel/DonationSection/DonationSection.tsx Migrated to use Button component
src/renderer/components/layout/AppHeader/AppHeader.tsx Migrated to use Button component
src/main/services/whisper.ts Fixed progress percentage capping at 100%
docs/styles.css Removed button styles (affecting docs/index.html)
docs/privacy.html Updated navigation structure to semantic HTML5

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/styles.css
@pedrovsiqueira
pedrovsiqueira merged commit cd2e260 into main Dec 19, 2025
3 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.7.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pedrovsiqueira
pedrovsiqueira deleted the refactor/standardize-btn-component branch December 19, 2025 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants