Skip to content

Commit

Permalink
Merge branch 'quicksilver-zone:main' into feat/751-handler-tokenized-…
Browse files Browse the repository at this point in the history
…share-test
  • Loading branch information
minhngoc274 authored Jan 3, 2024
2 parents 678d380 + 2916660 commit d106d16
Show file tree
Hide file tree
Showing 59 changed files with 3,214 additions and 1,054 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
name: Test Deploy to GitHub Pages
name: Build & Deploy web-ui with dev environment to Github Pages

on:
push:
branches:
- bunDev
paths:
- web-ui/**
pull_request:
branches:
- bunDev
paths:
- web-ui/**

workflow_dispatch:

permissions:
contents: read
contents: write
pages: write
id-token: write
actions: write
deployments: write
pull-requests: write

concurrency:
group: "pages"
Expand All @@ -26,7 +36,12 @@ jobs:
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest # or specify a version
bun-version: latest

- name: Setup Environment File
run: |
cd web-ui
cp .env.development .env
- name: Install Dependencies
run: |
Expand All @@ -47,4 +62,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
publish_dir: ./web-ui/out
21 changes: 19 additions & 2 deletions web-ui/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
NEXT_PUBLIC_CHAIN_ENV="preprod"
NEXT_PUBLIC_CHAIN_ENV="mainnet"
NEXT_PUBLIC_MAINNET_LCD_ENDPOINT_QUICKSILVER="https://lcd.quicksilver.zone/"
NEXT_PUBLIC_MAINNET_RPC_ENDPOINT_QUICKSILVER="https://rpc.quicksilver.zone/"
NEXT_PUBLIC_MAINNET_LCD_ENDPOINT_COSMOSHUB=https://lcd.cosmoshub-4.quicksilver.zone
NEXT_PUBLIC_MAINNET_RPC_ENDPOINT_COSMOSHUB=https://rpc.cosmoshub-4.quicksilver.zone
NEXT_PUBLIC_MAINNET_LCD_ENDPOINT_OSMOSIS="https://lcd.osmosis-1.quicksilver.zone"
NEXT_PUBLIC_MAINNET_RPC_ENDPOINT_OSMOSIS="https://rpc.osmosis-1.quicksilver.zone"
NEXT_PUBLIC_MAINNET_LCD_ENDPOINT_STARGAZE="https://lcd.stargaze-1.quicksilver.zone"
NEXT_PUBLIC_MAINNET_RPC_ENDPOINT_STARGAZE="https://rpc.stargaze-1.quicksilver.zone"
NEXT_PUBLIC_MAINNET_LCD_ENDPOINT_REGEN="https://lcd.regen-1.quicksilver.zone"
NEXT_PUBLIC_MAINNET_RPC_ENDPOINT_REGEN="https://rpc.regen-1.quicksilver.zone"
NEXT_PUBLIC_MAINNET_LCD_ENDPOINT_SOMMELIER="https://lcd.sommelier-3.quicksilver.zone"
NEXT_PUBLIC_MAINNET_RPC_ENDPOINT_SOMMELIER="https://rpc.sommelier-3.quicksilver.zone"
NEXT_PUBLIC_QUICKSILVER_API="https://lcd.quicksilver.zone"
NEXT_PUBLIC_QUICKSILVER_DATA_API="https://data.quicksilver.zone"
ZONE_URL="quicksilver.zone"
Expand All @@ -9,4 +21,9 @@ REACT_APP_ENABLE_CLAIMS="true"
APY_ZONES_ENDPOINT = "https://chains.cosmos.directory"
NEXT_PUBLIC_OSMOSIS_API="https://api.osmosis.zone"
NEXT_PUBLIC_WHITELISTED_DENOM="uatom,ustars,uosmo,usomm,uregen"
NEXT_PUBLIC_WHITELISTED_ZONES="osmosis-1,stargaze-1,regen-1,cosmoshub-4,sommelier-3"
NEXT_PUBLIC_WHITELISTED_ZONES="osmosis-1,stargaze-1,regen-1,cosmoshub-4,sommelier-3"
NEXT_PUBLIC_COSMOSHUB_CHAIN_ID=cosmoshub-4
NEXT_PUBLIC_OSMOSIS_CHAIN_ID=osmosis-1
NEXT_PUBLIC_STARGAZE_CHAIN_ID=stargaze-1
NEXT_PUBLIC_REGEN_CHAIN_ID=regen-1
NEXT_PUBLIC_SOMMELIER_CHAIN_ID=sommelier-3
29 changes: 29 additions & 0 deletions web-ui/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
NEXT_PUBLIC_CHAIN_ENV="testnet"
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_QUICKSILVER="https://lcd.test.quicksilver.zone"
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_QUICKSILVER="https://rpc.test.quicksilver.zone"
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_COSMOSHUB=https://lcd.provider.test.quicksilver.zone
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_COSMOSHUB=https://rpc.provider.test.quicksilver.zone
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_OSMOSIS="https://lcd.osmo-test-5.test.quicksilver.zone"
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_OSMOSIS="https://rpc.osmo-test-5.test.quicksilver.zone"
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_STARGAZE="https://lcd.elgafar-1.test.quicksilver.zone"
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_STARGAZE="https://rpc.elgafar-1.test.quicksilver.zone"
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_REGEN="https://lcd.regen-redwood-1.test.quicksilver.zone"
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_REGEN="https://rpc.regen-redwood-1.test.quicksilver.zone"
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_SOMMELIER="https://lcd.sommelier-3.quicksilver.zone"
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_SOMMELIER="https://rpc.sommelier-3.quicksilver.zone"
NEXT_PUBLIC_QUICKSILVER_API="https://lcd.test.quicksilver.zone"
NEXT_PUBLIC_QUICKSILVER_DATA_API="https://data.test.quicksilver.zone"
ZONE_URL="quicksilver.zone"
REACT_APP_WHITELISTED_ZONES="osmosis-1,stargaze-1,regen-1,cosmoshub-4,sommelier-3"
REACT_APP_ENABLE_UNBONDING="true"
REACT_APP_ENABLE_SET_INTENT="true"
REACT_APP_ENABLE_CLAIMS="true"
APY_ZONES_ENDPOINT = "https://chains.cosmos.directory"
NEXT_PUBLIC_OSMOSIS_API="https://api.osmosis.zone"
NEXT_PUBLIC_WHITELISTED_DENOM="uatom,ustars,uosmo,usomm,uregen"
NEXT_PUBLIC_WHITELISTED_ZONES="osmosis-1,stargaze-1,regen-1,cosmoshub-4,sommelier-3"
NEXT_PUBLIC_COSMOSHUB_CHAIN_ID=provider
NEXT_PUBLIC_OSMOSIS_CHAIN_ID=osmo-test-5
NEXT_PUBLIC_STARGAZE_CHAIN_ID=elgafar-1
NEXT_PUBLIC_REGEN_CHAIN_ID=regen-redwood-1
NEXT_PUBLIC_SOMMELIER_CHAIN_ID=sommelier-3
42 changes: 27 additions & 15 deletions web-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,44 @@ Please ensure your IDE is configured to use Typescript v4.9.3

### Development ToDo

**Staking Page**

- figure out a better way to fit the custom weight Ui into the modal.
**Governance**

- need to handle number displays better, sometimes they show NaN or undefined but quickly render

- need to update any QS endpoints that will potentially be outdated with the coming of 1.4
- add liquid staked governance (when its built)

**UI/UX**

- customize wallet connect modal
- Finish Mobile breakpoints

- threejs liquid metal sphere landing page
- focus on mobile landscape breakpoints, (mainly staking page)

- Mobile breakpoints
- find different assets for side bar

**Defi**
**Mobile Menu**

- design

- build
- connect wallet button

**Assets**
- graphic elements

- design
- font size / style / decorations

- build
**DevOps**

**Mobile Menu**
- make onboarding networks seamless

**Assets Page**

- claim rewards claim.test.quicksilver.zone/address/current \*/epoch

