Skip to content

Commit a65c91c

Browse files
committed
Add Container and Header
1 parent 7fbb128 commit a65c91c

File tree

3 files changed

+64
-3
lines changed

3 files changed

+64
-3
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import * as React from "react";
2+
3+
import { Meta, StoryFn } from "@storybook/react";
4+
5+
import { MethodModeling as MethodModelingComponent } from "../../view/method-modeling/MethodModeling";
6+
export default {
7+
title: "Method Modeling / Method Modelin",
8+
component: MethodModelingComponent,
9+
} as Meta<typeof MethodModelingComponent>;
10+
11+
const Template: StoryFn<typeof MethodModelingComponent> = () => (
12+
<MethodModelingComponent />
13+
);
14+
15+
export const MethodUnmodeled = Template.bind({});
16+
MethodUnmodeled.args = {};
17+
18+
export const MethodModeled = Template.bind({});
19+
MethodModeled.args = {};
20+
21+
export const MethodSaved = Template.bind({});
22+
MethodSaved.args = {};
Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,35 @@
11
import * as React from "react";
2+
import { ModelingStatusIndicator } from "../data-extensions-editor/ModelingStatusIndicator";
3+
import { styled } from "styled-components";
4+
5+
const Container = styled.div`
6+
background-color: var(--vscode-peekViewResult-background);
7+
padding: 0.3rem;
8+
margin-bottom: 1rem;
9+
`;
10+
11+
const Title = styled.div`
12+
padding-bottom: 0.3rem;
13+
font-size: 1.2em;
14+
`;
15+
16+
const DependencyBox = styled.div`
17+
display: flex;
18+
justify-content: space-between;
19+
`;
20+
21+
const DependencyName = styled.span`
22+
font-family: var(--vscode-editor-font-family);
23+
`;
224

325
export const MethodModeling = (): JSX.Element => {
426
return (
5-
<>
6-
<p>Hello</p>
7-
</>
27+
<Container>
28+
<Title>API or Method</Title>
29+
<DependencyBox>
30+
<DependencyName>that.dependency.THENAME</DependencyName>
31+
<ModelingStatusIndicator status="unmodeled" />
32+
</DependencyBox>
33+
</Container>
834
);
935
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as React from "react";
2+
import { render as reactRender, screen } from "@testing-library/react";
3+
import { MethodModeling } from "../MethodModeling";
4+
5+
describe(MethodModeling.name, () => {
6+
const render = () => reactRender(<MethodModeling />);
7+
8+
it("renders data flow paths", () => {
9+
render();
10+
11+
expect(screen.getByText("that.dependency.THENAME")).toBeInTheDocument();
12+
});
13+
});

0 commit comments

Comments
 (0)