Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: migrate to vue 3 #5324

Merged
merged 158 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
ef9cd09
feat!: migrate to vue 3
emuvente May 20, 2024
13c0fb3
fix: tabs for package.json indentation
emuvente May 20, 2024
c4b1a9e
fix: additional ESM work related to jest testing
eddieferrer May 21, 2024
e0a179f
fix: client entry name in index.html
emuvente May 21, 2024
69e0585
fix: use direct aysnc import for router components
emuvente May 21, 2024
e819357
fix: additional unit testing fixes
eddieferrer May 22, 2024
5cbb962
fix: additional unit test spec fixes and component fixes
eddieferrer May 23, 2024
11abec5
fix: handle no match found warnings with catch-all route
emuvente May 23, 2024
9cbee44
fix: more unit test fixes
eddieferrer May 29, 2024
470e4d4
build: allow importing of temporary file
emuvente May 29, 2024
b3f3ad5
fix: comment out vue router in storybook preview
emuvente May 29, 2024
9241689
fix: update storybook preview for vue 3 app & remove unused build config
emuvente May 29, 2024
feba00d
fix: load app logo svgs with ?url
emuvente May 29, 2024
80fe5ca
fix: use import.meta.glob to load flag svgs
emuvente May 29, 2024
855bf5b
fix: import svg urls for image sources
emuvente May 30, 2024
df9a2dc
fix: update paths for static assets
emuvente May 31, 2024
61e80af
feat: render preload links for js and css used during render
emuvente May 31, 2024
78fdf26
feat!: only support modern browsers
emuvente May 31, 2024
0dcb945
fix: use absolute paths from project root for import.meta.glob
emuvente May 31, 2024
8df4a08
fix: use "head" instead of "metaInfo"
emuvente May 31, 2024
c2c1b05
fix: use head instead of metaInfo in UiSiteMap
emuvente Jun 4, 2024
9d16b5f
fix(getDeepComponents): handle vue 3 async components
emuvente Jun 4, 2024
0e1fbd5
fix: quiet console.warn for live loan fetch tests
dyersituations Jun 5, 2024
dcba7a7
fix: unit tests now all pass (fixed issue with KvCheckboxList)
dyersituations Jun 5, 2024
2b9f0f1
fix: a small collection of stories fixed, added support for the async…
dyersituations Jun 6, 2024
cd2f0f3
fix: more story updates
dyersituations Jun 6, 2024
0b7002d
fix: more story fixes
dyersituations Jun 6, 2024
e51e82a
fix: remaining initial story tweaks for storybook 8
dyersituations Jun 6, 2024
3f3ba76
fix: server side error where this file wasn't found with relative path
dyersituations Jun 6, 2024
2e678ed
fix: resolved issue with tip message component
dyersituations Jun 7, 2024
515ac80
fix: lend/filter page now loads successfully and can be interacted with
dyersituations Jun 7, 2024
b0836c9
fix: small spelling fix
dyersituations Jun 10, 2024
2016a22
fix: turn off SSR for local dev to prevent CSS pop-in for components
dyersituations Jun 10, 2024
1498fa1
fix: resolve issues with router navigation specifically for lend/filter
dyersituations Jun 11, 2024
688422d
fix: add SVGs to HTML for KvIcon
dyersituations Jun 11, 2024
1716cc0
fix: remaining changes to enable all logged-out features of lend/filter
dyersituations Jun 11, 2024
9ba0a44
fix: resolve errors to get category page initially loading
dyersituations Jun 11, 2024
80a6be8
fix: access correct async page view method (encountered when changing…
dyersituations Jun 11, 2024
ca13156
fix: resolve warnings and errors when quick filters changed on catego…
dyersituations Jun 11, 2024
97fd051
fix: ensure icons load on category page
dyersituations Jun 11, 2024
7125c22
fix: resolved click outside directive issues with Vue 3
dyersituations Jun 12, 2024
a37d0f2
fix: resolve issues with category page quick filters
dyersituations Jun 12, 2024
6312494
fix: resolve issues with category page help me choose section
dyersituations Jun 12, 2024
f0155e8
fix: resolve remaining issues with category page (clicking to load mo…
dyersituations Jun 12, 2024
03d3a63
fix: add back in old vuelidate library so project still builds/validates
dyersituations Jun 12, 2024
8e5c83f
fix: ensure category page loads correctly via browser back/forward bu…
dyersituations Jun 12, 2024
e1f8ccc
fix: matching text component fix for category page help me choose sec…
dyersituations Jun 12, 2024
82825b8
fix: upgrade node auth0 package to resolve authentication related errors
dyersituations Jun 13, 2024
c172d31
fix: adjust manifest URLs to prevent errors in dev (full URL still ne…
dyersituations Jun 13, 2024
12cf02b
fix: adjust Caddy to support vite HMR
dyersituations Jun 13, 2024
8cdd3da
fix: upgrade kv-shop with tweaks that allow apollo dependency to load
dyersituations Jun 14, 2024
b029860
fix: resolve issues with button component
dyersituations Jun 14, 2024
9c4d1fb
Merge branch 'main' into vue-3
dyersituations Jul 22, 2024
252495b
fix: missing final package changes from merge
dyersituations Jul 22, 2024
da59885
fix: resolve issues found by linting
dyersituations Jul 22, 2024
afee5a4
fix: more linting fixes
dyersituations Jul 22, 2024
bd3dcd9
fix: linting again
dyersituations Jul 22, 2024
88c84b9
fix: one last linting error
dyersituations Jul 22, 2024
5842f3e
Merge branch 'main' into vue-3
dyersituations Jul 22, 2024
8adede0
fix: get unit tests passing again
dyersituations Jul 22, 2024
0a0da7d
fix: resolve merge coverage error in GH action
dyersituations Jul 22, 2024
fee3abc
Merge branch 'main' into vue-3
dyersituations Jul 22, 2024
ae0c70a
fix: make replacing tracer quicker
dyersituations Jul 22, 2024
f995b32
fix: remove old postcss deep syntax
dyersituations Jul 22, 2024
2851975
fix: resolve transition needs single child error
dyersituations Jul 22, 2024
5a52a51
fix: another deep
dyersituations Jul 22, 2024
ae78046
fix: some changes following previous commits
dyersituations Jul 23, 2024
9a9b6eb
fix: migrate all vuelidate forms to the new pattern
dyersituations Jul 23, 2024
2e8b31f
fix: linting issues
dyersituations Jul 23, 2024
f527ad7
fix: resolve linting warnings
dyersituations Jul 23, 2024
ddd51b3
Merge branch 'main' into vue-3
dyersituations Jul 23, 2024
c53fbdd
fix: another form update
dyersituations Jul 23, 2024
7f9290a
fix: address errors/warnings with story
dyersituations Jul 23, 2024
5fc685d
fix: remove this. from templates, resolve issue with transition havin…
dyersituations Jul 24, 2024
d1a77a1
fix: borrower profile route access needed to be changed
dyersituations Jul 24, 2024
dd0d37a
fix: resolve errors with loading the borrower profile initially
dyersituations Jul 24, 2024
73a6905
Merge branch 'main' into vue-3
dyersituations Jul 24, 2024
8371bf9
Merge branch 'main' into vue-3
dyersituations Jul 31, 2024
19f6ff9
fix: resolve linting errors
dyersituations Jul 31, 2024
e5d4325
fix: prefetch route is now a ref
dyersituations Jul 31, 2024
5cffd44
fix: image glob instead of require for thanks page component
dyersituations Jul 31, 2024
3ac0bac
fix: remove this reference from template
dyersituations Jul 31, 2024
ee1fab3
fix: fix default thanks page rendering
dyersituations Jul 31, 2024
d94477c
fix: borrower profile lend cta animation wasn't working correctly
dyersituations Jul 31, 2024
2dd7155
fix: ensure responsive image component renders correctly
dyersituations Aug 1, 2024
627fbf1
fix: remove component no longer used
dyersituations Aug 1, 2024
0558288
fix: resolved issue with the loan carousel on the lend-by-category page
dyersituations Aug 1, 2024
af4a0ff
fix: prefetch wasn't working correctly for navigation with the vue ro…
dyersituations Aug 1, 2024
cbb906d
fix: fix how treemap commonjs module was being imported
dyersituations Aug 1, 2024
1be1c0b
Merge branch 'main' into vue-3
dyersituations Aug 1, 2024
d17a539
Merge branch 'main' into vue-3
dyersituations Aug 13, 2024
bc22c53
fix: default slot is now a method
dyersituations Aug 13, 2024
6a32b97
fix: braintree css overrides weren't working
dyersituations Aug 13, 2024
9baaae5
fix: custom radio button wasn't working (found on payment settings page)
dyersituations Aug 13, 2024
1d14a86
fix: new vue render method removes whitespace
dyersituations Aug 13, 2024
46479e4
fix: radio can default as null
dyersituations Aug 13, 2024
df8b2ee
fix: update selects to work in vue3
dyersituations Aug 13, 2024
1ed955a
fix: checkboxes weren't working like expected (solved for the email s…
dyersituations Aug 13, 2024
bfd3bbd
fix: linting
dyersituations Aug 14, 2024
e62aaa2
fix: file disables didn't work for push eslint
dyersituations Aug 14, 2024
3312852
fix: register social page/form now working
dyersituations Aug 14, 2024
6f71180
fix: upgraded cypress and confirmed tests running locally
dyersituations Aug 14, 2024
153fee4
fix: remove extra template tags creating render issues
dyersituations Aug 14, 2024
c8aa9a0
fix: resolve story issue with correct default
dyersituations Aug 14, 2024
90b3657
fix: add filters support for storybook
dyersituations Aug 14, 2024
9c0ad27
fix: resolve more issues with base input and checkboxes
dyersituations Aug 14, 2024
e8c0c05
fix: remove unused listener and fix monthly good stories
dyersituations Aug 14, 2024
d6871f5
fix: resolve issues with flag icons not rendering
dyersituations Aug 14, 2024
f39f737
fix: resolve issues with phone input (formatting update didn't work b…
dyersituations Aug 14, 2024
dace761
fix: more story fixes
dyersituations Aug 14, 2024
329f527
fix: more icons now work (sprites didn't work in storybook before eit…
dyersituations Aug 14, 2024
c618a8e
fix: resolved issues with more stories (one of the BP stories was bro…
dyersituations Aug 14, 2024
d053994
fix: change video import to work in storybook without new alias
dyersituations Aug 14, 2024
96ee90f
fix: resolve issues with campaign page
dyersituations Aug 14, 2024
c163d85
fix: get vue router to work with overriding query string in stories
dyersituations Aug 14, 2024
f999262
fix: resolved issues with banner stories
dyersituations Aug 14, 2024
0d1054d
fix: more story issues resolved
dyersituations Aug 14, 2024
7f2f204
fix: removed unneeded require from server index
dyersituations Aug 15, 2024
15f31cb
fix: adjust some deep selectors
dyersituations Aug 15, 2024
0de1bb3
fix: another deep css tweak
dyersituations Aug 15, 2024
72d3144
fix: qr code prop was wrong type
dyersituations Aug 15, 2024
f316567
fix: resolved issues with auto deposit form and added needed optional…
dyersituations Aug 15, 2024
80c534d
Merge branch 'main' into vue-3
dyersituations Aug 15, 2024
b7e7ab5
fix: resolved issues with unit tests (all pass without warnings/error…
dyersituations Aug 15, 2024
6cd5910
fix: removed unneeded linting disable
dyersituations Aug 15, 2024
2d98e46
fix: disable was needed for unit tests in pipeline
dyersituations Aug 15, 2024
ac02114
fix: webmanifest with vite build
dyersituations Aug 16, 2024
4530fc8
fix: resolved issues with cc pages
dyersituations Aug 19, 2024
8c871c4
fix: resolve issues with html img src values
dyersituations Aug 19, 2024
f37f1aa
fix: update gql import
dyersituations Aug 19, 2024
d24aa8a
fix: resolve issue with import in component library
dyersituations Aug 19, 2024
71bf2be
fix: resolve issues with process instant lending
dyersituations Aug 19, 2024
8953d19
fix: resolve issues with process join team
dyersituations Aug 19, 2024
125e330
fix: $isServer no longer exists in Vue 3
dyersituations Aug 19, 2024
8ee0aaf
fix: missed a server change update on checkout page
dyersituations Aug 19, 2024
eafa46c
fix: resolve form element issues with autolending settings
dyersituations Aug 20, 2024
1c5923b
fix: resolved issue with flag icons (removed sprite usage)
dyersituations Aug 20, 2024
30c35ba
fix: resolve issue with cc page deep css
dyersituations Aug 20, 2024
b66ae01
fix: remove another this reference in a template
dyersituations Aug 20, 2024
901ec9b
fix: resolve issues with monthly good page
dyersituations Aug 20, 2024
2e9fff1
fix: resolve issues with build page
dyersituations Aug 21, 2024
5a8d692
fix: resolve issues on a couple newer pages with image glob
dyersituations Aug 21, 2024
2e48331
fix: resolve deep style issues with legal pages
dyersituations Aug 21, 2024
7d041f6
fix: resolve issue with lend page
dyersituations Aug 21, 2024
196f7c8
fix: resolve preFetchVariables route issues
dyersituations Aug 21, 2024
a3155ca
fix: resolve issue with popper when is initialized hidden
dyersituations Aug 21, 2024
f950d13
fix: resolve issues with image globs with subfolders
dyersituations Aug 21, 2024
a6fb9fa
fix: resolve a couple register page issues
dyersituations Aug 21, 2024
79fa86c
Merge branch 'main' into vue-3
dyersituations Aug 21, 2024
f125183
Merge branch 'main' into vue-3
dyersituations Aug 29, 2024
e7e52c7
fix: remove unused purge css code
dyersituations Sep 3, 2024
bf6fca2
fix: linting
dyersituations Sep 3, 2024
1fe86df
Merge branch 'main' into vue-3
dyersituations Sep 3, 2024
7ca45e2
Merge branch 'main' into vue-3
dyersituations Sep 5, 2024
8f390d8
Merge branch 'main' into vue-3
dyersituations Sep 5, 2024
b0b1eb0
chore: use vue3 branch of marketplace-web-ui-ci with updated Dockerfile
mcstover Sep 20, 2024
eeec78b
Merge branch 'main' into vue-3
dyersituations Sep 23, 2024
36f65a7
chore: add ci branch option to vue-3 branch
mcstover Sep 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 100 additions & 34 deletions server/util/live-loan/live-loan-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,30 @@ async function fetchLoansFromGraphQL(request, resultPath) {
}

// Get per-user recommended loans from the ML service
async function fetchRecommendationsByLoginId(id) {
return fetchLoansFromGraphQL({
query: `{
async function fetchRecommendationsByLoginId(id, flss = false) {
if (flss) {
return fetchLoansFromGraphQL(
{
query: `query($userId: Int) {
fundraisingLoans(
pageNumber: 0,
limit: ${loanCount},
userId: $userId,
origin: "email:live-loans"
) {
${loanValues}
}
}`,
variables: {
userId: Number(id),
}
},
'data.fundraisingLoans.values'
);
}
return fetchLoansFromGraphQL(
{
query: `{
ml {
recommendationsByLoginId(
segment: all
Expand All @@ -74,13 +95,16 @@ async function fetchRecommendationsByLoginId(id) {
}
}
}`,
}, 'data.ml.recommendationsByLoginId.values');
},
'data.ml.recommendationsByLoginId.values'
);
}

// Get loan-to-loan recommended loans from the ML service
async function fetchRecommendationsByLoanId(id) {
return fetchLoansFromGraphQL({
query: `{
return fetchLoansFromGraphQL(
{
query: `{
ml {
relatedLoansByTopics(
loanId: ${id},
Expand All @@ -92,7 +116,9 @@ async function fetchRecommendationsByLoanId(id) {
}
}
}`,
}, 'data.ml.relatedLoansByTopics[0].values');
},
'data.ml.relatedLoansByTopics[0].values'
);
}

// Get mapping of sector name to id
Expand Down Expand Up @@ -301,9 +327,13 @@ const parseFilterStringFLSS = async filterString => {
};

// Get loans from the Fundraising Loan Search Service matching a set of filters
async function fetchRecommendationsByFilter(userId, filterString) {
return fetchLoansFromGraphQL({
query: `query($userId: Int, $filters: [FundraisingLoanSearchFilterInput!]) {
async function fetchRecommendationsByFilter(filterString) {
const filters = await parseFilterStringFLSS(filterString);
const sortOptions = await fetchFLSSSorts();
const sortBy = parseSortString(filterString, sortOptions);
return fetchLoansFromGraphQL(
{
query: `query($filters: [FundraisingLoanSearchFilterInput!], $sortBy: SortEnum) {
fundraisingLoans(
pageNumber: 0,
limit: ${loanCount},
Expand All @@ -314,11 +344,13 @@ async function fetchRecommendationsByFilter(userId, filterString) {
${loanValues}
}
}`,
variables: {
userId: Number(userId),
filters: parseFilterStringFLSS(filterString),
}
}, 'data.fundraisingLoans.values');
variables: {
filters,
sortBy,
}
},
'data.fundraisingLoans.values'
);
}

// Only returns true for supported legacy loan search filters
Expand Down Expand Up @@ -398,47 +430,81 @@ async function fetchRecommendationsByLegacyFilter(filterString) {
parseFilterStringLegacy(filterString),
fetchSorts(),
]);
return fetchLoansFromGraphQL({
query: `query($filters: LoanSearchFiltersInput, $sort: LoanSearchSortByEnum) {
const sort = parseSortString(filterString, sortOptions);
return fetchLoansFromGraphQL(
{
query: `query($filters: LoanSearchFiltersInput, $sort: LoanSearchSortByEnum) {
lend {
loans(limit: ${loanCount}, offset: 0, filters: $filters, sortBy: $sort) {
${loanValues}
}
}
}`,
variables: {
filters,
sort,
variables: {
filters,
sort,
},
},
}, 'data.lend.loans.values');
'data.lend.loans.values'
);
}

// Get loans from legacy lend search matching a set of filters
async function fetchLoanById(loanId) {
return fetchLoansFromGraphQL({
query: `query($loanId: Int!) {
return fetchLoansFromGraphQL(
{
query: `query($loanId: Int!) {
lend {
loan(id: $loanId) {
${loanData}
}
}
}`,
variables: {
loanId: Number(loanId),
}
}, 'data.lend.loan');
variables: {
loanId: Number(loanId),
}
},
'data.lend.loan'
);
}

// Check if the filter string contains any FLSS filters
const shouldUseFLSS = async filterString => {
// input needs to be a string
if (!filterString || typeof filterString !== 'string') {
return true; // Returning true so that FLSS is the default
}

// Check which sort options are used in the filter string
const [legacySorts, flssSorts] = await Promise.all([fetchSorts(), fetchFLSSSorts()]);
const legacySort = parseSortString(filterString, legacySorts);
const FLSSSort = parseSortString(filterString, flssSorts);
const usingLegacySort = !!legacySort;
const usingFLSSSort = !!FLSSSort;

// If the filter string contains a sort option that is only supported by one of the services, use that service
if (usingFLSSSort && !usingLegacySort) {
return true;
}
if (usingLegacySort && !usingFLSSSort) {
return false;
}

// Use FLSS by default
return true;
};

// Export a function that will fetch loans by live-loan type and id
export default async function fetchLoansByType(type, id, flss = false) {
if (type === 'user') {
return flss ? fetchRecommendationsByFilter(id) : fetchRecommendationsByLoginId(id);
}
if (type === 'loan') {
return fetchRecommendationsByLoginId(id, flss);
} if (type === 'loan') {
return fetchRecommendationsByLoanId(id);
}
if (type === 'filter') {
// Swap which line below is commented out to switch between FLSS and legacy (monolith) lend search
// return fetchRecommendationsByFilter(id);
} if (type === 'filter') {
if (await shouldUseFLSS(id)) {
return fetchRecommendationsByFilter(id);
}
warn(`Using legacy loan search for filter "${id}"`);
return fetchRecommendationsByLegacyFilter(id);
}
if (type === 'loanid') {
Expand Down
4 changes: 2 additions & 2 deletions src/components/MyKiva/MyKivaContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</template>

<script>
import KvPageContainer from '~/@kiva/kv-components/vue/KvPageContainer';
import KvGrid from '~/@kiva/kv-components/vue/KvGrid';
import KvPageContainer from '@kiva/kv-components/vue/KvPageContainer';
import KvGrid from '@kiva/kv-components/vue/KvGrid';

export default {
name: 'MyKivaContainer',
Expand Down
8 changes: 4 additions & 4 deletions src/components/MyKiva/MyKivaHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

<script>
import { mdiCogOutline } from '@mdi/js';
import MyKivaContainer from '@/components/MyKiva/MyKivaContainer';
import KvMaterialIcon from '~/@kiva/kv-components/vue/KvMaterialIcon';
import MyKivaContainer from '#src/components/MyKiva/MyKivaContainer';
import KvMaterialIcon from '@kiva/kv-components/vue/KvMaterialIcon';

export default {
name: 'MyKivaHero',
Expand All @@ -35,12 +35,12 @@ export default {
<style lang="postcss" scoped>

.landscape {
background-image: url('~@/assets/images/my-kiva/header-mobile.svg');
background-image: url('#src/assets/images/my-kiva/header-mobile.svg');
background-position: 75%;
height: 148px;

@screen md {
background-image: url('~@/assets/images/my-kiva/header-desktop.svg');
background-image: url('#src/assets/images/my-kiva/header-desktop.svg');
background-size: cover;
background-position: center;
height: 249px;
Expand Down
4 changes: 2 additions & 2 deletions src/components/MyKiva/MyKivaProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

<script>

import ActivityAvatar from '@/components/Iwd/ActivityAvatar';
import MyKivaContainer from '@/components/MyKiva/MyKivaContainer';
import ActivityAvatar from '#src/components/Iwd/ActivityAvatar';
import MyKivaContainer from '#src/components/MyKiva/MyKivaContainer';

export default {
name: 'MyKivaProfile',
Expand Down
47 changes: 24 additions & 23 deletions src/components/Thanks/Badges/DetailSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,32 @@
YOUR BADGES
</p>
</div>
<kv-carousel
:embla-options="{ loop: true, align: 'center', startIndex: selectedBadgeIdx }"
:is-dotted="true"
:in-circle="true"
class="badge-carousel"
@change="handleChange"
ref="badgeCarousel"
>
<template v-for="badge in badges" #[`slide${badge.id}`] :key="badge.id">
<div
class="tw-flex tw-flex-col"
v-kv-track-event="[
'thanks',
'click',
'choose-a-badge',
badge.name
]"
>
<img
:src="imageRequire(`${badge.img}.svg`)"
class="badge tw-mx-auto"
alt="Gift icon"
<div class="tw-mx-auto" style="max-width: 8rem;">
<kv-carousel
:embla-options="{
loop: false,
align: 'center',
startIndex: selectedBadgeIdx,
}"
slides-to-scroll="visible"
:is-dotted="true"
:in-circle="true"
class="badge-carousel tw-overflow-visible"
@change="handleChange"
ref="badgeCarousel"
>
<template v-for="badge in badges" #[`slide${badge.id}`] :key="badge.id">
<div
class="tw-flex tw-flex-col slide-container"
v-kv-track-event="[
'thanks',
'click',
'choose-a-badge',
badge.name
]"
>
<img
:src="imageRequire(`./${badge.img}.svg`)"
:src="imageRequire(`${badge.img}.svg`)"
class="badge tw-mx-auto tw-mb-2"
alt="Gift icon"
>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/Portfolio/ImpactDashboard/DistributionGraphs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import { gql } from 'graphql-tag';
import delayUntilVisibleMixin from '#src/plugins/delay-until-visible-mixin';
import getCacheKey from '#src/util/getCacheKey';
import StatsTable from '#src/components/Stats/StatsTable';
import KvPieChart from '@kiva/kv-components/vue/KvPieChart';
import KvTreeMapChart from '@kiva/kv-components/vue/KvTreeMapChart';
dyersituations marked this conversation as resolved.
Show resolved Hide resolved
import AsyncPortfolioSection from './AsyncPortfolioSection';

export default {
Expand Down
3 changes: 3 additions & 0 deletions src/pages/Portfolio/ImpactDashboard/ImpactDashboardPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
</template>

<script>
import experimentAssignmentQuery from '#src/graphql/query/experimentAssignment.graphql';
import experimentVersionFragment from '#src/graphql/fragments/experimentVersion.graphql';
import { trackExperimentVersion } from '#src/util/experiment/experimentUtils';
import WwwPage from '#src/components/WwwFrame/WwwPage';
import TheMyKivaSecondaryMenu from '#src/components/WwwFrame/Menus/TheMyKivaSecondaryMenu';
import ThePortfolioTertiaryMenu from '#src/components/WwwFrame/Menus/ThePortfolioTertiaryMenu';
Expand Down
10 changes: 5 additions & 5 deletions src/pages/Portfolio/MyKiva/MyKivaPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
</template>

<script>
import { trackExperimentVersion } from '@/util/experiment/experimentUtils';
import WwwPage from '@/components/WwwFrame/WwwPage';
import myKivaQuery from '@/graphql/query/myKiva.graphql';
import MyKivaHero from '@/components/MyKiva/MyKivaHero';
import MyKivaProfile from '@/components/MyKiva/MyKivaProfile';
import { trackExperimentVersion } from '#src/util/experiment/experimentUtils';
import WwwPage from '#src/components/WwwFrame/WwwPage';
import myKivaQuery from '#src/graphql/query/myKiva.graphql';
import MyKivaHero from '#src/components/MyKiva/MyKivaHero';
import MyKivaProfile from '#src/components/MyKiva/MyKivaProfile';

const MY_KIVA_EXP_KEY = 'my_kiva_page';

Expand Down
4 changes: 2 additions & 2 deletions src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export default [
},
{
name: 'lenderProfile',
path: '/lender-vue/:publicId',
path: '/lender/:publicId',
component: () => import('#src/pages/LenderProfile/LenderProfile'),
meta: {
excludeFromStaticSitemap: true,
Expand Down Expand Up @@ -465,7 +465,7 @@ export default [
},
{
path: '/my-kiva',
component: () => import('@/pages/Portfolio/MyKiva/MyKivaPage'),
component: () => import('#src/pages/Portfolio/MyKiva/MyKivaPage'),
meta: {
authenticationRequired: true,
excludeFromStaticSitemap: true,
Expand Down
Loading
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.