Title: Fix redundant navigation in permissions tab press handler by Copilot · Pull Request #11 · codebuilderinc/codebuilder-app · GitHub
Open Graph Title: Fix redundant navigation in permissions tab press handler by Copilot · Pull Request #11 · codebuilderinc/codebuilder-app
X Title: Fix redundant navigation in permissions tab press handler by Copilot · Pull Request #11 · codebuilderinc/codebuilder-app
Description: When already on the permissions index, the tab press listener was calling e.preventDefault() + router.replace('/(tabs)/permissions') — navigating to the same route unnecessarily, risking flickering. Changes app/(tabs)/_layout.tsx: Removed isOnPermissionsIndex from the tabPress condition; the handler now only intercepts navigation when on a permissions sub-page Removed the now-unused isOnPermissionsIndex variable Before: const isOnPermissionsSubPage = pathname.startsWith('/permissions/') && pathname !== '/permissions'; const isOnPermissionsIndex = pathname === '/permissions' || pathname === '/(tabs)/permissions'; if (isOnPermissionsSubPage || isOnPermissionsIndex) { e.preventDefault(); router.replace('/(tabs)/permissions'); } After: const isOnPermissionsSubPage = pathname.startsWith('/permissions/') && pathname !== '/permissions'; if (isOnPermissionsSubPage) { e.preventDefault(); router.replace('/(tabs)/permissions'); } 💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Open Graph Description: When already on the permissions index, the tab press listener was calling e.preventDefault() + router.replace('/(tabs)/permissions') — navigating to the same route unnecessarily, risking fl...
X Description: When already on the permissions index, the tab press listener was calling e.preventDefault() + router.replace('/(tabs)/permissions') — navigating to the same route unnecessarily, ri...
Opengraph URL: https://github.com/codebuilderinc/codebuilder-app/pull/11
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c2044846-2616-08be-78d4-c7f7972fd915 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8E02:3C5C87:2E20C3B:42E4A47:6A60EC20 |
| html-safe-nonce | d84a43143e72b76000a5d7eca1098d562135ccf3c24562250ba5c09af74a92be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTAyOjNDNUM4NzoyRTIwQzNCOjQyRTRBNDc6NkE2MEVDMjAiLCJ2aXNpdG9yX2lkIjoiODQ4Njg5MjMxOTY5NDQ0OTY5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0947a1f2406414a41eb427bd543ce662874171373985a059d5551e986c56a628 |
| hovercard-subject-tag | pull_request:3312335433 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/codebuilderinc/codebuilder-app/pull/11/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | When already on the permissions index, the tab press listener was calling e.preventDefault() + router.replace('/(tabs)/permissions') — navigating to the same route unnecessarily, risking fl... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3ba36a464b9464992131f4003292a219fc87f92404b0dbe3fd1ef07f11102d0f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/codebuilderinc/codebuilder-app git https://github.com/codebuilderinc/codebuilder-app.git |
| octolytics-dimension-user_id | 30593880 |
| octolytics-dimension-user_login | codebuilderinc |
| octolytics-dimension-repository_id | 918469730 |
| octolytics-dimension-repository_nwo | codebuilderinc/codebuilder-app |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 918469730 |
| octolytics-dimension-repository_network_root_nwo | codebuilderinc/codebuilder-app |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2cc5e4f897a27632dd600edfec4c737bea2f8338 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width