-
Notifications
You must be signed in to change notification settings - Fork 1
[Campaign Launcher UI] Redesign Dashboard and Campaigns pages #782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
97859aa
feat: redesign dashboard and campaigns pages, add new components and …
KirillKirill 9fad8a6
chore: refactored some code, mostly a cosmetic changes
KirillKirill cf2972d
chore: remove network and address columns from campaigns table
KirillKirill 822ce91
chore: implement indicator for campaign timeline
KirillKirill 1e0a6f3
fix: address copilot comments
KirillKirill e7ee995
feat: rework layout and reserve a place for bottom nav on mobile
KirillKirill 4699b4c
feat: add history filters
KirillKirill b3354c5
chore: change color of the exchange lable in the table
KirillKirill a13fdcf
chore: remove countdown logic for now
KirillKirill dbd1e70
chore: using radio instead of checkbox for history filters
KirillKirill c6245ca
chore: memoize current filter values
KirillKirill 9baab20
chore: implement BaseDrawer component; separate CampaignFilters compo…
KirillKirill 5740a04
chore: minor ui improvements
KirillKirill c922fb8
chore: hide launch campaign button, if wallet is not connected
KirillKirill 797953f
chore: disable history filters, when there's some loading; show Load …
KirillKirill fcf7fdb
feat: add inifinite pagination, rework campaigns page inner components
KirillKirill f548e78
feat: connect type and exchange filters to the backend
KirillKirill 7d4ed72
chore: add util that handles numbers K notation
KirillKirill 8d2ccea
feat: add JoinCampaign button
KirillKirill 2a01cc5
chore: remove old JoinCampaign component
KirillKirill 7c5f682
refactor: remove unused component, improve CampaignTimeline
KirillKirill f884f26
refactor: change 'All' option value to 'all' instead of empty string;…
KirillKirill a3c3754
feat: remember user's choice of campaigns view
KirillKirill 1e520f5
feat: handle passing multiple statuses into filter query; rename togg…
KirillKirill d7524f5
chore: a minor styles changes, format long numbers in the table
KirillKirill 78a5398
refactor: separate Campaign and JoinedCampaign type
KirillKirill 0eef069
chore: add tooltip to the chain logo in the CampaignCard
KirillKirill ecd79ab
chore: add Clear All button to the filters dialog
KirillKirill 1b4f90b
feat: take user to the docs api key section
KirillKirill 3f948c6
feat: add empty state for the campaigns feed; refactor some components
KirillKirill a742be8
refactor: a connect wallet component
KirillKirill 66dee4e
fix: minor style adjustment
KirillKirill 398079c
chore: improve loading state of the CampaignsFeed
KirillKirill 4410a8e
refactor: changed a content of the FAQ section
KirillKirill b092068
chore: increase container's maxWidth
KirillKirill 91ce23f
fix: copy in FAQ section
KirillKirill 674864f
fix: a styles of the dashboard widget
KirillKirill 2e982fb
chore: add icon to the MobileBottomNav
KirillKirill 6c0f749
fix: hydration error and incorrect svg prop
KirillKirill 1868b8e
[Campaign Launcher UI] Redesign Campaign Details page (#788)
KirillKirill b6ec21e
chore: address feedback
KirillKirill File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
campaign-launcher/client/src/components/AboutHuFi/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| import { type FC } from 'react'; | ||
|
|
||
| import { Link, Stack, Typography } from '@mui/material'; | ||
|
|
||
| import logo from '@/assets/logo.svg'; | ||
| import { useIsMobile } from '@/hooks/useBreakpoints'; | ||
| import { ArrowLeftIcon } from '@/icons'; | ||
|
|
||
| const DOCS_URL = import.meta.env.VITE_APP_DOCS_URL; | ||
|
|
||
| const AboutHuFi: FC = () => { | ||
| const isMobile = useIsMobile(); | ||
|
|
||
| return ( | ||
| <Stack gap={{ xs: 2, md: 3 }}> | ||
| <Typography | ||
| variant={isMobile ? 'h6' : 'h5'} | ||
| color="white" | ||
| fontWeight={{ xs: 500, md: 800 }} | ||
| letterSpacing={{ xs: '0px', md: '-0.5px' }} | ||
| > | ||
| About HuFi | ||
| </Typography> | ||
| <Stack | ||
| px={2} | ||
| py={{ xs: 2, md: 4 }} | ||
| borderRadius="8px" | ||
| border="1px solid #433679" | ||
| bgcolor="#251d47" | ||
| > | ||
| {!isMobile && <img src={logo} alt="HuFi" width={125} />} | ||
| <Typography | ||
| variant="body2" | ||
| color="white" | ||
| fontWeight={600} | ||
| mt={{ xs: 0, md: 4 }} | ||
| mb={2} | ||
| > | ||
| HuFi is a decentralized tradeathon organizing platform where | ||
| communities earn rewards for holding, trading, and contributing to | ||
| activities that support the token's growth. | ||
| </Typography> | ||
| <Link | ||
| href={DOCS_URL} | ||
| target="_blank" | ||
| rel="noreferrer" | ||
| sx={{ | ||
| display: 'inline-flex', | ||
| alignItems: 'center', | ||
| width: 'fit-content', | ||
| color: 'error.main', | ||
| fontSize: 16, | ||
| fontWeight: 500, | ||
| textDecoration: 'underline', | ||
| textDecorationColor: 'error.main', | ||
| }} | ||
| > | ||
| Learn More | ||
| <ArrowLeftIcon | ||
| sx={{ width: 24, height: 24, transform: 'rotate(135deg)' }} | ||
| /> | ||
| </Link> | ||
| </Stack> | ||
| </Stack> | ||
| ); | ||
| }; | ||
|
|
||
| export default AboutHuFi; |
40 changes: 0 additions & 40 deletions
40
campaign-launcher/client/src/components/ActiveCampaignsFilter/index.tsx
This file was deleted.
Oops, something went wrong.
103 changes: 66 additions & 37 deletions
103
campaign-launcher/client/src/components/AllCampaigns/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
campaign-launcher/client/src/components/CampaignCard/SkeletonView.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| import { Paper, Skeleton, Stack } from '@mui/material'; | ||
|
|
||
| const SkeletonCard = () => { | ||
| return ( | ||
| <Paper | ||
| sx={{ | ||
| display: 'flex', | ||
| p: 2, | ||
| gap: 1.5, | ||
| flexDirection: 'column', | ||
| bgcolor: '#251d47', | ||
| borderRadius: '8px', | ||
| border: '1px solid #433679', | ||
| boxShadow: 'none', | ||
| }} | ||
| > | ||
| <Stack direction="row" justifyContent="space-between" alignItems="center"> | ||
| <Skeleton variant="text" width={140} height={28} /> | ||
| <Skeleton variant="text" width={125} height={28} /> | ||
| </Stack> | ||
| <Stack justifyContent="center" gap={1}> | ||
| <Skeleton variant="text" width={150} height={30} /> | ||
| <Skeleton variant="text" width={150} height={20} /> | ||
| </Stack> | ||
| <Stack | ||
| direction="row" | ||
| justifyContent="space-between" | ||
| alignItems="center" | ||
| gap={2} | ||
| > | ||
| <Skeleton variant="rectangular" height={90} sx={{ flex: 1 }} /> | ||
| <Skeleton variant="rectangular" height={90} sx={{ flex: 1 }} /> | ||
| </Stack> | ||
| <Stack | ||
| direction="row" | ||
| justifyContent="space-between" | ||
| alignItems="center" | ||
| gap={2} | ||
| > | ||
| <Skeleton variant="rectangular" height={44} sx={{ flex: 1 }} /> | ||
| <Skeleton variant="rectangular" height={44} sx={{ flex: 1 }} /> | ||
| </Stack> | ||
| </Paper> | ||
| ); | ||
| }; | ||
|
|
||
| export default SkeletonCard; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.