- intent query

- unbonding query

**Staking Page**

- check memo intent creation

- validator route app.quicksilver.zone/staking/chainId/valoperAddress

- fix succesful transaction on staking modal not taking you to final step
Binary file modified web-ui/bun.lockb
Binary file not shown.
111 changes: 111 additions & 0 deletions web-ui/components/Airdrop/airdropSection.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
import {
Accordion,
AccordionItem,
AccordionButton,
AccordionPanel,
AccordionIcon,
Box,
Button,
Flex,
Text,
Progress,
Tooltip,
VStack,
HStack,
useColorModeValue,
Icon,
Badge,
useDisclosure,
} from '@chakra-ui/react';
import { CheckIcon, ChevronDownIcon, ChevronRightIcon, InfoOutlineIcon } from '@chakra-ui/icons';
import { useAccordionStyles } from '@chakra-ui/accordion';
import { useState } from 'react';

interface AirdropAccordionItemProps {
index: number;
defaultIsOpen?: boolean;
}

const AirdropAccordionItem: React.FC<AirdropAccordionItemProps> = ({ index, defaultIsOpen }) => {
const { isOpen, onToggle } = useDisclosure({ defaultIsOpen });

return (
<AccordionItem
mb="30px"
borderRadius={isOpen ? '20px 20px 0 0' : '20px'}
h="80px"
borderBottomColor={'transparent'}
zIndex={10 - index}
borderTopColor={'transparent'}
bgColor={'rgba(255, 128, 0, 1)'}
shadow={'md'}
position="relative"
_hover={{ bgColor: 'rgba(255, 128, 0, 0.9)' }}
>
<h2>
<AccordionButton onClick={onToggle} h="80px" justifyContent="space-between">
<Badge borderRadius="full" px={3} py={1.5} mr={3} colorScheme="orange">
{index + 1}
</Badge>
<Box flex="1" textAlign="left" alignItems={'center'} fontSize="lg" fontWeight="semibold">
<Text fontSize={'2xl'}>{index === 0 ? 'CLAIM INITIAL QCK AIRDROP' : 'ACTION DESCRIPTION'}</Text>
</Box>
<ChevronDownIcon />
</AccordionButton>
</h2>
{isOpen && (
<AccordionPanel p={4} borderBottomRadius="20px" h="120px" pb={'30px'} bgColor="rgba(255, 128, 0, 1)">
<Text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</Text>
</AccordionPanel>
)}
</AccordionItem>
);
};

