Skip to content

feat: ratelimit logs#2866

Merged
chronark merged 13 commits intomainfrom
feat/ratelimit-logs
Feb 5, 2025
Merged

feat: ratelimit logs#2866
chronark merged 13 commits intomainfrom
feat/ratelimit-logs

Conversation

@ogzhanolguncu
Copy link
Contributor

@ogzhanolguncu ogzhanolguncu commented Feb 4, 2025

What does this PR do?

Fixes # (issue)

If there is not an issue for this, please create one first. This is used to tracking purposes and also helps use understand why this PR exists

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • Enhancement (small improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Test A
  • Test B

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Read Contributing Guide
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand areas
  • Ran pnpm build
  • Ran pnpm fmt
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the Unkey Docs if changes were necessary

Summary by CodeRabbit

  • New Features

    • Introduced a new LogsChartError component to display error messages for log retrieval failures.
    • Added a LogsChartLoading component to show loading animations while fetching log data.
    • Implemented a custom hook, useFetchRatelimitTimeseries, for fetching and formatting timeseries data related to rate limits.
    • Added a RatelimitLogsChart component to visualize rate limit logs in a bar chart format.
    • Introduced a DatetimePopover for selecting time ranges with predefined options.
    • Added a LogsSearch component for searching logs using AI, enhancing filtering capabilities.
    • Introduced a FilterCheckbox component for customizable checkbox filtering.
    • Added a FiltersPopover for managing filter options in a user-friendly interface.
    • Implemented a LogsLiveSwitch component for toggling between live and historical log views.
    • Added a LogsRefresh component for refreshing logs with a button interface.
    • Introduced a LogsFilters component to manage and display active filters.
  • Bug Fixes

    • Improved error handling and validation for log queries and filter applications.
  • UI Enhancements

    • Enhanced filter controls with new components for checkbox filtering and suggestions.
    • Updated the layout and styling of the logs dashboard for a more user-friendly experience.
    • Refined the overall structure of the logs table and details view for better accessibility and usability.

@changeset-bot
Copy link

changeset-bot bot commented Feb 4, 2025

⚠️ No Changeset found

Latest commit: ab0abf6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Feb 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 5, 2025 1:11pm
engineering ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 5, 2025 1:11pm
play ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 5, 2025 1:11pm
www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 5, 2025 1:11pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 4, 2025

📝 Walkthrough

Walkthrough

This pull request makes extensive improvements to the rate limit logs feature. Function signatures were updated to accept additional log types, and numerous new components, hooks, schemas, and utility functions were added. The changes enhance charts, controls, filtering, detailed log views, TRPC router methods, and internal data querying. Legacy components were removed, and UI elements such as navbar spacing, table borders, and icons were refined. In addition, new unit tests have been introduced to improve the reliability of filter and logs query functionalities.

Changes

File(s) Change Summary
apps/dashboard/app/(app)/logs/utils.ts Updated function signatures (extractResponseField, getRequestHeader) to accept RatelimitLog in addition to Log.
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/charts/... Added new chart components: LogsChartError, LogsChartLoading, and RatelimitLogsChart for error, loading, and bar chart visualizations using recharts.
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/charts/hooks/use-fetch-timeseries.ts
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/hooks/use-logs-query.ts (and corresponding tests)
Introduced new hooks for fetching timeseries data and managing historical/realtime logs queries.
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/controls/... Added multiple control components including RatelimitLogsControlCloud, LogsLiveSwitch, LogsRefresh, LogsSearch, and RatelimitLogsControls for enhanced log filtering, live toggling, search, and control cloud functionality.
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/controls/components/logs-datetime/...
.../logs-filters/...
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/hooks/use-filters.ts (and tests)
Introduced interactive datetime filter popovers, suggestion components, and new filtering UI elements with corresponding schema and TypeScript types.
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/... Added new table and log detail components: LogFooter, LogHeader, LogMetaSection, LogSection, RequestResponseDetails, RatelimitLogDetails, ResizablePanel, and LogsTableAction; also added utility functions for formatting and schema definitions for log queries.
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/context/logs.tsx
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/page.tsx
apps/dashboard/app/(app)/ratelimits/[namespaceId]/page.tsx
Added new logs context and refactored page components to use LogsClient and LogsContainerPage, streamlining logs display and state management.
apps/dashboard/lib/trpc/routers/... Added new TRPC procedures and methods for ratelimit logs including queryRatelimitLogs, queryRatelimitTimeseries, queryDistinctIdentifiers, and ratelimitLlmSearch; updated router structure for logs.
apps/dashboard/ratelimits/card.tsx
apps/dashboard/components/dashboard/navbar.tsx
apps/dashboard/components/virtual-table/index.tsx
apps/dashboard/hooks/use-keyboard-shortcut.tsx
Updated UI elements: refined card component data handling, adjusted navbar padding, updated table header border style, and introduced a custom keyboard shortcut hook.
internal/clickhouse/src/index.ts
internal/clickhouse/src/ratelimits.ts
Restructured ratelimits into a nested timeseries property; refactored timeseries query functions using a common higher-order function; added new schema types for timeseries data.
internal/icons/src/icons/...
internal/icons/src/index.ts
Added new icon components: Clipboard, ClipboardCheck, Dots, and PenWriting3 with corresponding exports.
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/filters.schema.ts
.../filters.type.ts
Introduced new Zod schemas and TypeScript types for log filters to standardize filter validation and transformation.
Removed Files:
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/filter.tsx
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/menu.tsx
Removed legacy filter component and identifier menu, streamlining the filtering functionality.

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant LC as LogsClient
    participant Q as useRatelimitLogsQuery
    participant TR as TRPC Router
    participant CH as ClickHouse

    U->>LC: Opens logs page
    LC->>Q: Request historical & real-time logs with filters
    Q->>TR: Forward query parameters
    TR->>CH: Query ClickHouse for logs data
    CH-->>TR: Return logs data
    TR-->>Q: Return processed logs
    Q-->>LC: Supply logs data
    LC->>U: Render logs table and details
Loading

Possibly related PRs

Suggested labels

🕹️ oss.gg, Improvement

Suggested reviewers

  • mcstepp
  • chronark
  • perkinsjr

Tip

🌐 Web search-backed reviews and chat
  • We have enabled web search-based reviews and chat for all users. This feature allows CodeRabbit to access the latest documentation and information on the web.
  • You can disable this feature by setting web_search: false in the knowledge_base settings.
  • Please share any feedback in the Discord discussion.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2025

Thank you for following the naming conventions for pull request titles! 🙏

@ogzhanolguncu ogzhanolguncu changed the title Feat/ratelimit logs feat: ratelimit logs Feb 4, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🧹 Nitpick comments (3)
internal/clickhouse/src/ratelimits.ts (2)

137-145: LGTM! Consider using Object.fromEntries for parameter reduction.

The spread operator usage is safe here, but consider using Object.fromEntries for a more explicit transformation:

-      ...(args.identifiers?.reduce(
-        (acc, i, index) => ({
-          // biome-ignore lint/performance/noAccumulatingSpread: it's okay here
-          ...acc,
-          [`identifierValue_${index}`]: i.value,
-        }),
-        {},
-      ) ?? {}),
+      ...(args.identifiers
+        ? Object.fromEntries(
+            args.identifiers.map((i, index) => [
+              `identifierValue_${index}`,
+              i.value,
+            ])
+          )
+        : {}),

313-314: Consider adding an index for the JOIN condition.

The LEFT JOIN between raw_ratelimits_v1 and raw_api_requests_v1 on request_id might benefit from an index.

ALTER TABLE metrics.raw_api_requests_v1 ADD INDEX idx_request_id request_id TYPE minmax GRANULARITY 1;
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/hooks/use-filters.ts (1)

12-35: Consider supporting partial hours or fractional durations.
Your parseAsRelativeTime function enforces the format (\d+[hdm])+, which excludes partial hours (e.g., 2.5h). If this is intentional, it’s fine; otherwise, consider allowing fractional or more flexible time notations.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between edb9254 and 9a96d6a.

📒 Files selected for processing (3)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/control-cloud/index.tsx (1 hunks)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/hooks/use-filters.ts (1 hunks)
  • internal/clickhouse/src/ratelimits.ts (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: Test Packages / Test ./internal/clickhouse
  • GitHub Check: Test API / API Test Local
  • GitHub Check: Test Agent Local / test_agent_local
  • GitHub Check: Build / Build
  • GitHub Check: autofix
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (4)
internal/clickhouse/src/ratelimits.ts (1)

221-239: Review sensitive data exposure in response schema.

The schema includes potentially sensitive information such as request headers, request body, and response body. Consider:

  1. Implementing field-level access control
  2. Masking sensitive data in headers and body
  3. Adding logging for sensitive data access
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/hooks/use-filters.ts (1)

37-64: Confirm whether 'startsWith' or 'endsWith' operators have been intentionally removed.
Previously, there were references to 'startsWith' and 'endsWith' operators. This parser only allows "is" and "contains". Please ensure these two are no longer needed in your filter schema or reintroduce them here if necessary.

apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/control-cloud/index.tsx (2)

32-37: Verify that numeric timestamps are in milliseconds.
The format function from date-fns expects a Unix timestamp in milliseconds if you’re passing a numeric value. Double-check that the value is indeed in ms; otherwise, the displayed date/time will be incorrect.


72-110: Implementation looks solid!
Your ControlPill component is clearly structured, handles focus states well, and prevents default backspace/delete navigation.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (3)
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/controls/components/logs-refresh.tsx (1)

24-45: Add error handling for query invalidation.

While the refresh logic is well-implemented, consider adding error handling for the query invalidation calls to gracefully handle potential failures.

 const handleSwitch = () => {
   if (isLoading) {
     return;
   }

   const isLiveBefore = Boolean(isLive);
   setIsLoading(true);
   toggleLive(false);
-  ratelimit.logs.query.invalidate();
-  ratelimit.logs.queryRatelimitTimeseries.invalidate();
+  Promise.all([
+    ratelimit.logs.query.invalidate(),
+    ratelimit.logs.queryRatelimitTimeseries.invalidate(),
+  ]).catch((error) => {
+    console.error('Failed to invalidate queries:', error);
+    // Optionally show a user-friendly error message
+  });

   if (refreshTimeout) {
     clearTimeout(refreshTimeout);
   }
   const timeout = setTimeout(() => {
     setIsLoading(false);
     if (isLiveBefore) {
       toggleLive(true);
     }
   }, REFRESH_TIMEOUT_MS);
   setRefreshTimeout(timeout);
 };
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/log-details/components/log-footer.tsx (1)

53-53: Consider using optional chaining for consistency.

For consistency with other null checks in the codebase, consider using optional chaining.

-          content: getRequestHeader(log, "user-agent") ?? "",
+          content: getRequestHeader(log, "user-agent")?.toString() ?? "",
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/controls/components/logs-filters/components/identifiers-filter.tsx (1)

21-30: Memoize the select callback for better performance.

The select callback in the TRPC query options could be memoized to prevent unnecessary re-renders.

+const selectIdentifiers = useCallback((identifiers: string[] | undefined) => {
+  return identifiers
+    ? identifiers.map((identifier, index) => ({
+        id: index + 1,
+        path: identifier,
+        checked: false,
+      }))
+    : [];
+}, []);

{
  select(identifiers) {
-    return identifiers
-      ? identifiers.map((identifier, index) => ({
-          id: index + 1,
-          path: identifier,
-          checked: false,
-        }))
-      : [];
+    return selectIdentifiers(identifiers);
  },
}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9a96d6a and ab0abf6.

📒 Files selected for processing (8)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/controls/components/logs-filters/components/identifiers-filter.tsx (1 hunks)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/controls/components/logs-refresh.tsx (1 hunks)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/log-details/components/log-footer.tsx (1 hunks)
  • apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/log-details/components/log-meta.tsx (1 hunks)
  • apps/dashboard/lib/trpc/routers/logs/query-logs/utils.ts (1 hunks)
  • apps/dashboard/lib/trpc/routers/logs/query-timeseries/utils.ts (1 hunks)
  • apps/dashboard/lib/trpc/routers/logs/utils/getTimestampFromRelative.ts (0 hunks)
  • apps/dashboard/lib/utils.ts (2 hunks)
💤 Files with no reviewable changes (1)
  • apps/dashboard/lib/trpc/routers/logs/utils/getTimestampFromRelative.ts
✅ Files skipped from review due to trivial changes (2)
  • apps/dashboard/lib/trpc/routers/logs/query-logs/utils.ts
  • apps/dashboard/lib/trpc/routers/logs/query-timeseries/utils.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/dashboard/lib/utils.ts
🧰 Additional context used
📓 Learnings (1)
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/log-details/components/log-footer.tsx (1)
Learnt from: ogzhanolguncu
PR: unkeyed/unkey#2866
File: apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/log-details/components/log-footer.tsx:85-98
Timestamp: 2025-02-05T12:56:44.873Z
Learning: The RequestResponseDetails component in the ratelimit logs UI already handles empty content cases by preventing rendering when content is empty, so no additional empty state handling is needed in the parent components.
🪛 Biome (1.9.4)
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/controls/components/logs-filters/components/identifiers-filter.tsx

[error] 124-137: A form label must be associated with an input.

Consider adding a for or htmlFor attribute to the label element or moving the input element to inside the label element.

(lint/a11y/noLabelWithoutControl)


[error] 144-156: A form label must be associated with an input.

Consider adding a for or htmlFor attribute to the label element or moving the input element to inside the label element.

(lint/a11y/noLabelWithoutControl)

⏰ Context from checks skipped due to timeout of 90000ms (12)
  • GitHub Check: Test Packages / Test ./packages/rbac
  • GitHub Check: Test Packages / Test ./packages/hono
  • GitHub Check: Test Packages / Test ./packages/cache
  • GitHub Check: Test Packages / Test ./internal/clickhouse
  • GitHub Check: Test Packages / Test ./internal/resend
  • GitHub Check: Test Packages / Test ./internal/keys
  • GitHub Check: Test Packages / Test ./internal/id
  • GitHub Check: Test API / API Test Local
  • GitHub Check: Test Agent Local / test_agent_local
  • GitHub Check: Build / Build
  • GitHub Check: autofix
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (10)
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/controls/components/logs-refresh.tsx (4)

1-11: LGTM! Clean imports and well-defined constants.

The imports are well-organized, and the timeout duration is properly extracted into a constant.


12-18: LGTM! Proper state management with race condition prevention.

The component correctly implements state management using hooks and includes timeout tracking to prevent race conditions.


19-22: Consider using a modified key combination for the refresh shortcut.

The current implementation using a plain 'r' key could conflict with:

  1. Browser's refresh shortcut (Ctrl+R/Cmd+R)
  2. Text input fields where users might type 'r'

Consider using a modifier key combination (e.g., Alt+R or Shift+R) to avoid these conflicts.


47-64: LGTM! Well-implemented UI with good user feedback.

The button implementation includes:

  • Proper loading state visualization
  • Clear disabled state handling
  • Good user feedback through animation
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/log-details/components/log-meta.tsx (3)

14-15: Remove console.error and improve error handling.

Production code should not contain console.error statements. Consider implementing proper error tracking.

-        console.error("Failed to copy to clipboard:", error);
         toast.error("Failed to copy to clipboard");

24-24: LGTM! Good empty content handling.

The fallback to "" when content is null provides good user feedback.


25-32: LGTM! Good accessibility implementation.

The copy button implementation is well done with:

  • Proper aria-label for screen readers
  • Hover state for better UX
  • Clear visual feedback with the Copy icon
apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/table/log-details/components/log-footer.tsx (2)

61-63: LGTM! Good null handling for outcome.

The default outcome handling is well implemented with a clear default value.


85-98: Skip commenting on empty permissions handling.

Based on the retrieved learning, the RequestResponseDetails component already handles empty content cases internally, so no additional empty state handling is needed here.

apps/dashboard/app/(app)/ratelimits/[namespaceId]/logs/components/controls/components/logs-filters/components/identifiers-filter.tsx (1)

124-137: Fix accessibility issues with form labels.

The labels need proper association with their checkboxes for better accessibility.

 <label
+  htmlFor="select-all"
   className="flex items-center gap-4 px-4 pb-2 pt-4 cursor-pointer"
-  aria-checked={checkboxes.every((checkbox) => checkbox.checked)}
   onKeyDown={handleKeyDown}
 >
   <Checkbox
+    id="select-all"
     checked={checkboxes.every((checkbox) => checkbox.checked)}
     className="size-4 rounded border-gray-4 [&_svg]:size-3"
     onClick={handleSelectAll}
   />

 {checkboxes.map((checkbox, index) => (
   <label
     key={checkbox.id}
+    htmlFor={`checkbox-${checkbox.id}`}
     className="flex gap-[18px] items-center py-1 cursor-pointer"
-    aria-checked={checkbox.checked}
     onKeyDown={handleKeyDown}
   >
     <Checkbox
+      id={`checkbox-${checkbox.id}`}
       checked={checkbox.checked}
       className="size-4 rounded border-gray-4 [&_svg]:size-3"
       onClick={() => handleCheckboxChange(index)}
     />

Also applies to: 144-156

🧰 Tools
🪛 Biome (1.9.4)

[error] 124-137: A form label must be associated with an input.

Consider adding a for or htmlFor attribute to the label element or moving the input element to inside the label element.

(lint/a11y/noLabelWithoutControl)

@chronark chronark added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit 990d7d1 Feb 5, 2025
29 checks passed
@chronark chronark deleted the feat/ratelimit-logs branch February 5, 2025 14:47
This was referenced Feb 7, 2025
@coderabbitai coderabbitai bot mentioned this pull request Feb 26, 2025
18 tasks
This was referenced Mar 10, 2025
@coderabbitai coderabbitai bot mentioned this pull request Mar 28, 2025
18 tasks
@coderabbitai coderabbitai bot mentioned this pull request Apr 24, 2025
18 tasks
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.

2 participants