Skip to content

Shell updates 022626 - Ready for Eng Review#272

Open
petervachon wants to merge 13 commits intomainfrom
shellUpdates_022626
Open

Shell updates 022626 - Ready for Eng Review#272
petervachon wants to merge 13 commits intomainfrom
shellUpdates_022626

Conversation

@petervachon
Copy link
Collaborator

Currently under review

@github-actions
Copy link

github-actions bot commented Feb 26, 2026

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

Project Deployment Review Updated (PT)
apollo-canvas 🟢 Ready Preview, Logs Feb 26, 2026, 12:24:50 PM
apollo-ui-react 🟢 Ready Preview, Logs Feb 26, 2026, 12:23:03 PM
apollo-vertex 🟢 Ready Preview, Logs Feb 26, 2026, 12:24:04 PM
apollo-wind 🟢 Ready Preview, Logs Feb 26, 2026, 12:23:18 PM

@github-actions
Copy link

github-actions bot commented Feb 26, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Comment on lines +3 to +9
import {
CheckCircle,
Clock,
FileText,
AlertTriangle,
TrendingUp,
} from "lucide-react";

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import AlertTriangle.

Copilot Autofix

AI 3 days ago

In general, to fix unused import issues, remove the unused symbol from the import list while keeping the rest of the import intact. This cleans up the code, avoids confusion about intended usage, and can slightly reduce bundle size.

Here, the best fix is to remove AlertTriangle from the destructuring import on line 3 of apps/apollo-vertex/app/(preview)/preview/shell/invoice-dashboard.tsx, leaving the other icons (CheckCircle, Clock, FileText, TrendingUp) unchanged. No other changes, imports, or definitions are required, since we are not altering any runtime functionality—only removing an unused name.

Concretely:

  • Edit the import from "lucide-react" at the top of invoice-dashboard.tsx.
  • Delete AlertTriangle, from the import list.
  • Ensure formatting and commas remain valid for the remaining specifiers.
Suggested changeset 1
apps/apollo-vertex/app/(preview)/preview/shell/invoice-dashboard.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/apps/apollo-vertex/app/(preview)/preview/shell/invoice-dashboard.tsx b/apps/apollo-vertex/app/(preview)/preview/shell/invoice-dashboard.tsx
--- a/apps/apollo-vertex/app/(preview)/preview/shell/invoice-dashboard.tsx
+++ b/apps/apollo-vertex/app/(preview)/preview/shell/invoice-dashboard.tsx
@@ -4,7 +4,6 @@
   CheckCircle,
   Clock,
   FileText,
-  AlertTriangle,
   TrendingUp,
 } from "lucide-react";
 import { Badge } from "@/components/ui/badge";
EOF
@@ -4,7 +4,6 @@
CheckCircle,
Clock,
FileText,
AlertTriangle,
TrendingUp,
} from "lucide-react";
import { Badge } from "@/components/ui/badge";
Copilot is powered by AI and may make mistakes. Always verify output.
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import cn.

Copilot Autofix

AI 3 days ago

In general, unused imports should be removed to improve readability and avoid confusion. They may also slightly impact build performance and can hide genuine issues if left around after refactors.

The best fix here is to delete the unused cn import from apps/apollo-vertex/registry/shell/shell-company.tsx. This does not change runtime behavior because cn is never referenced in the shown code, and removing an unused import is a no-op semantically. Concretely, you should edit the import section at the top of the file and remove the line import { cn } from "@/lib/utils";, leaving all other imports intact.

No additional methods, imports, or definitions are required to implement this change.

Suggested changeset 1
apps/apollo-vertex/registry/shell/shell-company.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/apps/apollo-vertex/registry/shell/shell-company.tsx b/apps/apollo-vertex/registry/shell/shell-company.tsx
--- a/apps/apollo-vertex/registry/shell/shell-company.tsx
+++ b/apps/apollo-vertex/registry/shell/shell-company.tsx
@@ -10,7 +10,6 @@
   TooltipProvider,
   TooltipTrigger,
 } from "@/components/ui/tooltip";