const AirdropSection = () => {
const { isOpen, onToggle } = useDisclosure();

return (
<VStack spacing={4} align="stretch">
<Box bg={'rgba(255,255,255,0.1)'} p={5} shadow="md" borderRadius="lg">
<Flex justifyContent="space-between" alignItems="center" mb={5}>
<Text fontSize="xl" fontWeight="bold">
Cosmos Hub Active Airdrop
</Text>
<Tooltip label="This is your total allocation" aria-label="A tooltip">
<Icon as={InfoOutlineIcon} />
</Tooltip>
</Flex>
<Progress colorScheme="orange" size="sm" value={40} mb={5} />
<Accordion allowToggle defaultIndex={[0]}>
{Array.from({ length: 5 }).map((_, index) => (
<AirdropAccordionItem key={index} index={index} defaultIsOpen={index === 0} />
))}
</Accordion>
</Box>
<Box bg={'rgba(255,255,255,0.1)'} p={5} shadow="md" borderRadius="lg">
<Flex justifyContent="space-between" alignItems="center" mb={5}>
<Text fontSize="xl" fontWeight="bold">
Participate in Other Airdrops
</Text>
</Flex>
<HStack overflow="auto">
{/* Replace these with actual chain data */}
{['OSMOSIS', 'JUNO', 'STARGAZE', 'REGEN', 'COSMOS'].map((chain) => (
<VStack key={chain} spacing={3} align="center">
<Box w="100px" h="100px" bg="gray.100" borderRadius="md" />
<Text fontSize="md">{chain}</Text>
<Button rightIcon={<ChevronRightIcon />} colorScheme="teal" variant="link">
View Airdrop
</Button>
</VStack>
))}
</HStack>
</Box>
</VStack>
);
};

export default AirdropSection;
Loading

0 comments on commit d106d16

Please sign in to comment.