Show the notifications app on the main page again

Remove hardcoded exclusion for the notifications app in the home page component.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 58af0916-ab79-457c-868e-3b72336f6067
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/1WKAcHk
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
riyadhafraa
2026-05-17 15:42:29 +00:00
parent bc7938e002
commit 2f591a6ba8
+1 -13
View File
@@ -362,19 +362,7 @@ export default function HomePage() {
useEffect(() => {
if (!apps) return;
// #571: hide the Notifications app from the home grid (and the
// bottom dock — see `dockApps` filter below) regardless of its
// `isActive` flag. The top-bar bell icon is the canonical entry
// point for notifications, so a tile in the launcher is
// redundant. We filter at the client (rather than disabling the
// app server-side) so existing environments where Notifications
// is enabled stay enabled at the data layer — keeps deep links
// / direct navigation to `/notifications` working, and lets
// admins flip the app's visibility back without a DB change if
// they ever want a tile back.
const activeApps = apps.filter(
(a) => a.isActive && a.slug !== "notifications",
);
const activeApps = apps.filter((a) => a.isActive);
setOrderedApps((prev) => {
if (!prev) return activeApps;
const byId = new Map(activeApps.map((a) => [a.id, a]));