-import { cn } from "@/lib/utils";
 import { useLocalStorage } from "@/registry/use-local-storage/use-local-storage";
 import type { CompanyLogo } from "./shell";
 import {
EOF
@@ -10,7 +10,6 @@
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
import { useLocalStorage } from "@/registry/use-local-storage/use-local-storage";
import type { CompanyLogo } from "./shell";
import {
Copilot is powered by AI and may make mistakes. Always verify output.
const { t, i18n } = useTranslation();
const { user } = useUser();
const { logout } = useAuth();
const { theme, setTheme } = useTheme();

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable theme.

Copilot Autofix

AI 3 days ago

In general, to fix an unused variable from a destructuring assignment, remove the unused binding while keeping the ones that are actually used. This eliminates dead code and avoids future confusion without changing behavior.

Here, the fix is to stop destructuring theme from useTheme() and only destructure setTheme, which is the part that appears to be used. On line 55 in apps/apollo-vertex/registry/shell/shell-user-profile.tsx, change:

const { theme, setTheme } = useTheme();

to:

const { setTheme } = useTheme();

No additional imports, methods, or definitions are needed, because we’re only narrowing the destructured object to what is actually used.

Suggested changeset 1
apps/apollo-vertex/registry/shell/shell-user-profile.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/apps/apollo-vertex/registry/shell/shell-user-profile.tsx b/apps/apollo-vertex/registry/shell/shell-user-profile.tsx
--- a/apps/apollo-vertex/registry/shell/shell-user-profile.tsx
+++ b/apps/apollo-vertex/registry/shell/shell-user-profile.tsx
@@ -52,7 +52,7 @@
   const { t, i18n } = useTranslation();
   const { user } = useUser();
   const { logout } = useAuth();
-  const { theme, setTheme } = useTheme();
+  const { setTheme } = useTheme();
   const [language, setLanguageState] = useState(i18n.language);
 
   const setLanguage = useCallback((code: string) => {
EOF
@@ -52,7 +52,7 @@
const { t, i18n } = useTranslation();
const { user } = useUser();
const { logout } = useAuth();
const { theme, setTheme } = useTheme();
const { setTheme } = useTheme();
const [language, setLanguageState] = useState(i18n.language);

const setLanguage = useCallback((code: string) => {
Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines +3 to +9
import {
CheckCircle,
Clock,
FileText,
AlertTriangle,
TrendingUp,
} from "lucide-react";
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
import { cn } from "@/lib/utils";
const { t, i18n } = useTranslation();
const { user } = useUser();
const { logout } = useAuth();
const { theme, setTheme } = useTheme();
@petervachon petervachon changed the title Shell updates 022626 - DO NOT MERGE Shell updates 022626 - Ready for Eng Review Feb 26, 2026
@petervachon
Copy link
Collaborator Author

These shell, card, and color general theme updates are ready for Eng review

Copy link
Contributor

@frankkluijtmans frankkluijtmans left a comment

Choose a reason for hiding this comment

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

Other than the linting issues I noticed some small things in the shell UI:

Image

User avatar has some misaligned circle around it, maybe it's an incorrect drop shadow?

Image

Positioning of user menu is off. Would be better to align it at the bottom of the avatar in the simple shell layout.

Image

The KPI cards have some extra vertical space. What's the exact purpose of that? I get that we might want a minimum height, but then let's use a slightly bigger font.

If you need some help looking at any of this, let me know 😄

Comment on lines +58 to +75
const MOCK_AUTH_CONTEXT: AuthContextValue = {
user: { name: "Dev User", email: "dev@localhost", sub: "dev-user-001" },
isAuthenticated: true,
isLoading: false,
login: async () => {},
logout: () => {},
accessToken: "bypass-token",
};

const MockAuthProvider: FC<PropsWithChildren> = ({ children }) => (
<AuthContext.Provider value={MOCK_AUTH_CONTEXT}>{children}</AuthContext.Provider>
);

type ApolloShellProps = ApolloShellComponentProps &
(
| { bypassAuth: true; clientId?: string; scope?: string; baseUrl?: string }
| { bypassAuth?: false; clientId: string; scope: string; baseUrl: string }
);
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to bypass auth? we can add people in the org/app that the auth uses.
i think @ruudandriessen did this already with you @petervachon already 🤔

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.

3 participants