Skip to content

v3-alpha-bugfix/4061-input-issue-mac #4222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 18, 2025

Conversation

leaanthony
Copy link
Member

@leaanthony leaanthony commented Apr 18, 2025

Description

Fixes issue where on some later versions of macOS, inputs would not work correctly.

Fixes #4061

Type of change

Please select the option that is relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Summary by CodeRabbit

  • Documentation

    • Added a changelog entry documenting a fix for an input issue on macOS.
  • Style

    • Updated CSS in multiple templates to apply user-select disabling properties only to the root element instead of globally.
    • In one template, user-select disabling was removed, enabling text selection across all elements.
    • Some CSS files contain merged selectors that may affect style application.

Copy link
Contributor

coderabbitai bot commented Apr 18, 2025

Walkthrough

This pull request updates the changelog to document a fix for an input issue on macOS and modifies the CSS files across multiple frontend templates. The CSS changes primarily involve removing the closing brace of the :root selector, causing the universal selector (*) block to be merged into the :root block. This alters the scope of user-select properties, affecting their application from global to only within the :root selector. In the vanilla TypeScript template, the universal selector's user-select rules are removed entirely, leaving an empty selector. No exported or public entities were modified.

Changes

Files Change Summary
docs/src/content/docs/changelog.mdx Added a changelog entry documenting a fix for a macOS input issue, crediting the contributor.
v3/internal/templates//frontend/public/style.css (except vanilla-ts) and v3/internal/templates//frontend/static/style.css Removed the closing brace of :root, merging the universal selector * block into :root, changing the scope of user-select properties.
v3/internal/templates/qwik-ts/frontend/public/style.css
v3/internal/templates/svelte-ts/frontend/public/style.css
Removed the closing brace of :root and altered or removed the universal selector, resulting in syntactically incorrect or broken CSS.
v3/internal/templates/vanilla-ts/frontend/public/style.css Removed user-select rules from the universal selector and replaced with an empty selector, re-enabling text selection globally.

Assessment against linked issues

Objective Addressed Explanation
Fix input issue on Mac OS Monterey (12.6+) preventing typing in input fields (#4061)

Possibly related PRs

  • wailsapp/wails#3590: Implements the actual fix for the macOS input issue by modifying response handling, which is directly related to the changelog entry and CSS adjustments in this PR.

Poem

A bunny hopped through code so neat,
Tweaked the styles beneath its feet.
On Mac, the keys now work just right,
Input boxes greet the night.
With braces gone and changelog penned,
The rabbit’s fixes never end!
🐇✨


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0222bfa and facc47b.

📒 Files selected for processing (1)
  • docs/src/content/docs/changelog.mdx (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • docs/src/content/docs/changelog.mdx
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)
  • GitHub Check: Cloudflare Pages

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@leaanthony leaanthony requested a review from fbbdev April 18, 2025 06:18
Copy link

cloudflare-workers-and-pages bot commented Apr 18, 2025

Deploying wails with  Cloudflare Pages  Cloudflare Pages

Latest commit: facc47b
Status:🚫  Build failed.

View logs

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/src/content/docs/changelog.mdx (1)

118-118: Add PR reference and OS icon for consistency

For consistency with other macOS-specific fixes in the changelog, consider prefixing the entry with  and adding the PR number (e.g., [#4222]) or commit link:

- - Fixed input issue with macOS by [@leaanthony](https://github.com/leaanthony).
+ -  Fixed input issue with macOS by [@leaanthony](https://github.com/leaanthony) in [#4222].
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2d57b5b and f59798e.

📒 Files selected for processing (20)
  • docs/src/content/docs/changelog.mdx (1 hunks)
  • v3/internal/templates/lit-ts/frontend/public/style.css (0 hunks)
  • v3/internal/templates/lit/frontend/public/style.css (0 hunks)
  • v3/internal/templates/preact-ts/frontend/public/style.css (0 hunks)
  • v3/internal/templates/preact/frontend/public/style.css (0 hunks)
  • v3/internal/templates/qwik-ts/frontend/public/style.css (0 hunks)
  • v3/internal/templates/qwik/frontend/public/style.css (0 hunks)
  • v3/internal/templates/react-swc-ts/frontend/public/style.css (0 hunks)
  • v3/internal/templates/react-swc/frontend/public/style.css (0 hunks)
  • v3/internal/templates/react-ts/frontend/public/style.css (0 hunks)
  • v3/internal/templates/react/frontend/public/style.css (0 hunks)
  • v3/internal/templates/solid-ts/frontend/public/style.css (0 hunks)
  • v3/internal/templates/solid/frontend/public/style.css (0 hunks)
  • v3/internal/templates/svelte-ts/frontend/public/style.css (0 hunks)
  • v3/internal/templates/svelte/frontend/public/style.css (0 hunks)
  • v3/internal/templates/sveltekit-ts/frontend/static/style.css (0 hunks)
  • v3/internal/templates/sveltekit/frontend/frontend/style.css (0 hunks)
  • v3/internal/templates/sveltekit/frontend/static/style.css (0 hunks)
  • v3/internal/templates/vanilla-ts/frontend/public/style.css (1 hunks)
  • v3/internal/templates/vanilla/frontend/public/style.css (0 hunks)
💤 Files with no reviewable changes (18)
  • v3/internal/templates/preact-ts/frontend/public/style.css
  • v3/internal/templates/react/frontend/public/style.css
  • v3/internal/templates/qwik-ts/frontend/public/style.css
  • v3/internal/templates/sveltekit/frontend/frontend/style.css
  • v3/internal/templates/sveltekit/frontend/static/style.css
  • v3/internal/templates/vanilla/frontend/public/style.css
  • v3/internal/templates/solid-ts/frontend/public/style.css
  • v3/internal/templates/lit/frontend/public/style.css
  • v3/internal/templates/qwik/frontend/public/style.css
  • v3/internal/templates/preact/frontend/public/style.css
  • v3/internal/templates/sveltekit-ts/frontend/static/style.css
  • v3/internal/templates/solid/frontend/public/style.css
  • v3/internal/templates/react-ts/frontend/public/style.css
  • v3/internal/templates/react-swc-ts/frontend/public/style.css
  • v3/internal/templates/svelte/frontend/public/style.css
  • v3/internal/templates/svelte-ts/frontend/public/style.css
  • v3/internal/templates/react-swc/frontend/public/style.css
  • v3/internal/templates/lit-ts/frontend/public/style.css
🧰 Additional context used
🪛 Biome (1.9.4)
v3/internal/templates/vanilla-ts/frontend/public/style.css

[error] 22-23: An empty block isn't allowed.

Consider removing the empty block or adding styles inside it.

(lint/suspicious/noEmptyBlock)

⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)
  • GitHub Check: Cloudflare Pages

@leaanthony leaanthony merged commit 89a70b9 into v3-alpha Apr 18, 2025
8 of 10 checks passed
@leaanthony leaanthony deleted the v3-alpha-bugfix/4061-input-issue-mac branch April 18, 2025 23:19
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