Skip to content
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

feat(taikoon): ui qa checklist #16870

Merged
merged 124 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from 80 commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
1992970
brought over contracts, tests and scripts; getting everything to run now
bearni95 Apr 25, 2024
b9b56ba
refreshed gitignore
bearni95 Apr 25, 2024
570e770
removed lib from tree
bearni95 Apr 25, 2024
175e4a4
tracking pnpm-lock.yaml main
bearni95 Apr 25, 2024
2d89594
missing deps added to enable compiling
bearni95 Apr 25, 2024
d3335f1
format & mint
bearni95 Apr 25, 2024
cb4baca
cleared lint warnings
bearni95 Apr 25, 2024
d44c463
updated pnpm; passing tests and build
bearni95 Apr 25, 2024
6817f27
removed .gitmodules
bearni95 Apr 25, 2024
71eaf4c
fixed typo leafs > leaves
bearni95 Apr 25, 2024
2442adc
added build step to gha
bearni95 Apr 25, 2024
7a522a2
fixed merkle whitelist generation script under new location
bearni95 Apr 25, 2024
5f55717
localhost deployment re-enabled
bearni95 Apr 25, 2024
30ec660
added holesky deployment
bearni95 Apr 25, 2024
311d129
restored ipfs deploy script
bearni95 Apr 25, 2024
c7e5731
updated pnpm-lock.yaml
bearni95 Apr 25, 2024
3e2099f
ran linter
bearni95 Apr 25, 2024
8b42156
simplified tests for taikoonToken.t.sol
bearni95 Apr 25, 2024
ae80196
updated forge-std version
bearni95 Apr 25, 2024
9e6f6e9
added compile step to gha
bearni95 Apr 25, 2024
bacd1d1
fixed gha typo
bearni95 Apr 25, 2024
3bd7dad
upgraded foundry toolchain version on gha
bearni95 Apr 25, 2024
ae94276
upgraded foundry toolchain version on gha
bearni95 Apr 25, 2024
57d0404
frontend builds
bearni95 Apr 25, 2024
b724f0d
holesky deployments enabled
bearni95 Apr 25, 2024
93328c9
recovered functionality for frontend
bearni95 Apr 25, 2024
f10fade
gha for taikoon-ui
bearni95 Apr 25, 2024
84e2746
removed unused graphql schema
bearni95 Apr 25, 2024
bf6c85a
formatted and linted frontend
bearni95 Apr 25, 2024
a8dd1d1
changed lorem ipsum to the first pages of the hobbit to bypass typo c…
bearni95 Apr 25, 2024
3c8b4f4
added .env var to gha
bearni95 Apr 25, 2024
78057a4
typos fixed
bearni95 Apr 25, 2024
a816b7c
fixes for lint and typos
bearni95 Apr 25, 2024
b0de72e
Merge branch 'main' into taikoon-ui-setup
bearni95 Apr 26, 2024
5992373
corrected background gradient and color on light mode
bearni95 Apr 26, 2024
a5a7333
snap scroll
bearni95 Apr 26, 2024
659b5b7
header glassy bg after scroll only
bearni95 Apr 26, 2024
468ba06
nav buttons and header fixes
bearni95 Apr 26, 2024
6dd13fd
wtf text replacements
bearni95 Apr 26, 2024
08ca14f
Merge branch 'main' into taikoon-ui-setup
dantaik Apr 29, 2024
2b62a91
removed csv and json whitelists; added an example templated one
bearni95 Apr 29, 2024
08799e8
using viem's zeroAddress instead of custom one
bearni95 Apr 29, 2024
e456f00
replaced explicit address type with viem's one
bearni95 Apr 29, 2024
47b825e
moved IPFS_GATEWAY to .env; created .env.example
bearni95 Apr 29, 2024
4e90dec
cleanup of unused errors
bearni95 Apr 29, 2024
eaca895
- token custom errors implemented
bearni95 Apr 29, 2024
d11656e
ipfs custom errors
bearni95 Apr 29, 2024
4ca46ce
cleanup of unused errors
bearni95 Apr 29, 2024
5b77e71
replaced 'classes' component export with 136259props.class
bearni95 Apr 29, 2024
7df8737
i18n texts for landing and countdown pages and all their sections
bearni95 Apr 29, 2024
6240913
mint page, mint modal and terms modal have i18n texts
bearni95 Apr 29, 2024
47775d6
collection page using i18n
bearni95 Apr 29, 2024
43ac853
using daisyui collapsible element
bearni95 Apr 29, 2024
9431abd
non-core, non-modal, non-section components with abstracted classing
bearni95 Apr 29, 2024
fdb8434
refactored classes for core components
bearni95 Apr 29, 2024
86c0883
refactored classes for modals
bearni95 Apr 29, 2024
bfb6e75
refactored classes out of sections
bearni95 Apr 29, 2024
ece7ca9
re-run pnpm install + lock.yaml
bearni95 Apr 29, 2024
df0f258
Merge branch 'main' into taikoon-ui-setup
bearni95 Apr 29, 2024
a75cc55
patched pnpm-lock.yaml
bearni95 Apr 29, 2024
a024efc
formatted and lintes taikoons package
bearni95 Apr 29, 2024
6c86d89
added env var for ipfs gateway to gha
bearni95 Apr 29, 2024
9650451
Merge branch 'taikoon-ui-setup' into ui-qa-checklist
bearni95 Apr 29, 2024
3db0718
lint, format, fresh deployment
bearni95 Apr 29, 2024
d47e9f3
adjusted design and animation for 'mint now' button
bearni95 Apr 29, 2024
a5d1b71
fixed footer display on all resolutions; fixed responsive screen assi…
bearni95 Apr 29, 2024
d2059c5
recreated taiko-xyz footer animations
bearni95 Apr 29, 2024
d1d6afd
fixed vertical alignment for mint page
bearni95 Apr 29, 2024
596d369
info section css corrections
bearni95 Apr 29, 2024
74ea918
faq design adjustments
bearni95 Apr 29, 2024
104fb18
minor spacing correction for faq
bearni95 Apr 29, 2024
6ea14f6
implemented batch-only, free design for mint form
bearni95 Apr 29, 2024
16c626f
fixed overlapping panel on mint page for mobile
bearni95 Apr 29, 2024
4d884b6
minor fix for md display of non-authed, connect button
bearni95 Apr 29, 2024
c1e31ab
Merge branch 'main' into ui-qa-checklist
bearni95 Apr 30, 2024
7137428
mint modal adjustments
bearni95 Apr 30, 2024
70dfaf8
split mint confirmation and post-mint modals
bearni95 Apr 30, 2024
ffd59f2
Merge branch 'main' into ui-qa-checklist
bearni95 Apr 30, 2024
100db26
visual implementation of the post-mint nft slider
bearni95 Apr 30, 2024
49afbd6
fully functional nft slider
bearni95 Apr 30, 2024
ef2e879
network config update
bearni95 May 6, 2024
dd04588
Merge branch 'main' into ui-qa-checklist
bearni95 May 7, 2024
f12a712
format, lint, build
bearni95 May 7, 2024
2d68157
fixes for pre-mint site
bearni95 May 8, 2024
341dc4b
carousel scrolling
bearni95 May 8, 2024
1350511
missing pnpm lock file
bearni95 May 8, 2024
390098d
color corrections on footer
bearni95 May 9, 2024
65f0e42
carousel on post-mint nft viewer
bearni95 May 9, 2024
ac33f9d
collection filters replaced with title
bearni95 May 9, 2024
8d4b654
copyright padding fix on mobile menu
bearni95 May 9, 2024
c5f63e2
merged main
bearni95 May 9, 2024
ae21819
added env date to gha
bearni95 May 9, 2024
c16d0f0
forge fmt & update contract layout table
bearni95 May 9, 2024
ad2da0c
adapted gha task to config structure of taikoon-ui; exported .env.exa…
bearni95 May 9, 2024
e9457b8
Merge branch 'ui-qa-checklist' of ssh://github.com/taikoxyz/taiko-mon…
bearni95 May 9, 2024
0751ab6
gha exporting .env.example
bearni95 May 9, 2024
3341b2a
gha exporting .env.example
bearni95 May 9, 2024
003ff2e
proper check command on gha
bearni95 May 9, 2024
9529e30
fixed most svelte:check errors
bearni95 May 9, 2024
2c32377
fixes for svelte:check; using daisy-ui countdown
bearni95 May 9, 2024
4c6797f
removed svelte-countdown as a dependency
bearni95 May 9, 2024
1fb25ef
updated pnpm
bearni95 May 9, 2024
311e09a
exported vars for check on gha
bearni95 May 9, 2024
188c477
fixed tests and checks
bearni95 May 9, 2024
d6a7ee0
check corrections
bearni95 May 9, 2024
fa782f9
Merge branch 'main' into ui-qa-checklist
bearni95 May 13, 2024
6c7d7c8
Merge branch 'main' into ui-qa-checklist
bearni95 May 13, 2024
ff7c869
updated pnpm-lock
bearni95 May 13, 2024
58c977c
added svelte:check npm script
bearni95 May 13, 2024
39ce547
updated pnpm-lock.yaml
bearni95 May 13, 2024
8aa5060
flags on gha
bearni95 May 13, 2024
6ef6f71
Merge branch 'main' into ui-qa-checklist
bearni95 May 13, 2024
f7a35a2
altering env configs for gha
bearni95 May 13, 2024
a1eb4f3
removed redundant .env.example flag from gha
bearni95 May 13, 2024
2a544c7
gha formatting
bearni95 May 13, 2024
cda319f
export values from .env.example
May 13, 2024
452c8c7
test check for initial svelte-kit sync
May 13, 2024
a3c7f75
restore file
May 13, 2024
044c2c2
restore changes
May 13, 2024
1d6bf06
Merge branch 'main' into ui-qa-checklist
bearni95 May 14, 2024
3976980
restored taikoon-ui-ci
bearni95 May 14, 2024
88f72b1
reverted test change to action
bearni95 May 14, 2024
9fd3515
Merge branch 'main' into ui-qa-checklist
bearni95 May 14, 2024
d193ee8
Merge branch 'main' into ui-qa-checklist
bearni95 May 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<script lang="ts">
import { Icons } from '$components/core/Icons';
import { classNames } from '$lib/util/classNames';
export let isHovered = false;
const ArrowIcon = Icons.ArrowRightFilled;

