From a1de04e8a11fc939640bf142a514c909488553df Mon Sep 17 00:00:00 2001 From: Charles Francoise Date: Thu, 10 Feb 2022 16:50:29 +0100 Subject: [PATCH 01/13] add logo SVG --- src/icons/clear.svg | 6 +++++- src/icons/index.ts | 1 + src/icons/level-crossing.svg | 9 +++++++++ src/icons/plus.svg | 5 ++++- 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 src/icons/level-crossing.svg diff --git a/src/icons/clear.svg b/src/icons/clear.svg index 5f1267d7..84aaef85 100644 --- a/src/icons/clear.svg +++ b/src/icons/clear.svg @@ -1 +1,5 @@ - \ No newline at end of file + + + + \ No newline at end of file diff --git a/src/icons/index.ts b/src/icons/index.ts index 7ce53b99..75e4c55c 100644 --- a/src/icons/index.ts +++ b/src/icons/index.ts @@ -1,2 +1,3 @@ export { default as Plus } from './plus.svg' export { default as Clear } from './clear.svg' +export { default as LevelCrossing } from './level-crossing.svg' diff --git a/src/icons/level-crossing.svg b/src/icons/level-crossing.svg new file mode 100644 index 00000000..6cc7c4a1 --- /dev/null +++ b/src/icons/level-crossing.svg @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file diff --git a/src/icons/plus.svg b/src/icons/plus.svg index 93b8cea7..6a7811e8 100644 --- a/src/icons/plus.svg +++ b/src/icons/plus.svg @@ -1 +1,4 @@ - \ No newline at end of file + + + + \ No newline at end of file From 24a2de82a910c1b7e2295fd51f59ecb26f12b7ac Mon Sep 17 00:00:00 2001 From: Charles Francoise Date: Thu, 10 Feb 2022 17:36:11 +0100 Subject: [PATCH 02/13] add welcome interface --- src/panel/Main.tsx | 6 ++++-- src/panel/Sidebar.tsx | 2 +- src/panel/Welcome.tsx | 24 ++++++++++++++++++++++++ src/panel/components/List.tsx | 2 +- 4 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 src/panel/Welcome.tsx diff --git a/src/panel/Main.tsx b/src/panel/Main.tsx index 362e3cbf..4bebb09d 100644 --- a/src/panel/Main.tsx +++ b/src/panel/Main.tsx @@ -1,12 +1,14 @@ import * as React from 'react' +import Welcome from './Welcome' + interface Props { className?: string } const Main = ({ className }: Props) => ( -
- Hello World! +
+
) diff --git a/src/panel/Sidebar.tsx b/src/panel/Sidebar.tsx index 80daf133..b954b135 100644 --- a/src/panel/Sidebar.tsx +++ b/src/panel/Sidebar.tsx @@ -10,7 +10,7 @@ interface Props { requests: Intercept.Request[] } -const Sidebar = ({ className, requests }: Props) => ( +const Sidebar = ({ className = '', requests }: Props) => ( ) diff --git a/src/panel/Welcome.tsx b/src/panel/Welcome.tsx index 3b890d53..753a16ce 100644 --- a/src/panel/Welcome.tsx +++ b/src/panel/Welcome.tsx @@ -16,7 +16,7 @@ const Welcome = ({ className = '' }: Props) => (
Welcome to Interceptor
+
@@ -117,10 +139,32 @@ exports[`[App] should update after callback 1`] = `
- Hello World! +
+
+ +
+
+ Welcome to Interceptor +
+ +
diff --git a/src/panel/__tests__/__snapshots__/InterceptList.tsx.snap b/src/panel/__tests__/__snapshots__/InterceptList.tsx.snap index dbfbffcc..5afcf5fc 100644 --- a/src/panel/__tests__/__snapshots__/InterceptList.tsx.snap +++ b/src/panel/__tests__/__snapshots__/InterceptList.tsx.snap @@ -3,7 +3,7 @@ exports[`[InterceptList] should match empty snapshot 1`] = `
diff --git a/src/panel/__tests__/__snapshots__/RequestList.tsx.snap b/src/panel/__tests__/__snapshots__/RequestList.tsx.snap index 6343ed26..c8053800 100644 --- a/src/panel/__tests__/__snapshots__/RequestList.tsx.snap +++ b/src/panel/__tests__/__snapshots__/RequestList.tsx.snap @@ -3,7 +3,7 @@ exports[`[RequestList] should match empty snapshot 1`] = `
+
+
+`; + exports[`[Welcome] should match empty snapshot 1`] = `