From 07ff1ff02ba114663849139279ffa1b32c672955 Mon Sep 17 00:00:00 2001 From: Jess Divers Date: Thu, 5 Dec 2024 16:42:03 -0700 Subject: [PATCH 1/9] feat: filtersdropdown scaffolding --- src/lib-components/FiltersDropdown.vue | 100 ++++++++++++++++++++++ src/stories/FiltersDropdown.spec.js | 10 +++ src/stories/FiltersDropdown.stories.js | 15 ++++ src/styles/default/_filters-dropdown.scss | 3 + src/styles/ftva/_filters-dropdown.scss | 3 + 5 files changed, 131 insertions(+) create mode 100644 src/lib-components/FiltersDropdown.vue create mode 100644 src/stories/FiltersDropdown.spec.js create mode 100644 src/stories/FiltersDropdown.stories.js create mode 100644 src/styles/default/_filters-dropdown.scss create mode 100644 src/styles/ftva/_filters-dropdown.scss diff --git a/src/lib-components/FiltersDropdown.vue b/src/lib-components/FiltersDropdown.vue new file mode 100644 index 000000000..1757d7cf8 --- /dev/null +++ b/src/lib-components/FiltersDropdown.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/stories/FiltersDropdown.spec.js b/src/stories/FiltersDropdown.spec.js new file mode 100644 index 000000000..5c6d59811 --- /dev/null +++ b/src/stories/FiltersDropdown.spec.js @@ -0,0 +1,10 @@ +describe('FiltersDropdown', () => { + it('Default', () => { + cy.visit( + '/iframe.html?id=filters-dropdown--default&args=&viewMode=story' + ) + cy.get('.filters-dropdown').should('exist') + + cy.percySnapshot('FiltersDropdown: Default') + }) +}) \ No newline at end of file diff --git a/src/stories/FiltersDropdown.stories.js b/src/stories/FiltersDropdown.stories.js new file mode 100644 index 000000000..b5b435fcc --- /dev/null +++ b/src/stories/FiltersDropdown.stories.js @@ -0,0 +1,15 @@ +import FiltersDropdown from '@/lib-components/FiltersDropdown.vue' + +export default { + title: 'Filters Dropdown', + component: FiltersDropdown, +} + +// MOCK DATA + +export function Default() { + return { + components: { FiltersDropdown }, + template: '', + } +} diff --git a/src/styles/default/_filters-dropdown.scss b/src/styles/default/_filters-dropdown.scss new file mode 100644 index 000000000..5da2087a1 --- /dev/null +++ b/src/styles/default/_filters-dropdown.scss @@ -0,0 +1,3 @@ +.filters-dropdown { + // styles +} \ No newline at end of file diff --git a/src/styles/ftva/_filters-dropdown.scss b/src/styles/ftva/_filters-dropdown.scss new file mode 100644 index 000000000..0d7cf8eab --- /dev/null +++ b/src/styles/ftva/_filters-dropdown.scss @@ -0,0 +1,3 @@ +.ftva.filters-dropdown { + // styles +} \ No newline at end of file From f9287b6b617189de45a433a0b48cf2389376bceb Mon Sep 17 00:00:00 2001 From: Jess Divers Date: Fri, 6 Dec 2024 16:17:50 -0700 Subject: [PATCH 2/9] feat: filters component and stories --- src/lib-components/FiltersDropdown.vue | 123 ++++++++++++++-------- src/stories/FiltersDropdown.spec.js | 2 +- src/stories/FiltersDropdown.stories.js | 50 ++++++++- src/styles/default/_filters-dropdown.scss | 41 +++++++- src/styles/ftva/_filters-dropdown.scss | 9 +- 5 files changed, 175 insertions(+), 50 deletions(-) diff --git a/src/lib-components/FiltersDropdown.vue b/src/lib-components/FiltersDropdown.vue index 1757d7cf8..9f790bae8 100644 --- a/src/lib-components/FiltersDropdown.vue +++ b/src/lib-components/FiltersDropdown.vue @@ -1,95 +1,124 @@