-
Notifications
You must be signed in to change notification settings - Fork 86
Feature/knative utility tests refactored #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
24fb6cd
f599378
2f88a58
81fbf92
de636b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import { Meta, StoryFn } from '@storybook/react/types-6-0'; | ||
illume marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| import React from 'react'; | ||
| import { TestContext } from '@kinvolk/headlamp-plugin/lib/testLib'; | ||
| import AIAssistantHeader from './AIAssistantHeader'; | ||
|
|
||
| export default { | ||
| title: 'components/assistant/AIAssistantHeader', | ||
| component: AIAssistantHeader, | ||
| decorators: [ | ||
| (Story) => ( | ||
| <TestContext> | ||
| <Story /> | ||
| </TestContext> | ||
| ), | ||
| ], | ||
| } as Meta; | ||
|
|
||
| const Template: StoryFn<typeof AIAssistantHeader> = (args) => <AIAssistantHeader {...args} />; | ||
|
|
||
| export const Default = Template.bind({}); | ||
| Default.args = { | ||
| isTestMode: false, | ||
| disableSettingsButton: false, | ||
| onClose: () => console.log('Close clicked'), | ||
| }; | ||
|
|
||
| export const TestMode = Template.bind({}); | ||
| TestMode.args = { | ||
| isTestMode: true, | ||
| disableSettingsButton: false, | ||
| onClose: () => console.log('Close clicked'), | ||
| }; | ||
|
|
||
| export const DisabledSettings = Template.bind({}); | ||
| DisabledSettings.args = { | ||
| isTestMode: false, | ||
| disableSettingsButton: true, | ||
| onClose: () => console.log('Close clicked'), | ||
| }; | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,85 @@ | ||||||
| import { Meta, StoryFn } from '@storybook/react/types-6-0'; | ||||||
|
||||||
| import { Meta, StoryFn } from '@storybook/react/types-6-0'; | |
| import { Meta, StoryFn } from '@storybook/react'; |
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Apache 2.0 license header. All source files in this repository should include the Apache 2.0 license header with 2025 copyright year, as established in other source files throughout the codebase.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,124 @@ | ||||||
| import { Meta, StoryFn } from '@storybook/react/types-6-0'; | ||||||
|
||||||
| import { Meta, StoryFn } from '@storybook/react/types-6-0'; | |
| import { Meta, StoryFn } from '@storybook/react'; |
Copilot
AI
Feb 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Apache 2.0 license header. All source files in this repository should include the Apache 2.0 license header with 2025 copyright year, as established in other source files throughout the codebase.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,68 @@ | ||||||
| import { Meta, StoryFn } from '@storybook/react/types-6-0'; | ||||||
|
||||||
| import { Meta, StoryFn } from '@storybook/react/types-6-0'; | |
| import { Meta, StoryFn } from '@storybook/react'; |
Uh oh!
There was an error while loading. Please reload this page.