Skip to content

fix(expo): add contentInsetAdjustmentBehavior to GearInventory ScrollView#2560

Merged
mikib0 merged 1 commit into
developmentfrom
fix/gear-inventory-scroll-inset
Jun 4, 2026
Merged

fix(expo): add contentInsetAdjustmentBehavior to GearInventory ScrollView#2560
mikib0 merged 1 commit into
developmentfrom
fix/gear-inventory-scroll-inset

Conversation

@mikib0

@mikib0 mikib0 commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds contentInsetAdjustmentBehavior="automatic" to the ScrollView in GearInventoryScreen. This prop lets iOS automatically adjust the scroll view's content inset to account for the navigation bar and large title header, preventing content from being obscured underneath the header on scroll.

Changes

  • apps/expo/app/(app)/gear-inventory.tsx — adds contentInsetAdjustmentBehavior="automatic" to the root ScrollView

Why

Without this prop the scroll content starts at the top of the screen rather than below the large title header on iOS, meaning the first row of inventory items can be hidden under the navigation bar on initial render or after scroll.


Built with GitHub Copilot

Summary by CodeRabbit

  • Bug Fixes
    • Fixed content display in the gear inventory screen on devices with notches and screen obstructions.

@github-actions github-actions Bot added the mobile label Jun 4, 2026
@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5797218e-660e-4187-97d4-1397adf631c8

📥 Commits

Reviewing files that changed from the base of the PR and between 02b3903 and 3bf05bf.

📒 Files selected for processing (1)
  • apps/expo/app/(app)/gear-inventory.tsx

Walkthrough

A single line change to GearInventoryScreen's ScrollView component that adds the contentInsetAdjustmentBehavior="automatic" prop. This enables automatic safe-area and content inset adjustment behavior on iOS without modifying any other logic or UI structure.

Changes

ScrollView Safe-Area Inset Adjustment

Layer / File(s) Summary
ScrollView contentInsetAdjustmentBehavior prop
apps/expo/app/(app)/gear-inventory.tsx
The ScrollView component adds contentInsetAdjustmentBehavior="automatic" to enable automatic safe-area content inset adjustment on iOS.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • PackRat-AI/PackRat#2357: Contains the same contentInsetAdjustmentBehavior inset adjustment to gear-inventory.tsx ScrollView component.

Suggested labels

mobile

Suggested reviewers

  • Isthisanmol
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding contentInsetAdjustmentBehavior to the GearInventory ScrollView. It is specific, concise, and directly reflects the primary modification in the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/gear-inventory-scroll-inset

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for packages/units (./packages/units)

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 100%) 35 / 35
🔵 Statements 100% (🎯 100%) 35 / 35
🔵 Functions 100% (🎯 100%) 6 / 6
🔵 Branches 100% (🎯 100%) 11 / 11
File CoverageNo changed files found.
Generated in workflow #121 for commit 3bf05bf by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for packages/overpass (./packages/overpass)

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 80%) 155 / 155
🔵 Statements 100% (🎯 80%) 155 / 155
🔵 Functions 100% (🎯 80%) 13 / 13
🔵 Branches 95.65% (🎯 70%) 44 / 46
File CoverageNo changed files found.
Generated in workflow #121 for commit 3bf05bf by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for packages/mcp (./packages/mcp)

Status Category Percentage Covered / Total
🔵 Lines 98.87% (🎯 95%) 176 / 178
🔵 Statements 98.87% (🎯 95%) 176 / 178
🔵 Functions 100% (🎯 95%) 13 / 13
🔵 Branches 98.38% (🎯 90%) 61 / 62
File CoverageNo changed files found.
Generated in workflow #121 for commit 3bf05bf by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for apps/expo (./apps/expo)

Status Category Percentage Covered / Total
🔵 Lines 97.52% (🎯 95%) 590 / 605
🔵 Statements 97.52% (🎯 95%) 590 / 605
🔵 Functions 100% (🎯 97%) 51 / 51
🔵 Branches 95.3% (🎯 92%) 203 / 213
File CoverageNo changed files found.
Generated in workflow #121 for commit 3bf05bf by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for packages/analytics (./packages/analytics)

Status Category Percentage Covered / Total
🔵 Lines 93.68% (🎯 80%) 697 / 744
🔵 Statements 93.68% (🎯 80%) 697 / 744
🔵 Functions 97.87% (🎯 85%) 46 / 47
🔵 Branches 85.8% (🎯 80%) 133 / 155
File CoverageNo changed files found.
Generated in workflow #121 for commit 3bf05bf by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for packages/api (./packages/api)

Status Category Percentage Covered / Total
🔵 Lines 98.78% (🎯 95%) 1136 / 1150
🔵 Statements 98.78% (🎯 95%) 1136 / 1150
🔵 Functions 100% (🎯 97%) 58 / 58
🔵 Branches 95.23% (🎯 92%) 440 / 462
File CoverageNo changed files found.
Generated in workflow #121 for commit 3bf05bf by the Vitest Coverage Report Action

@mikib0 mikib0 merged commit d3c570f into development Jun 4, 2026
19 of 21 checks passed
@mikib0 mikib0 deleted the fix/gear-inventory-scroll-inset branch June 4, 2026 20:23
@mikib0 mikib0 restored the fix/gear-inventory-scroll-inset branch June 4, 2026 20:46
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.

1 participant