fix: borrow filter and matrix UX#628
Conversation
Surface default borrow filters in the active filter chips and keep unavailable discovery matrix cells passive.
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: euler-xyz/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR removes the unavailable-metric hover tooltip in the discovery matrix and changes ChangesDiscovery matrix cell rendering
Custom filter initial state
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
LeonardEulerXYZ
left a comment
There was a problem hiding this comment.
Leonard review — PR #628
Verdict: COMMENT — no blocking findings found on the current head 1f7c076781bad7fc1191a2dd4182cd375fb6fb06.
What changed:
useCustomFiltersnow treatsinitialFiltersas visible/removable active filters and resets back to them on clear.- Borrow’s default
Avail. liquidity > $1Kfilter is now visible to users instead of being an invisible hard filter. - Discovery matrix unavailable ROE/multiplier cells now render as a quiet
-, with the matrix-level correlation notice carrying the explanation.
Scalability / maintainability hygiene:
- I checked the sibling filter consumers (
borrow,lend,earn,explore) and the sharedUiCustomFilterChipspath. This keeps the initial-filter behavior in the shared composable rather than a borrow-page local helper, and the new focused composable test covers the reusable behavior. - I checked sibling ROE/unavailable display surfaces. The matrix change is scoped to the matrix cell display, while the broader explanation remains shared at the matrix-view level and the ROE modal still has its own contextual explanation. I did not find a missed sibling component carrying the old visible-tooltip behavior.
- Active bot/reviewer feedback: I did not find active non-Leonard review comments on this PR to verify/refute.
Validation performed:
npx eslint components/entities/vault/discovery/DiscoveryMarketMatrix.vue composables/useCustomFilters.ts tests/composables/useCustomFilters.test.ts tests/setup.ts— passed.npm run test:run -- tests/composables/useCustomFilters.test.ts— passed, 1 test.npm run build— passed. Build emitted existing-style bundler warnings, but no PR-specific build failure.- Local production server smoke:
/borrow?network=1and/api/euler-chainsreturned 200. - Browser visual smoke, headed Chromium under Xvfb:
- Borrow desktop and mobile: default liquidity chip and Add filter visible; page rendered market rows, no loading/error state.
- Explore matrix desktop and mobile: expanded a market, switched to Matrix → Max ROE, verified the correlation notice and ROE matrix state.
Smoke coverage: browser visual smoke + mobile smoke. No wallet/signing coverage was run. Local smoke used a blank AppKit project id, so wallet/Reown console warnings were treated as local-env noise rather than PR evidence.
Screenshot evidence:
Borrow desktop — default liquidity filter visible:

Borrow mobile — filter controls visible:

Explore matrix mobile — Matrix + Max ROE selected with correlation notice:

|
🚅 Deployed to the euler-lite-pr-628 environment in euler-lite
|
Merge current development into the borrow filter matrix nits branch and resolve the custom filters clash.
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |

Summary
Changes
Test plan
Summary by CodeRabbit