Skip to content

Commit

Permalink
Merge pull request #959 from evamillan/upgrade-storybook
Browse files Browse the repository at this point in the history
[ui] Bump Storybook to 8.6.3
  • Loading branch information
sduenas authored Mar 11, 2025
2 parents 778c939 + e5c4275 commit 9838391
Show file tree
Hide file tree
Showing 9 changed files with 4,896 additions and 11,118 deletions.
8 changes: 4 additions & 4 deletions ui/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
preset: "@vue/cli-plugin-unit-jest",
transformIgnorePatterns: [
"/node_modules/(?!(@storybook/.*\\.vue$)|(vuetify)|(@mdi))",
"/node_modules/(?!(@storybook/.*)|(storybook/.*)|(vuetify)|(@mdi))",
],
transform: {
"^.+\\.(ts|js|mjs)x?$": "babel-jest",
"^.+\\.(ts|js|mjs|cjs)x?$": "babel-jest",
},
moduleNameMapper: {
"^vuetify/components$":
Expand All @@ -18,8 +18,8 @@ module.exports = {
"<rootDir>/node_modules/vuetify/lib/iconsets/fa-svg.mjs",
"^vuetify/iconsets/mdi":
"<rootDir>/node_modules/vuetify/lib/iconsets/mdi.mjs",
"^@storybook/vue3/preview":
"<rootDir>/node_modules/@storybook/vue3/dist/entry-preview.js",
"^@storybook/core/(.*)": "<rootDir>/node_modules/@storybook/core/dist/$1",
"^storybook/internal/(.*)": "<rootDir>/node_modules/storybook/core/$1",
},
setupFiles: ["./tests/setup.js"],
};
12 changes: 6 additions & 6 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"@fortawesome/free-regular-svg-icons": "^6.7.2",
"@fortawesome/vue-fontawesome": "^3.0.8",
"@mdi/font": "^5.1.45",
"@storybook/addon-essentials": "^8.0.1",
"@storybook/addon-links": "^8.0.1",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/vue3": "^8.0.1",
"@storybook/vue3-webpack5": "^8.0.1",
"@storybook/addon-essentials": "^8.6.3",
"@storybook/addon-links": "^8.6.3",
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
"@storybook/vue3": "^8.6.3",
"@storybook/vue3-webpack5": "^8.6.3",
"@testing-library/vue": "^8.0.3",
"@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-eslint": "~5.0.8",
Expand All @@ -64,7 +64,7 @@
"prettier": "^2.4.1",
"sass": "1.26.5",
"sass-loader": "^10.4.1",
"storybook": "^8.0.1",
"storybook": "^8.6.3",
"vue-loader": "^16.4.1",
"webpack-plugin-vuetify": "^3.0.3"
},
Expand Down
6 changes: 1 addition & 5 deletions ui/src/plugins/vuetify.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import "@mdi/font/css/materialdesignicons.css";
import "vuetify/styles";
import { createVuetify } from "vuetify";
import { VConfirmEdit } from "vuetify/labs/VConfirmEdit";
import * as components from "vuetify/components";
import * as directives from "vuetify/directives";
import { fa } from "vuetify/iconsets/fa-svg";
Expand All @@ -15,10 +14,7 @@ const customAliases = {

export default createVuetify({
directives,
components: {
VConfirmEdit,
...components,
},
components,
icons: {
defaultSet: "mdi",
aliases: customAliases,
Expand Down
46 changes: 15 additions & 31 deletions ui/tests/unit/__snapshots__/individual.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports[`Individual Matches snapshot 1`] = `
class="v-col"
>
<div
class="v-list-item v-theme--light v-list-item--density-default v-list-item--variant-text pl-1 my-n4 v-list-item--three-line"
class="v-list-item v-theme--light v-list-item--density-default rounded-0 v-list-item--variant-text pl-1 my-n4 v-list-item--three-line"
>
<!---->
Expand Down Expand Up @@ -86,11 +86,10 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-controls="v-menu-1"
aria-expanded="false"
aria-haspopup="menu"
aria-owns="v-menu-1"
class="hide-icon"
targetref="[object Object]"
>
<span>
Expand Down Expand Up @@ -145,7 +144,6 @@ exports[`Individual Matches snapshot 1`] = `
aria-label="Mark as reviewed"
class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-small v-btn--variant-text mr-1"
data-testid="review-btn"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -179,7 +177,6 @@ exports[`Individual Matches snapshot 1`] = `
aria-describedby="v-tooltip-4"
aria-label="Mark as bot"
class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-small v-btn--variant-text mr-1"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -213,7 +210,6 @@ exports[`Individual Matches snapshot 1`] = `
aria-describedby="v-tooltip-6"
aria-label="Add to workspace"
class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-small v-btn--variant-text mr-1"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -247,7 +243,6 @@ exports[`Individual Matches snapshot 1`] = `
aria-describedby="v-tooltip-8"
aria-label="Lock"
class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-small v-btn--variant-text mr-1"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -278,12 +273,11 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-controls="v-menu-10"
aria-expanded="false"
aria-haspopup="menu"
aria-label="See more actions"
aria-owns="v-menu-10"
class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-small v-btn--variant-text"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -343,11 +337,10 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-controls="v-menu-12"
aria-expanded="false"
aria-haspopup="menu"
aria-owns="v-menu-12"
class="hide-icon"
targetref="[object Object]"
>
<span>
Expand Down Expand Up @@ -379,11 +372,10 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-controls="v-menu-13"
aria-expanded="false"
aria-haspopup="menu"
aria-owns="v-menu-13"
class="hide-icon"
targetref="[object Object]"
>
<span
class="font-italic"
Expand Down Expand Up @@ -415,11 +407,10 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-controls="v-menu-14"
aria-expanded="false"
aria-haspopup="menu"
aria-owns="v-menu-14"
class="hide-icon"
targetref="[object Object]"
>
<span
class="font-italic"
Expand Down Expand Up @@ -521,7 +512,7 @@ exports[`Individual Matches snapshot 1`] = `
<div
class="v-list-item v-theme--light v-list-item--density-default v-list-item--one-line v-list-item--variant-text"
class="v-list-item v-theme--light v-list-item--density-default v-list-item--one-line rounded-0 v-list-item--variant-text"
draggable="false"
>
Expand All @@ -541,7 +532,6 @@ exports[`Individual Matches snapshot 1`] = `
aria-describedby="v-tooltip-17"
aria-hidden="true"
class="mdi-git mdi v-icon notranslate v-theme--light v-icon--size-default"
targetref="[object Object]"
/>
<!--teleport start-->
Expand Down Expand Up @@ -594,7 +584,6 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-describedby="v-tooltip-19"
class="v-btn v-btn--icon v-theme--light v-btn--density-comfortable v-btn--size-small v-btn--variant-text"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -669,7 +658,6 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-describedby="v-tooltip-21"
class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-small v-btn--variant-text"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -723,7 +711,7 @@ exports[`Individual Matches snapshot 1`] = `
<div
class="v-list-item v-theme--light v-list-item--density-default v-list-item--one-line v-list-item--variant-text"
class="v-list-item v-theme--light v-list-item--density-default v-list-item--one-line rounded-0 v-list-item--variant-text"
draggable="false"
>
Expand All @@ -743,7 +731,6 @@ exports[`Individual Matches snapshot 1`] = `
aria-describedby="v-tooltip-25"
aria-hidden="true"
class="mdi-github mdi v-icon notranslate v-theme--light v-icon--size-default"
targetref="[object Object]"
/>
<!--teleport start-->
Expand Down Expand Up @@ -796,7 +783,6 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-describedby="v-tooltip-27"
class="v-btn v-btn--icon v-theme--light v-btn--density-comfortable v-btn--size-small v-btn--variant-text"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -881,7 +867,6 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-describedby="v-tooltip-29"
class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-small v-btn--variant-text"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -924,7 +909,7 @@ exports[`Individual Matches snapshot 1`] = `
</div>
</div>
<div
class="v-list-item v-theme--light v-list-item--density-default v-list-item--one-line v-list-item--variant-text"
class="v-list-item v-theme--light v-list-item--density-default v-list-item--one-line rounded-0 v-list-item--variant-text"
draggable="false"
>
Expand Down Expand Up @@ -992,7 +977,6 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-describedby="v-tooltip-35"
class="v-btn v-btn--icon v-theme--light v-btn--density-comfortable v-btn--size-small v-btn--variant-text"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -1073,7 +1057,6 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-describedby="v-tooltip-37"
class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-small v-btn--variant-text"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -1116,7 +1099,7 @@ exports[`Individual Matches snapshot 1`] = `
</div>
</div>
<div
class="v-list-item v-theme--light v-list-item--density-default v-list-item--one-line v-list-item--variant-text"
class="v-list-item v-theme--light v-list-item--density-default v-list-item--one-line rounded-0 v-list-item--variant-text"
draggable="false"
>
Expand Down Expand Up @@ -1184,7 +1167,6 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-describedby="v-tooltip-43"
class="v-btn v-btn--icon v-theme--light v-btn--density-comfortable v-btn--size-small v-btn--variant-text"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -1267,7 +1249,6 @@ exports[`Individual Matches snapshot 1`] = `
<button
aria-describedby="v-tooltip-45"
class="v-btn v-btn--icon v-theme--light v-btn--density-default v-btn--size-small v-btn--variant-text"
targetref="[object Object]"
type="button"
>
Expand Down Expand Up @@ -1327,12 +1308,15 @@ exports[`Individual Matches snapshot 1`] = `
aria-valuemin="0"
class="v-progress-linear v-theme--light v-locale--is-ltr"
role="progressbar"
style="top: 0px; height: 0px; --v-progress-linear-height: 2px; left: 50%; transform: translateX(-50%);"
style="top: 0px; height: 0px; --v-progress-linear-height: 2px;"
>
<!---->
<div
class="v-progress-linear__background"
style="width: 100%;"
/>
<div
class="v-progress-linear__buffer"
style="width: 0%;"
/>
<transition-stub
appear="false"
Expand Down
Loading

0 comments on commit 9838391

Please sign in to comment.