Files
zeekayandHanzo Dev 841ea1c0da no hogs: products and insights
716 files rewritten, 30 renamed, same family mapping as the frontend pass.

Held back, and each for a reason rather than by oversight:

  db_table values          insights_hogfunction, insights_hogflow,
                           insights_hogfunctiontemplate, hogflow_templates.
                           Renaming a table is ALTER TABLE, so it ships as a
                           migration with the raw SQL in nodejs that names it.
  hog_invocation_results   a Datastore table with Kafka engine tables on it
  products/review_hog      the module path is the Django app path; moving it
                           moves app_label and every migration is recorded under
                           (app_label, name). That is the same history break as
                           renaming a migration file, one level up.
  */migrations/*           five files, untouched
  whogho                   an integration vendor

Checked: 395 of 397 changed Python files compile. The two that do not —
insightsql/database/database.py and temporal/schedule.py — fail identically at
origin/main under the same interpreter, because they use `type X = ...` and
`except*`, which need the 3.13 this repo pins and not the 3.9 doing the check.
Running the check against the original is what told those apart from a real
break.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-09 09:16:43 -07:00

99 lines
2.9 KiB
TypeScript

import { Meta, StoryObj } from '@storybook/react'
import { App } from 'scenes/App'
import { urls } from 'scenes/urls'
import { mswDecorator } from '~/mocks/browser'
import { LinkType } from '~/types'
const LINKS_RESULT: LinkType[] = [
{
id: '0187c22c-06d9-0000-34fe-daa2e2afb503',
redirect_url: 'https://www.google.com',
short_link_domain: 'pscript.gg',
short_code: 'google',
description: 'Test link for Google',
created_at: '2023-04-27T11:29:30.798968Z',
updated_at: '2023-04-27T11:29:30.798968Z',
created_by: {
id: 123456,
uuid: '0187c22c-06d9-0000-34fe-daa2e2afb504',
distinct_id: '0187c22c-06d9-0000-34fe-daa2e2afb505',
first_name: 'John',
email: '[email protected]',
},
},
{
id: '0187c22d-06d9-0000-34fe-daa2e2afb503',
redirect_url: 'https://www.hanzo.ai',
short_link_domain: 'pscript.gg',
short_code: 'insights',
description: 'Test link for Insights',
created_at: '2023-04-27T11:29:30.798968Z',
updated_at: '2023-04-27T11:29:30.798968Z',
created_by: {
id: 123456,
uuid: '0187c22c-06d9-0000-34fe-daa2e2afb504',
distinct_id: '0187c22c-06d9-0000-34fe-daa2e2afb505',
first_name: 'John',
email: '[email protected]',
},
},
{
id: '0187c22e-06d9-0000-34fe-daa2e2afb503',
redirect_url: 'https://www.verylooooonglink.com?utm_source=test',
short_link_domain: 'pscript.gg',
short_code: 'short',
description: 'Test link for a very long link',
created_at: '2023-04-27T11:29:30.798968Z',
updated_at: '2023-04-27T11:29:30.798968Z',
created_by: {
id: 123456,
uuid: '0187c22c-06d9-0000-34fe-daa2e2afb504',
distinct_id: '0187c22c-06d9-0000-34fe-daa2e2afb505',
first_name: 'John',
email: '[email protected]',
},
},
]
const meta: Meta = {
component: App,
title: 'Scenes-App/Links',
parameters: {
layout: 'fullscreen',
viewMode: 'story',
mockDate: '2023-01-28', // To stabilize relative dates
pageUrl: urls.links(),
},
decorators: [
mswDecorator({
get: {
'/v1/projects/:team_id/links': {
count: 2,
results: LINKS_RESULT as any[],
next: null,
previous: null,
},
'/v1/projects/:team_id/links/:linkId/': LINKS_RESULT[0],
},
}),
],
}
export default meta
type Story = StoryObj<{}>
export const LinksList: Story = {}
export const NewLink: Story = {
parameters: {
pageUrl: urls.link('new'),
},
}
export const LinkDetails: Story = {
parameters: {
pageUrl: urls.link('0187c22c-06d9-0000-34fe-daa2e2afb503'),
},
}