honey-protocol / honey-frontend-legacy Goto Github PK
View Code? Open in Web Editor NEW๐ฏ An open source interface for the Honey Finance protocol
Home Page: https://honey-frontend.vercel.app
License: MIT License
๐ฏ An open source interface for the Honey Finance protocol
Home Page: https://honey-frontend.vercel.app
License: MIT License
Assigned to tinybigideas
Some useful links:
https://bobbyhadz.com/blog/javascript-convert-iso-string-to-date-object
We should maintain one single source of truth with respect to components / vanilla classes and inline styles structure.
Each page has a main css layout written in ~/styles/pageName.css.ts
Whenever a page includes a component, this component should always be written inside of the components folder and maintain a structure of;
~/components/ComponentName/
/ComponentName.css.ts
/ComponentName.tsx
This way we separate the concerns regarding global and local styles for pages and components.
Also - try to style as little as possible inside of the elements itself, this due to limitations from DegenUI / preference regarding Figma Designs
In order to make all loan routes dynamic, dummy data sets should be created. Honey SDK provides an CLI for this matter
When implementing the SDK we should maintain one single source of truth with respect to components / vanilla classes and inline styles structure.
Each page has a main css layout written in ~/styles/pageName.css.ts
Whenever a page includes a component, this component should always be written inside of the components folder and maintain a structure of;
~/components/ComponentName/
/ComponentName.css.ts
/ComponentName.tsx
This way we separate the concerns regarding global and local styles for pages and components.
Also - try to style as little as possible inside of the elements itself, this due to limitations from DegenUI / preference regarding Figma Designs
The alignment of the cards with respect to vault name / total borrowed / interest / available / your positions. We should consistently and equally divide between the space that we have. E.g. give a min width to each field and set a max char for each field. On hover we could display full amount of text and/or quantity;
Just the base integration to get the setup running where we can communicate with the SDK
fetching open positions
Describe the feature you'd love to see
A clear and concise description of what you'd love to see added to the HONEY frontend.
Additional context (optional)
Add any other context or screenshots about the feature request here.
Describe the feature you'd love to see
Themeing (with a default of orange/yellow).
Additional context (optional)
As per @BowTiedHeron suggestion in discord, theme could change when user clicks on "Honey Finance", similar to what happens on the Degen UI documentation.
Buttons should interact with dummy markets injected via CLI.
TODO;
Write out complete flow
Unlocking and locking vaults take too long, a refresh is required almost each time (would need a toastify notification for this (this is probably quicker) or optimisation fix)
We should call upon the honey SDK to Fetch the NFTs - this will probably cause for some styling changes / change in the looping that's currently being done.
Governance looks like the same disabled button as Dashboard and Loans
If we want people to use Governance, we should make it clear that it's clickable.
If we want people to know Dashboard and Loans are coming soon but not clickable then label it as such( coming soon...) label. Don't fool users.
Additional context (optional)
Add any other context or screenshots about the feature request here
.
Fetching nfts from the wallet
On the main lending / borrowing page make the search input field dynamic by actually filtering the list of vaults etc.
We should also make this input field error proof with respect to vulnerabilities in general (XSS / injection) but also datatypes input / max input char.
When user initializes the account the first time, the button should change from initialize to deposit.
Or else users will keep wasting sol to initialize given to initialize again will always result in failure!
Text and plus icon should turn white with respect to contrast.
Add layout following Figma designs
We should create a standardised way of writing code incl. comments / structure of functions / helpers / keep the files as clean as possible.
Would be good to have a localization.json file or similar that can be dynamically referenced in the app and referenced on a per language selection basis ie:
///Json file:
[
{
"en-gb" : {
"welcomeMessage": "Welcome"
},
"de-DE": {
"welcomeMessage": "Willkommen"
}
}
]
///Used in the components/pages as:
import strings from './localization.json'
<h1>{strings.welcomeMessage}</h1>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.