const wrapperClasses = classNames(
'bg-primary-content',
'rounded-full',
'w-[32px]',
'h-[32px]',
'flex',
'items-center',
'justify-center',
'overflow-hidden',
);

$: arrowsWrapper = classNames(
'w-full',
'h-full',
'relative',

'flex',
'items-center',
'justify-center',
'transition',
'transform',
isHovered ? 'translate-x-[100%]' : null,
'ease-in-out',
'duration-300',
);

const arrowClasses = classNames('absolute');

const leftArrowClasses = classNames(arrowClasses, 'left-[-100%]');

const rightArrowClasses = classNames(arrowClasses);
</script>

<div class={wrapperClasses}>
<div class={arrowsWrapper}>
<ArrowIcon size="32" class={leftArrowClasses} />
<ArrowIcon size="32" class={rightArrowClasses} />
</div>
</div>
1 change: 1 addition & 0 deletions packages/taikoon-ui/src/components/AnimatedArrow/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as AnimatedArrow } from './AnimatedArrow.svelte';
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import { formatEther } from 'viem';
import { zeroAddress } from 'viem';

import { ResponsiveController } from '$components/core/ResponsiveController';
import { Spinner } from '$components/core/Spinner';
import { getChainImage } from '$lib/chain';
import { web3modal } from '$lib/connect';
import { refreshUserBalance } from '$lib/util/balance';
Expand All @@ -13,11 +15,18 @@
import { account } from '$stores/account';
import { ethBalance } from '$stores/balance';
import { connectedSourceChain } from '$stores/network';
import { Button } from '$ui/Button';
import { config } from '$wagmi-config';

