Skip to content

Commit

Permalink
ENG-5665 feat(launchpad,1ui): implement downvoting (#1085)
Browse files Browse the repository at this point in the history
## Affected Packages

Apps

- [ ] data populator
- [ ] portal
- [ ] template
- [x] launchpad

Packages

- [ ] 1ui
- [ ] api
- [ ] graphql
- [ ] protocol
- [ ] sdk

Tools

- [ ] tools

## Overview

Introduces downvoting and further improves the signal/voting UX. Added
gradients to table and updated modal bg and border. Improved vault
details fetching. Removed unused components related to
survey/staking/signaling. Updated signal step in survey flow.

Note: still working through the vote math... 1 vote = minDeposit, but we
have to account for the fees when calculating it on the frontend. In the
case of transactions, 1 tick always = minDeposit, or if you're
redeeming, it will redeem all if parsedTick +1 > your shares. In the
case of showing someone their ticks post transaction and fees, we have
to do 0.94 * minDeposit to account for the 5% entry and 1% protocol
fees. Still seems to be some rounding issues though. Continuing to work
through that but we can test this now.

## Screen Captures


https://www.loom.com/share/655f4ec38b1a40baa0b56f3120c32188?sid=cfc75cc0-b176-4446-a321-02923a2bdadc

## Declaration

- [x] I hereby declare that I have abided by the rules and regulations
as outlined in the
[CONTRIBUTING.md](https://github.com/0xIntuition/intuition-ts/blob/main/CONTRIBUTING.md)
  • Loading branch information
Vitalsine85 authored Feb 6, 2025
1 parent 3ea42a7 commit 1a3604f
Show file tree
Hide file tree
Showing 28 changed files with 753 additions and 2,623 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ export default function KnowledgeGraph({
},
}))

console.log('Generated elements:', { nodes, edges })
return [...nodes, ...edges]
} catch (err) {
console.error('Error transforming data:', err)
Expand All @@ -410,18 +409,15 @@ export default function KnowledgeGraph({

const handleMount = (cy: cytoscape.Core) => {
try {
console.log('Setting up Cytoscape instance')
cyRef.current = cy

// Set initial zoom and center
cy.on('layoutstart', () => {
console.log('Layout starting')
cy.zoom(1.5)
cy.center()
})

cy.on('layoutstop', () => {
console.log('Layout complete')
cy.zoom(1.5)
cy.center()
})
Expand Down
56 changes: 0 additions & 56 deletions apps/launchpad/app/components/onboarding-modal-old/constants.ts

This file was deleted.

54 changes: 0 additions & 54 deletions apps/launchpad/app/components/onboarding-modal-old/intro-step.tsx

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1a3604f

Please sign in to comment.