Fix tab selection issue in Integrations section (#2893)#2894
Fix tab selection issue in Integrations section (#2893)#2894soufiane-amt wants to merge 1 commit intoappwrite:mainfrom
Conversation
Console (appwrite/console)Project ID: Sites (1)
Tip Storage files get ClamAV malware scanning and encryption by default |
WalkthroughA Svelte layout file's Tabs component is now wrapped in a keyed block that uses Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Greptile SummaryFixed tab selection highlighting in the Integrations section by wrapping the
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: ecc8c64 |

What I did
Fixed the issue #2893 where the Integrations tabs always highlighted the default Platforms tab, regardless of which tab was clicked.
Wrapped the component with a {#key page.url.pathname} block to ensure Svelte properly re-renders the active tab when the URL changes.
Updated the selected attribute for each to use the isTabSelected function consistently, ensuring the correct tab is highlighted immediately upon click.
Issue
Bug: The Integrations tabs were not visually responsive to user selection.
Reproduction:
Go to Personal projects.
Click on a project.
Scroll down to the Integrations section.
Click any tab — the content updates correctly, but the tab highlight always stays on Platforms.
Expected behavior: The clicked tab should be highlighted.
Actual behavior: The default tab (Platforms) is always highlighted, even when another tab is active.
How I fixed it
Added a {#key page.url.pathname} block around the component to force Svelte to re-render the tab set when the route changes.
Ensured the selected state is correctly evaluated for each tab using isTabSelected(event).
Before the fix:
Recording.2026-02-27.212858.mp4
After the fix:
after.mp4
Summary by CodeRabbit