Skip to content

Conversation

@abhayymishraa
Copy link
Contributor

@abhayymishraa abhayymishraa commented Jan 3, 2026

What does this PR do?

Fixes a mobile-only UX issue on Installed Apps category pages (/apps/installed/[category]) where selecting a far-right category (e.g. Other) would navigate correctly but the active tab could remain off-screen in the horizontally scrollable navbar.
This PR adds an opt-in HorizontalTabs behavior to scroll the active tab (aria-current="page") into view, and enables it for the Installed Apps category navbar on mobile only (desktop uses vertical tabs and is unchanged).

Visual Demo (For contributors especially)

A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).

Video Demo (if applicable):

Before:

Screen.Recording.2026-01-03.at.5.23.51.PM.mov

After:

Screen.Recording.2026-01-03.at.5.24.32.PM.mov

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

Steps:

  • Start the web app locally.
  • Open the Installed Apps page in a mobile viewport (DevTools device emulation):
  • Go to /apps/installed/calendar
  • Tap a far-right category like Other (or any category that is initially off-screen in the horizontal navbar).
    Expected:
  • Navigation works as before.
  • The active category tab is automatically scrolled into view in the mobile horizontal navbar (no longer off-screen).
  • Desktop layout/behavior remains unchanged (still uses vertical tabs).

Checklist

@abhayymishraa abhayymishraa requested review from a team as code owners January 3, 2026 12:05
@vercel
Copy link

vercel bot commented Jan 3, 2026

@abhayymishraa is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 3, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

import HorizontalTabItem from "./HorizontalTabItem";

export interface NavTabProps {
interface NavTabProps {
Copy link
Member

Choose a reason for hiding this comment

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

we are not exporting the interface anymore. does this mean we are not using it in any other files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I missed that somehow, wanted to make a draft pr somehow made this open pull request!
I will fix it right away

inline: "center",
});
if (activeHref) lastScrolledActiveHrefRef.current = activeHref;
});
Copy link
Member

Choose a reason for hiding this comment

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

There is no dependency array here. will it run on every render?

Copy link
Member

@dhairyashiil dhairyashiil left a comment

Choose a reason for hiding this comment

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

Left some comments

@dhairyashiil dhairyashiil marked this pull request as draft January 3, 2026 13:07
@abhayymishraa
Copy link
Contributor Author

@dhairyashiil could you check again!
Thank you

@abhayymishraa abhayymishraa marked this pull request as ready for review January 3, 2026 13:59
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Copy link
Member

@dhairyashiil dhairyashiil left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you for the contribution

@dhairyashiil dhairyashiil enabled auto-merge (squash) January 3, 2026 21:25
Copy link
Member

@dhairyashiil dhairyashiil left a comment

Choose a reason for hiding this comment

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

@abhayymishraa could you please create the issue you are addressing and link this PR to it?

@abhayymishraa
Copy link
Contributor Author

@dhairyashiil i've created the issue and successfully link this pr

@github-actions github-actions bot added the 🐛 bug Something isn't working label Jan 4, 2026
Ryukemeister

This comment was marked as outdated.

Copy link
Contributor

@Ryukemeister Ryukemeister left a comment

Choose a reason for hiding this comment

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

LGTM

@anikdhabal anikdhabal added the run-ci Approve CI to run for external contributors label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working community Created by Linear-GitHub Sync ready-for-e2e run-ci Approve CI to run for external contributors size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile: Active Installed Apps category tab can remain off-screen after navigation

4 participants