Skip to content

Show enabled alpha apps in sidebar and app store#1449

Merged
N2D4 merged 1 commit into
devfrom
devin/1779300179-fix-enabled-alpha-apps-sidebar
May 20, 2026
Merged

Show enabled alpha apps in sidebar and app store#1449
N2D4 merged 1 commit into
devfrom
devin/1779300179-fix-enabled-alpha-apps-sidebar

Conversation

@N2D4
Copy link
Copy Markdown
Contributor

@N2D4 N2D4 commented May 20, 2026

getEnabledAppIds was filtering through getAllAvailableAppIds which excludes alpha-stage apps in production. Enabled alpha apps (like support) were hidden from the sidebar, CmdK, and app store.

Now the alpha filter only gates discovery (app store listing for new apps, onboarding wizard), not already-enabled apps.

Link to Devin session: https://app.devin.ai/sessions/ff257efb19ca4d7d9889bfb21bb80c2b
Requested by: @N2D4


Note

Medium Risk
Changes production filtering so alpha-stage apps can appear when already enabled, affecting which apps are visible in the app store and counts. Risk is moderate because it alters feature-gating/visibility logic and could unintentionally surface alpha apps if enablement detection is wrong.

Overview
Updates the dashboard app catalog to hide alpha apps in production only when they are not enabled, so already-installed/activated alpha apps remain visible and discoverable within the Apps page.

Adjusts getEnabledAppIds to derive enabled apps from ALL_APPS directly (instead of getAllAvailableAppIds), ensuring enabled alpha apps are included for sidebar/CmdK/navigation enablement logic, while keeping alpha filtering as a discovery gate for unenabled apps.

Reviewed by Cursor Bugbot for commit 934a8a5. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

Release Notes

  • Bug Fixes
    • Alpha apps that are installed in your project now remain visible in production environments.
    • App category counts now accurately reflect installed alpha applications.

Review Change Stack

getEnabledAppIds was filtering through getAllAvailableAppIds which
excludes alpha-stage apps in production. This meant enabled alpha apps
(like support) were hidden from the sidebar, CmdK, and app store.

Now enabled apps are always shown regardless of stage. The alpha filter
only gates discovery (app store listing for new apps, onboarding wizard).

Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stack-auth-hosted-components Ready Ready Preview, Comment May 20, 2026 6:06pm
stack-auth-mcp Ready Ready Preview, Comment May 20, 2026 6:06pm
stack-auth-skills Ready Ready Preview, Comment May 20, 2026 6:06pm
stack-backend Ready Ready Preview, Comment May 20, 2026 6:06pm
stack-dashboard Ready Ready Preview, Comment May 20, 2026 6:06pm
stack-demo Ready Ready Preview, Comment May 20, 2026 6:06pm
stack-docs Building Building Preview, Comment May 20, 2026 6:06pm
stack-preview-backend Ready Ready Preview, Comment May 20, 2026 6:06pm
stack-preview-dashboard Ready Ready Preview, Comment May 20, 2026 6:06pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 20, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5b3f1e0f-8875-46df-b06e-5cd8a25d7c40

📥 Commits

Reviewing files that changed from the base of the PR and between 512099e and 934a8a5.

📒 Files selected for processing (2)
  • apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/apps/page-client.tsx
  • apps/dashboard/src/lib/apps-utils.ts

📝 Walkthrough

Walkthrough

The PR adjusts alpha-app visibility in production environments: alpha apps now remain visible and contribute to counts when already installed in a project, rather than being filtered out entirely. Changes span utility logic that discovers enabled apps and page-client filtering and counting logic.

Changes

Alpha App Visibility in Production

Layer / File(s) Summary
Core enabled-app discovery for alpha apps
apps/dashboard/src/lib/apps-utils.ts
getEnabledAppIds iterates over all ALL_APPS keys and filters via isAppEnabled, allowing alpha-stage apps to be included when explicitly enabled in installedApps.
UI filtering and category counts for installed alpha apps
apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/apps/page-client.tsx
Apps list filtering and category counting logic both account for installed alpha apps in production: filteredApps includes alpha apps when present in installedAppsSet, and category counts reflect those installed alpha apps.

🎯 3 (Moderate) | ⏱️ ~20 minutes

🐰 Alpha apps no longer hide in the shadows bright,
When installed they sparkle, held in production light,
Counts and filters now agree—a cozy change,
Visible and valued across the dashboard range!

✨ 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 devin/1779300179-fix-enabled-alpha-apps-sidebar

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.

@N2D4 N2D4 marked this pull request as ready for review May 20, 2026 18:07
Copilot AI review requested due to automatic review settings May 20, 2026 18:07
@N2D4 N2D4 merged commit 2c620aa into dev May 20, 2026
32 of 36 checks passed
@N2D4 N2D4 deleted the devin/1779300179-fix-enabled-alpha-apps-sidebar branch May 20, 2026 18:07
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 20, 2026

Greptile Summary

This PR fixes a bug where alpha-stage apps (e.g. the support app) that were explicitly enabled by a project were silently hidden from the sidebar, CmdK, and app store, because getEnabledAppIds delegated to getAllAvailableAppIds which strips alpha apps in production.

  • getEnabledAppIds now scans ALL_APPS directly so enabled alpha apps are returned regardless of environment; getAllAvailableAppIds is left unchanged and still gates discovery (app store listing, onboarding wizard, getUninstalledAppIds).
  • page-client.tsx mirrors the same predicate (stage !== \"alpha\" || installedAppsSet.has(appId)) in all three places that calculate filteredApps and per-category counts, keeping them consistent.

Confidence Score: 5/5

Safe to merge — the change is narrowly scoped and the alpha gate is preserved for all discovery paths.

Both changed files apply the same predicate consistently across every filter site. Discovery paths still go through getAllAvailableAppIds, which continues to strip alpha apps in production. No unintended surface area is opened.

No files require special attention.

Important Files Changed

Filename Overview
apps/dashboard/src/lib/apps-utils.ts getEnabledAppIds now iterates ALL_APPS directly instead of getAllAvailableAppIds, correctly including alpha apps that are explicitly enabled. getUninstalledAppIds still uses getAllAvailableAppIds (alpha gate preserved for discovery). No issues found.
apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/apps/page-client.tsx filteredApps and getCategoryCount both updated to show alpha apps when they appear in installedAppsSet. Logic is internally consistent across all three filter sites. No issues found.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[All Apps in ALL_APPS] --> B{Is alpha-stage?}
    B -- No --> C[Always included everywhere]
    B -- Yes --> D{Explicitly enabled by project?}
    D -- Yes --> E[Shown in sidebar / CmdK / app store]
    D -- No --> F[Hidden from sidebar and app store]
    C --> G[Discovery: app store listing, onboarding wizard, getUninstalledAppIds]
    E --> G
Loading

Reviews (1): Last reviewed commit: "Fix enabled alpha apps not showing in si..." | Re-trigger Greptile

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the dashboard’s app visibility logic so alpha-stage apps remain visible when already enabled in production, while still being hidden from discovery surfaces when not enabled.

Changes:

  • Update getEnabledAppIds to derive enabled apps from ALL_APPS directly (so enabled alpha apps aren’t excluded by the “available apps” filter).
  • Update the Apps page filtering to hide alpha apps in production unless they’re enabled.
  • Update category counts to match the updated alpha-app visibility behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/dashboard/src/lib/apps-utils.ts Ensures enabled app computation includes enabled alpha apps by filtering ALL_APPS rather than “available” apps.
apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/apps/page-client.tsx Keeps enabled alpha apps visible on the Apps page and ensures category counts reflect the same rule.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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