Skip to content

feat: add tvos focus audit script - #3

Open
MoElnaggar14 wants to merge 3 commits into
Abdo-codes:mainfrom
MoElnaggar14:feat/tvos-focus-audit-script
Open

feat: add tvos focus audit script#3
MoElnaggar14 wants to merge 3 commits into
Abdo-codes:mainfrom
MoElnaggar14:feat/tvos-focus-audit-script

Conversation

@MoElnaggar14

Copy link
Copy Markdown
Contributor

Summary

  • add an executable tvos-focus audit script for common SwiftUI focus hotspots
  • wire the script into tvos-focus/SKILL.md as an audit-first resource
  • group findings around default focus chrome, invisible controls, Spacer gaps, ScrollView traps, overlays, and focus restore code

Verification

  • bash -n tvos-focus/scripts/audit-tvos-focus.sh
  • tvos-focus/scripts/audit-tvos-focus.sh .
  • git diff --cached --check

@Abdo-codes

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0491e97bf5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +19 to +20
rg -n 'FocusState|@FocusState|\.focused\(|\.focusSection\(|\.prefersDefaultFocus|\.defaultFocus|\.focusScope|\.focusEffect|\.focusable\(' \
--type swift "$REPO" 2>/dev/null || echo " (none found)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate repo path before suppressing ripgrep errors

When REPO is invalid or unreadable, this command hides ripgrep’s error output (2>/dev/null) and falls back to (none found), so the script exits successfully with a misleading “clean” audit. Running audit-tvos-focus.sh /tmp/does-not-exist currently reports no findings instead of failing, which can mask operator mistakes and invalidate audit results; add an upfront path check (and/or treat rg exit code 2 as an error) before printing empty-category output.

Useful? React with 👍 / 👎.

@MoElnaggar14

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a1d55a80bb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tvos-focus/scripts/audit-tvos-focus.sh Outdated
Comment thread tvos-focus/scripts/audit-tvos-focus.sh Outdated
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