let windowSize: 'sm' | 'md' | 'lg' = 'md';

import type { IAddress } from '../../types';
import { addressClasses, buttonContentClasses, chainIconClasses, connectedButtonClasses } from './classes';
import {
addressClasses,
buttonContentClasses,
chainIconClasses,
connectButtonClasses,
connectedButtonClasses,
} from './classes';
export let connected = false;

let web3modalOpen = false;
Expand Down Expand Up @@ -48,6 +57,9 @@
if (!account.address) return;
balance = await getBalance(account.address);
});

import { Icons } from '$components/core/Icons';
const { CircleUserRegular: CircleUserIcon } = Icons;
</script>

{#if connected}
Expand All @@ -56,22 +68,31 @@
alt="chain icon"
class={chainIconClasses}
src={(currentChainId && getChainImage(currentChainId)) || 'chains/ethereum.svg'} />
<span class={buttonContentClasses}
>{`Ξ ${parseFloat(formatEther(balance)).toFixed(3)}`}
<span class={addressClasses}>
{#await shortenAddress(accountAddress, 4, 6)}
...
{:then displayAddress}
{displayAddress}
{/await}
</span>
</span>
{#if windowSize !== 'md'}
<span class={buttonContentClasses}
>{`Ξ ${parseFloat(formatEther(balance)).toFixed(3)}`}
<span class={addressClasses}>
{#await shortenAddress(accountAddress, 4, 6)}
...
{:then displayAddress}
{displayAddress}
{/await}
</span>
</span>{/if}
</button>
{:else}
<Button type="primary" loading={web3modalOpen} iconLeft={'CircleUserRegular'} on:click={connectWallet}>
<button class={connectButtonClasses} on:click={connectWallet}>
{#if web3modalOpen}
Connecting
{:else}Connect Wallet
<Spinner size="sm" />
{#if windowSize !== 'md'}
Connecting
{/if}
{:else}
<CircleUserIcon size="16" />
{#if windowSize !== 'md'}
Connect Wallet{/if}
{/if}
</Button>
</button>
{/if}

<ResponsiveController bind:windowSize />
24 changes: 22 additions & 2 deletions packages/taikoon-ui/src/components/ConnectButton/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const connectedButtonClasses = classNames(
'rounded-full',
'flex',
'items-center',
'h-[44px]',
'gap-2',
'font-bold',
);
Expand All @@ -23,9 +24,28 @@ export const buttonContentClasses = classNames(
export const addressClasses = classNames(
'flex',
'rounded-full',
'p-2.5',
'px-2.5',
'py-2',
'bg-neutral-background',
'border border-divider-border',
);

export const chainIconClasses = classNames('w-[24px]', 'ml-1');
export const chainIconClasses = classNames(
'w-[24px]',
'ml-1',
//'md:ml-[0]',
'md:mx-2',
);

export const connectButtonClasses = classNames(
'w-max',
'h-[44px]',
'bg-primary',
'rounded-full',
'flex flex-row',
'justify-center',
'items-center',
'px-4',
'gap-4',
'font-medium',
);
20 changes: 13 additions & 7 deletions packages/taikoon-ui/src/components/Header/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
import { classNames } from '$lib/util/classNames';
import { account } from '$stores/account';
import { connectedSourceChain } from '$stores/network';
import { Button } from '$ui/Button';
import { pageScroll } from '$stores/pageScroll';
import { config } from '$wagmi-config';

import { ConnectButton } from '../ConnectButton';
import { ThemeButton } from '../ThemeButton';
import {
buttonClasses,
headerClasses,
baseHeaderClasses,
menuButtonsWrapperClasses,
mobileMenuButtonClasses,
navButtonClasses,
rightSectionClasses,
taikoonsIconClasses,
themeButtonSeparatorClasses,
Expand All @@ -29,6 +29,13 @@

$: isMobileMenuOpen = false;

$: headerClasses = classNames(
baseHeaderClasses,
$pageScroll ? 'md:glassy-background-lg' : null,
$pageScroll ? 'md:border-b-[1px] md:border-border-divider-default' : 'md:border-b-[1px] md:border-transparent',
$$props.class,
);

$: taikoonsOptions = [
{
icon: 'FileImageRegular',
Expand Down Expand Up @@ -72,12 +79,11 @@
</div>
{:else}
<div class={menuButtonsWrapperClasses}>
<Button href="/mint" type="neutral" class={buttonClasses}>Mint</Button>
<a href="/mint" type="neutral" class={navButtonClasses}>Mint</a>

<Button href="/collection" type="neutral" class={buttonClasses}>Collection</Button>
<a href="/collection" type="neutral" class={navButtonClasses}>Collection</a>
{#if address !== zeroAddress}
<Button href={`/collection/${address.toLowerCase()}`} type="neutral" class={buttonClasses}>
Your taikoons</Button>
<a href={`/collection/${address.toLowerCase()}`} type="neutral" class={navButtonClasses}> Your taikoons</a>
{/if}
</div>
<div class={rightSectionClasses}>
Expand Down
31 changes: 25 additions & 6 deletions packages/taikoon-ui/src/components/Header/classes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { classNames } from '$lib/util/classNames';
export const headerClasses = classNames(
export const baseHeaderClasses = classNames(
'md:px-10',
'md:py-10',
'h-16',
Expand All @@ -10,18 +10,15 @@ export const headerClasses = classNames(
'relative',
'z-50',
'px-4',
'md:glassy-background-lg',
'md:border-b-[1px] md:border-border-divider-default',
);

export const buttonClasses = classNames('text-lg', 'w-min', 'lg:w-[200px]');

export const taikoonsIconClasses = classNames('h-full');

export const rightSectionClasses = classNames(
'md:right-8',
'right-4',
'w-max',
'absolute',
'flex flex-row justify-center items-center',
'gap-4',
);
Expand All @@ -34,8 +31,30 @@ export const mobileMenuButtonClasses = classNames(
'flex justify-center items-center',
);

export const menuButtonsWrapperClasses = classNames('w-max', 'gap-4', 'flex', 'flex-row');
export const menuButtonsWrapperClasses = classNames(
'w-full',
'justify-center',
'items-center',
'gap-4',
'flex',
'flex-row',
);

export const wrapperClasses = classNames('w-full', 'z-0', 'fixed', 'top-0');

export const themeButtonSeparatorClasses = 'v-sep my-auto ml-0 mr-4 h-[24px]';

export const navButtonClasses = classNames(
'w-[140px]',
'h-[44px]',
'bg-nav-button',
'flex flex-row',
'justify-center',
'tracking-[-2%]',
'items-center',
'rounded-full',
'font-sans',
'font-medium',
'text-base/[135.5%]',
'text-content-primary',
);
Loading