Skip to content

Revert "Enhance Global Search with Command Palette and Improve Dark Mode Text Contrast" - #154

Merged
tushaar-05 merged 1 commit into
mainfrom
revert-151-enhance_flow
Jul 15, 2026
Merged

tushaar-05 merged 1 commit into
mainfrom
revert-151-enhance_flow

Conversation

@tushaar-05

Copy link
Copy Markdown
Owner

Reverts #151

Copilot AI review requested due to automatic review settings July 15, 2026 12:22
@vercel

vercel Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
flowpilot Error Error Jul 15, 2026 12:22pm

@tushaar-05
tushaar-05 merged commit deeb67e into main Jul 15, 2026
2 of 3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts the earlier “Command Palette / Global Search enhancement + dark mode contrast tweaks” by removing the command palette implementation and rolling back/adjusting several UI theme/style changes across the app.

Changes:

  • Removes the CommandPalette component and its associated context state.
  • Switches navbar search UI toward the GlobalSearch component (and updates surrounding navbar/sidebar UI behavior).
  • Adjusts several theme/style tokens and component classes (dark mode CSS variables, button variants, hover states, legal page badges).

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/pages/Terms.tsx Reverts the hero “Legal & Terms” badge background styling.
src/pages/Privacy.tsx Reverts the hero “Legal & Compliance” badge background styling.
src/pages/DashboardPage.tsx Reverts/adjusts hero text color classes used on the dashboard greeting section.
src/index.css Tweaks dark-mode CSS variables for --border-color and --muted-color.
src/context/AppContext.tsx Removes command-palette state and changes sidebar open initialization; exposes checkProjectDeadlines.
src/components/ui/Dropdown.tsx Adjusts hover background classes for dropdown items/buttons.
src/components/ui/CommandPalette.tsx Deletes the command palette implementation (revert).
src/components/ui/Button.tsx Adjusts the dark button variant styling.
src/components/projects/ProjectCard.tsx Tweaks “+N members” avatar bubble styling.
src/components/layouts/Sidebar.tsx Changes logout click behavior to show a confirmation dialog and adjusts hover background.
src/components/layouts/Navbar.tsx Replaces command-palette-trigger search UI with GlobalSearch and adjusts navbar controls.
src/components/layouts/MainLayout.tsx Removes CommandPalette from the layout tree.
Comments suppressed due to low confidence (1)

src/components/layouts/Navbar.tsx:19

  • Sun, Moon, and the isDark/toggleTheme logic are unused in this component. Also, once the mobile search icon button is removed/rewired, the Search icon import becomes unused as well. This dead code/import noise typically fails linting and makes the component harder to follow.
import { Menu, Search, Plus, Bell, Sun, Moon } from 'lucide-react';
import { Avatar } from '@/components/ui/Avatar';
import { Button } from '@/components/ui/Button';
import { ThemeToggle } from '@/components/ui/ThemeToggle';
import { useApp } from '@/context/AppContext';
import { ROUTES } from '@/constants';
import { GlobalSearch } from './GlobalSearch';

export function Navbar() {
  const { sidebarOpen, setSidebarOpen, notifications, profile, settings, updateSettings } = useApp();
  const unread = notifications.filter((n) => !n.read).length;

  const isDark = settings.theme === 'dark' || (settings.theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);

  const toggleTheme = () => {
    const newTheme = isDark ? 'light' : 'dark';
    updateSettings({ theme: newTheme });
  };

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

Comment on lines 12 to 16
primary: 'bg-primary text-white border-ink shadow-brutal-sm shadow-brutal-hover shadow-brutal-active hover:bg-primary-dark',
secondary: 'bg-secondary text-white border-ink shadow-brutal-sm shadow-brutal-hover shadow-brutal-active',
yellow: 'bg-yellow text-ink border-ink shadow-brutal-sm shadow-brutal-hover shadow-brutal-active',
dark: 'bg-ink text-white dark:text-background border-ink shadow-brutal-sm shadow-brutal-hover shadow-brutal-active',
dark: 'bg-ink text-white border-ink shadow-brutal-sm shadow-brutal-hover shadow-brutal-active',
outline: 'bg-surface text-ink border-ink shadow-brutal-sm shadow-brutal-hover shadow-brutal-active hover:bg-background',
Comment thread src/pages/Terms.tsx

<div className="relative z-10 max-w-2xl">
<span className="inline-block text-xs font-bold uppercase tracking-widest text-ink border-2 border-ink px-3 py-1 bg-surface rounded-full mb-4">
<span className="inline-block text-xs font-bold uppercase tracking-widest text-ink border-2 border-ink px-3 py-1 bg-white rounded-full mb-4">
Comment thread src/pages/Privacy.tsx

<div className="relative z-10 max-w-2xl">
<span className="inline-block text-xs font-bold uppercase tracking-widest text-ink border-2 border-ink px-3 py-1 bg-surface rounded-full mb-4">
<span className="inline-block text-xs font-bold uppercase tracking-widest text-ink border-2 border-ink px-3 py-1 bg-white rounded-full mb-4">
Comment on lines +106 to +107
const [sidebarOpen, setSidebarOpen] = useState(() => window.innerWidth >= 768);
const [deletedItems, setDeletedItems] = useState<DeletedItem[]>([]);
Comment on lines +30 to 34
<div className="hidden sm:block flex-1 max-w-md">
<GlobalSearch /> </div>
</div>

<div className="flex items-center gap-2 sm:gap-3">

This branch had an error being deployed

1 failed deployment
Preview — 18a5805d Deployed Jul 15, 2026 by vercel[bot]
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