Commit Graph
3 Commits
Author SHA1 Message Date
kemal.earth d17e66f202 fix(studio): unified logs sidebar styling (#53470)
## Problem

Unified Logs sidebar title and a few other bits fell out of sync after a
recent change.

## Solution

The Unified Logs filter sidebar hand-rolled its own header instead of
using the shared `ProductMenuBar` header, so it drifted from every other
section. This brings it back in line.

- **Title**: `<p className="text-lg">` → `<h4 className="text-sm">`,
matching `ProductMenuBar`.
- **Header**: `px-4` → `px-6`, `gap-3` → `gap-2`, and `h-[48px]` →
`min-h-(--header-height)`.
- **Filter area**: `p-2` → `px-4 py-1.5`, so filter labels share the
same left edge as the title.
- **"Capture your logs" card**: dropped `mx-2` so it spans the container
gutter.
- **Reset button**: `variant="text"`, tooltip moved to `side="bottom"`.
- **Card surfaces**: removed the ad-hoc `bg-muted/10 border-border/50`
override so cards use the default border and inherit the sidebar
surface.

Note: `FeaturePreviewSidebarPanel` is shared, so the Advisors sidebar
card loses the same tint — intentional, it brings all usages in line.

| Before | After |
|--------|--------|
| <img width="293" height="745" alt="Screenshot 2026-11-16 at 19 11 05"
src="https://github.com/user-attachments/assets/dc1ec664-382a-4e3b-a85b-40d37a8b479f"
/> | <img width="265" height="739" alt="Screenshot 2026-11-16 at 19 10
43"
src="https://github.com/user-attachments/assets/315fece5-3b45-4826-8e5c-5f6f9a1c258b"
/> |

## Review instructions

1. Open Unified Logs (`/project/_/logs`) with the unified logs preview
enabled.
2. Compare the sidebar header ("Logs" + Beta badge) against another
section's sidebar header, e.g. Observability
(`/project/_/advisors/rules` → Observability menu). The title size,
weight and left padding should now match.
3. Confirm the filter labels ("Time Range", etc.) line up with the
"Logs" title on the same left edge, and that the "Capture your logs"
card spans the same width as the filter rows above it.
4. Apply a filter so the Reset button appears. It should render as a
text button (no raised/filled background) and its tooltip should open
below it.
5. Check the "Capture your logs" and "Go back to old logs" cards have no
tinted background — just a border against the sidebar surface.
6. Check the Advisors sidebar (`/project/_/advisors`) card picks up the
same treatment.
2026-11-16 19:33:41 +00:00
Ivan VasilovandJordi Enric 56de26fe22 chore: Migrate the monorepo to use Tailwind v4 (#45318)
This PR migrates the whole monorepo to use Tailwind v4:
- Removed `@tailwindcss/container-queries` plugin since it's included by
default in v4,
- Bump all instances of Tailwind to v4. Made minimal changes to the
shared config to remove non-supported features (`alpha` mentions),
- Migrate all apps to be compatible with v4 configs,
- Fix the `typography.css` import in 3 apps,
- Add missing rules which were included by default in v3,
- Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot
of classes
- Rename all misnamed classes according to
https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all
apps.

---------

Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2026-04-30 10:53:24 +00:00
Jonathan Summers-MuirandJoshen Lim 41a5c39305 Feat/logs preview (#37230)
* Add unified logs feature preview and toggle controls

Introduces a unified logs feature preview, allowing users to enable or disable a new logs interface with enhanced filtering and real-time updates. Adds context hooks, UI components (UnifiedLogsPreview, LogsSwitchBox), and conditional logic to display the new interface or revert to the old one. Updates routing and feature preview modal to support the unified logs preview, and extends local storage keys for feature flag management.

* Refactor log UI components and remove LogsSwitchBox

Replaced custom SVG icons with Lucide React icons in LogsSidebarMenuV2 and FilterSideBar for consistency and maintainability. Removed the unused LogsSwitchBox component and cleaned up related imports in FeaturePreviewModal.

* Refactor sidebar panels to use FeaturePreviewSidebarPanel

Introduces a reusable FeaturePreviewSidebarPanel component and replaces InnerSideBarEmptyPanel usages in LogsSidebarMenuV2 and FilterSideBar. Removes unified logs feature flag logic from Sidebar and NavigationBar.utils, simplifying route generation and UI logic.

* Refine sidebar panel styles and remove unused icon

Removed the unused Sparkles icon import from LogsSidebarMenuV2. Updated FeaturePreviewSidebarPanel to use 'bg-muted/10' for background, simplified class names for text alignment, and cleaned up redundant text-left classes for improved styling consistency.

* Update FeaturePreviewModal.tsx

* Update FeaturePreview.constants.tsx

* Clean up

* Final clean up

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-07-17 16:14:04 +08:00