Skip to content

Chore/upgrade build tooling audit - #6

Merged
GChavez0210 merged 2 commits into
mainfrom
chore/upgrade-build-tooling-audit
Jun 14, 2026
Merged

Chore/upgrade build tooling audit#6
GChavez0210 merged 2 commits into
mainfrom
chore/upgrade-build-tooling-audit

Conversation

@GChavez0210

Copy link
Copy Markdown
Owner

This pull request refactors the PeriodicBreathingCard.jsx component to improve code readability, maintainability, and UI consistency, and updates the Husky pre-commit hook for better cross-platform compatibility. The main changes are grouped below by theme.

Code Quality and Readability Improvements:

  • Refactored the PeriodicBreathingCard.jsx component to consistently use arrow functions, improve indentation, and apply clearer, more readable inline styles for all UI elements. This includes updating all filter/map/reduce callbacks to arrow functions and cleaning up conditional expressions for color and label selection.

Cross-Platform Tooling Fix:

  • Updated the .husky/pre-commit hook to invoke lint-staged directly with node instead of npx, ensuring compatibility with Windows environments and GUI Git clients.

Minor Content and Consistency Updates:

  • Fixed indentation of the TOOLTIP object and ensured consistent formatting of tooltip content.

These changes collectively enhance maintainability, developer experience, and user interface consistency.

Replace the pre-commit hook's `npx lint-staged` with a direct node call to node_modules/lint-staged/bin/lint-staged.js to avoid Windows npx/WSL shebang failures (node is provided on PATH by husky init). Also delete docs/IMPROVEMENT_BACKLOG.md (backlog content removed/relocated).
Refine the PeriodicBreathingCard visual scale: clarify the bar's ×5 (0–20%) comment, move the 5% threshold marker down and shorten it, and replace the previous inline labels with absolutely positioned labels aligned to 0%, 5% (threshold) and 20%. Also replace several existing SCREENSHOTS (PL1–PL7) and add two new screenshots (SCREENSHOTS/PL8.png, SCREENSHOTS/PL9.png).
Copilot AI review requested due to automatic review settings June 14, 2026 18:07
@GChavez0210
GChavez0210 merged commit 163536f into main Jun 14, 2026
1 check passed
@GChavez0210
GChavez0210 deleted the chore/upgrade-build-tooling-audit branch June 14, 2026 18:07

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 pull request refactors the renderer’s PeriodicBreathingCard UI component for clearer structure/styling, adjusts the Husky pre-commit hook to run lint-staged via node for improved Windows compatibility, and removes a large documentation backlog file.

Changes:

  • Refactored PeriodicBreathingCard.jsx layout/styling and standardized callback syntax for readability.
  • Updated .husky/pre-commit to invoke lint-staged via node instead of npx.
  • Deleted docs/IMPROVEMENT_BACKLOG.md (not mentioned in the PR description).

Reviewed changes

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

File Description
src/renderer/components/charts/PeriodicBreathingCard.jsx UI refactor/formatting changes to improve readability and visual consistency.
docs/IMPROVEMENT_BACKLOG.md Removes the improvement backlog document from the repo.
.husky/pre-commit Switches pre-commit execution from npx lint-staged to direct node invocation.

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

Comment thread .husky/pre-commit
Comment on lines +1 to +6
# Call lint-staged's entry point directly via node instead of `npx`.
# The Windows `npx` wrapper has a `#!/usr/bin/env bash` shebang; under GUI git
# clients (GitHub Desktop) `env` resolves `bash` to the WSL launcher in
# System32, which fails on Windows paths (exit 127). Going straight to node
# avoids that shell entirely. node is put on PATH by ~/.config/husky/init.sh.
node "node_modules/lint-staged/bin/lint-staged.js"
Comment thread .husky/pre-commit
@@ -1 +1,6 @@
npx lint-staged
# Call lint-staged's entry point directly via node instead of `npx`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants