Home / Function/ handlePolicyNavigation() — supabase Function Reference

handlePolicyNavigation() — supabase Function Reference

Architecture documentation for the handlePolicyNavigation() function in table-row-link-actions.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  13254033_94eb_3354_dd46_b75225d801ad["handlePolicyNavigation()"]
  20b04eb3_e3fb_0099_b299_977cfb21eacb["TableRowLinkActions()"]
  20b04eb3_e3fb_0099_b299_977cfb21eacb -->|calls| 13254033_94eb_3354_dd46_b75225d801ad
  style 13254033_94eb_3354_dd46_b75225d801ad fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/design-system/registry/default/example/table-row-link-actions.tsx lines 27–37

const handlePolicyNavigation = (
  policyId: string,
  event: React.MouseEvent | React.KeyboardEvent
) => {
  const url = `/${policyId}`
  if (event.metaKey || event.ctrlKey) {
    // window.open(`${url}`, '_blank') Disabled for demo purposes
  } else {
    // router.push(url) Disabled for demo purposes
  }
}

Domain

Subdomains

Frequently Asked Questions

What does handlePolicyNavigation() do?
handlePolicyNavigation() is a function in the supabase codebase.
What calls handlePolicyNavigation()?
handlePolicyNavigation() is called by 1 function(s): TableRowLinkActions.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free