Index of every page on this site: llms.txt
All skills
comet-ml avatar

/opik-frontend

@9b3d88e
by Cometcomet-ml/opik23k stars
1,964
Run it yourself

React frontend patterns for Opik. Use when working in apps/opik-frontend, on components, state, or data fetching.

Use this Skill: https://skilld.dev/gh/comet-ml/opik/opik-frontend

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

responsive-design.md

≈426 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Responsive Design

When to Add Phone Support

Phone support is NOT required by default. Only add when:

  • Explicitly requested in Jira ticket
  • Working on onboarding features
  • Component already has phone support

Decision Framework

Scenario Use
Styling (padding, margins, colors) Tailwind md:
Layout direction Tailwind md:flex-row
Show/hide element hidden md:block
Different component useIsPhone
Different prop values useIsPhone
Structural DOM changes useIsPhone

Tailwind (Preferred)

Mobile-first: base classes = phone, md: = tablet+

// Styling changes
<div className="w-full px-4 md:w-[468px] md:px-0">

// Layout direction
<div className="flex flex-col gap-4 md:flex-row md:gap-6">

// Visibility
<div className="hidden md:block">Desktop only</div>

useIsPhone (When CSS Can't)

import { useIsPhone } from "@/hooks/useIsPhone";

const { isPhonePortrait } = useIsPhone();

// Different component
if (isPhonePortrait) {
  return <BottomSheet>{content}</BottomSheet>;
}
return <SideDialog>{content}</SideDialog>;

// Different props
<DialogContent
  side={isPhonePortrait ? "bottom" : "right"}
  size={isPhonePortrait ? "full" : "md"}
/>

Hooks Reference

// Device detection
const { isPhone, isPhonePortrait, isPhoneLandscape } = useIsPhone();

// Custom queries
const isTablet = useMediaQuery("(min-width: 768px) and (max-width: 1023px)");

// Constants
import { QUERY_IS_PHONE_PORTRAIT } from "@/constants/responsiveness";

Breakpoints

Prefix Min Width
(none) 0px (mobile)
md: 768px
lg: 1024px
xl: 1280px

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts8mo4 checks · Risk SAFE
  • Gen Agent Trust Hub8mo

    This skill provides a comprehensive set of architectural guidelines and coding standards for developing the Opik React frontend. It promotes industry-standard best practices, such as using Zod for form validation and TanStack Query for data fetching, and contains no security vulnerabilities or malicious patterns.

  • Socket8mo

    No alerts

  • Snyk8mo

    Risk: LOW · No issues

  • Runlayer8mo

    7 files scanned · No issues

Signed by skilld at 9b3d88e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago

README badge

README badge for comet-ml/opik/opik-frontend