1.11.0 • Published 2 months ago

@kiva/kv-loan-filters v1.11.0

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

kv-loan-filters

A library of utilities related to the Kiva loan filters.

Install

Deployed:

npm i @kiva/kv-loan-filters

Local:

# Open kv-ui-elements folder in Terminal
cd @kiva/kv-loan-filters
npm link

# Open target local project folder in Terminal
npm link @kiva/kv-loan-filters

Extra step for Nuxt local development:

// Open nuxt.config.ts in target project and add with your username
...
vite: {
    optimizeDeps: {
      exclude: ['@kiva/kv-loan-filters'],
    },
    server: {
      fs: {
        allow: ['/Users/username/kiva/kv-ui-elements'],
      },
    },
  },
...

Tests

npm run test
npm run test-watch

Lint

npm run lint

Build

npm run build

Overview

The loan filter utilities are used to power the filtering UI in the Kiva Vue 2 + 3 applications. Example pages include /lend/filter and /lending-home. While these utilities don't deal directly with FLSS queries, the utilities provide the functionality for filter against the FLSS endpoints. The underlying state of the filters is stored in the Apollo cache in loanSearchState.

For an example of how to handle filtering and the changes to the Apollo cache, look to LoanSearchInterface in the ui repo, specifically the Apollo watchQuery that monitors loanSearchState. There are also utilities for using query params to change the loanSearchState.

Facets are the available filters, and the legacy lend API is the source of truth. The loans per facet count is provided by FLSS.

Contribution Guidelines

The Kiva UI project is bound by a Code of Conduct.

Kiva welcomes outside contributions to our UI repository. If you have any ideas for a feature or improvement, create an issue and we can discuss whether it makes sense to create a pull request. Thanks for the help!

1.11.0

2 months ago

1.10.0

3 months ago

1.9.0

8 months ago

1.8.0

8 months ago

1.7.0

8 months ago

1.6.1

9 months ago

1.2.0

12 months ago

1.6.0

10 months ago

1.5.0

10 months ago

1.4.0

11 months ago

1.3.1

11 months ago

1.3.0

12 months ago

1.1.0

1 year ago