This PR includes code in Flexible/BannerFeatured.vue because the
Run CI Suite / vite (pull_request) was failing with this error:
src/lib-components/Flexible/BannerFeatured.vue(83,20):
error TS2345:
Argument of type '{ title: string; to: string; }'
is not assignable to parameter of type 'LocationItemType'.
Type '{ title: string; to: string; }' is missing the following properties from type 'LocationItemType': id, image, locationType, uri, and 7 more.
ELIFECYCLE Command failed with exit code 2.
I commented out the code:
// Currently BlockCardWithImageFragment.gql comments out
// line 96. # location {id,title}
// if (block.content && block.content[0].location)
// locations.push(block.content[0].location)
because as noted in the code BlockCardWithImageFragment.gql comments out line 96. # location {id,title} in the library-website-nuxt site
... on cardWithImage_externalContent_BlockType {
id
typeHandle
title: titleGeneral
image {
...Image
}
byline1
byline2
category
# location {
# id
# title
# }
text: summary
to: externalLink
}
Checklist:
[x] I checked that it is working locally in the dev server
[x] I checked that it is working locally in the storybook
[x] I checked that it is working locally in the
library-website-nuxt dev server
[x] I added a screenshot of it working
[ ] UX has reviewed and approved this
[x] I assigned this PR to someone on the dev team to review
Connected to APPS-2633 | APPS-2634 | APPS-2635 | APPS-2636 | APPS-2581 | APPS-2582 | APPS-2583
Component Created:
BlockStaffList.vue
BlockStaffArticle.vue
SectionStaffList.vue
SectionStaffArticleList.vue
SectionStaffSubjectLibrarian.vue
BlockStaffDetail.vue
Component Fixed:
BlockStaffSubjectLibrarian.vue
Stories:
/stories/BlockStaffList.stories.js
~/stories/BlockStaffArticle.stories.js
~/stories/SectionStaffList.stories.js
~/stories/SectionStaffArticleList.stories.js
~/stories/SectionStaffSubjectLibrarian.stories.js
~/stories/BlockStaffDetail.stories.js
Spec:
/stories/BlockStaffList.spec.js
~/stories/BlockStaffArticle.spec.js
~/stories/SectionStaffList.spec.js
~/stories/SectionStaffArticleList.spec.js
~/stories/SectionStaffSubjectLibrarian.spec.js
~/stories/BlockStaffDetail.spec.js
Notes:
This PR includes code in
Flexible/BannerFeatured.vue
because theRun CI Suite / vite (pull_request) was failing with this error:
I commented out the code:
because as noted in the code
BlockCardWithImageFragment.gql
comments out line 96. # location {id,title} in the library-website-nuxt siteChecklist:
Nuxt
![Screenshot 2024-04-04 at 12 49 14 PM (2)](https://github.com/UCLALibrary/ucla-library-website-components/assets/751697/7c734e12-8651-4a77-8737-2f7b44b91b11)