Skip to content

Fix search #56

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

Open
wants to merge 106 commits into
base: fix_search
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
4db376f
Merge pull request #33 from yann300/fix_search
yann300 Sep 12, 2022
0e8f1bd
fix wrong contractRef used for minting
joeizang Sep 14, 2022
1d97aec
remove redundant useReducer call and reducer function
joeizang Sep 14, 2022
f7db94b
Merge pull request #38 from yann300/joeizang-patch-3
yann300 Sep 14, 2022
c97d4af
fix copy icon disappearance. Add shadow and animation to NFT cards
joeizang Sep 14, 2022
5a23a73
fix redundant contract creation. fix minor redundancies in code
joeizang Sep 14, 2022
5e83b05
adjust shadows.
joeizang Sep 15, 2022
242bc90
justify left
joeizang Sep 15, 2022
7a7ff79
remove redundant console log
joeizang Sep 15, 2022
b4d30ad
fix ens search bug
joeizang Sep 15, 2022
b1d0917
remove redundant submitHandler function
joeizang Sep 15, 2022
dc1fe94
fix buggy spinner when badges are not found
joeizang Sep 15, 2022
05610d2
use Skeleton instead of spinners while images load
joeizang Sep 16, 2022
a246fbb
fix conditional load more button display
joeizang Sep 16, 2022
ca8bf0f
fix load more button displaying
joeizang Sep 22, 2022
d9acdbb
finish fixing load more button displaying
joeizang Sep 22, 2022
d30b0db
fix footer to reflect main site
joeizang Sep 22, 2022
7bf9ca3
fix styling for footer icons
joeizang Sep 23, 2022
76b6b23
Merge pull request #37 from yann300/joeizang-patch-2
yann300 Sep 26, 2022
90e9d56
remove duplicate contract initialization in BrowseBadges
joeizang Nov 8, 2022
b6d0f84
fix key prop error. minor browsebadges refactor
joeizang Nov 9, 2022
745cac0
fix styling on AddressedCard Component. Comment out implementation. N…
joeizang Nov 10, 2022
03161bb
generate eventBadges array with all desired properties
joeizang Nov 11, 2022
c0b616e
working on presenting nft groups
joeizang Nov 13, 2022
a4e21d8
revert some changes
joeizang Nov 14, 2022
13913f8
create rewardGroup component to hold groups of rewards
joeizang Nov 14, 2022
8397aa6
fix group card display. add basic accordion
joeizang Nov 14, 2022
a1ad840
change grouping criterium to payload
joeizang Nov 15, 2022
5a91b39
resolve ens names cleanly
joeizang Nov 16, 2022
6a3e3f7
removed commented out code
joeizang Nov 16, 2022
0f3852b
add view transaction buttons to owner addresses
joeizang Nov 16, 2022
1fa66d8
clean up
joeizang Nov 16, 2022
cdb280e
change grouping determinant to tokenType and payload
joeizang Nov 16, 2022
701d0e3
clean up
joeizang Nov 16, 2022
01a63a1
remove unnecessary conditional check
joeizang Nov 16, 2022
8a47e79
clean up App.jsx
joeizang Nov 16, 2022
9be5be2
cleanup BrowseBadges.jsx
joeizang Nov 16, 2022
8755a63
removed unused state property in RewardGroupCard.jsx
joeizang Nov 16, 2022
ff2f77b
renamed variable for unwrapped items
joeizang Nov 16, 2022
f9e0b5a
refactor and remove needless nested loop in BrowseBadges.jsx
joeizang Nov 16, 2022
a1357f0
Merge pull request #41 from yann300/group-badges
yann300 Nov 16, 2022
619fbe4
add custom button to accordion
joeizang Nov 28, 2022
7217491
fix types for Accounts.tsx
joeizang Nov 28, 2022
a1996c1
fixing more types
joeizang Nov 28, 2022
e1b6482
fix more type errors
joeizang Nov 28, 2022
28c649f
fix types in other components
joeizang Nov 28, 2022
868c80e
fix more type errors
joeizang Nov 28, 2022
b4b6c67
finish converting app to typescript
joeizang Nov 28, 2022
d4cf49d
add updates to yarn lock and package json
joeizang Nov 28, 2022
be384ff
fix Remixer nft card height
joeizang Nov 29, 2022
870abed
fix typing in NftCard component
joeizang Nov 29, 2022
99d0d92
apply comments from @yann300
joeizang Dec 1, 2022
147f7e7
address comments from @vermouth22
joeizang Dec 1, 2022
2d7d976
fix spacing in accordion items
joeizang Dec 1, 2022
303b812
fix border radius of accordion
joeizang Dec 1, 2022
ce203b1
Merge pull request #44 from yann300/group-ui-improv
yann300 Dec 2, 2022
3dac616
cleanup
joeizang Dec 7, 2022
75bcb32
add skeleton of about page
joeizang Dec 7, 2022
f5ab262
working on about page styling
joeizang Dec 8, 2022
cbf628c
remove unwanted artifacts
joeizang Dec 8, 2022
8176986
cleanup
joeizang Dec 7, 2022
0205874
just add random text
joeizang Dec 8, 2022
16f2210
Merge branch 'about-rewards-page' of github.com:yann300/remix-rewards…
joeizang Dec 8, 2022
17952d1
add prop types for infocard. add heading and variant
joeizang Dec 8, 2022
83a9363
center infocards. style heading properly.
joeizang Dec 12, 2022
5d5a338
fix styling of infocards. Add abstractions
joeizang Dec 13, 2022
1df51f0
add prop type for more rewards component.
joeizang Dec 14, 2022
1f9602c
add key components to more rewards component
joeizang Dec 14, 2022
4d81f10
rework typing for badges
joeizang Dec 14, 2022
60fdf68
undo redundant provider use
joeizang Dec 18, 2022
d3b0ff1
fix misspelling
joeizang Dec 20, 2022
e4ea231
add review comments recommended by @vermouth22
joeizang Dec 28, 2022
93ee756
Merge pull request #47 from yann300/about-rewards-page
joeizang Dec 28, 2022
2e83950
add scroll to accordion
joeizang Jan 11, 2023
d345fd8
add pacakge. refactor rewardGroup component
joeizang Feb 3, 2023
cf4b3f9
remove package.
joeizang Feb 3, 2023
0bcfd93
remove redundant packge-lock.json. update packages
joeizang Feb 3, 2023
c932985
finish group scroll
joeizang Feb 3, 2023
e56b3d2
fix padding in card grouping
joeizang Feb 6, 2023
1f8f17d
change scrollbar color. fix scrollbar width
joeizang Feb 6, 2023
686d76b
Merge pull request #49 from yann300/accordion-ui-fix
joeizang Feb 7, 2023
572e39a
Update BrowseBadges.tsx
vermouth22 Aug 3, 2023
b63dfd5
Update MintingPage.tsx
vermouth22 Aug 3, 2023
eb3d74b
Merge pull request #52 from yann300/vermouth22-patch-2
joeizang Aug 3, 2023
6abfaca
Merge pull request #51 from yann300/vermouth22-patch-1
joeizang Aug 3, 2023
75c83f5
fix ipfs endpoint
yann300 Aug 14, 2023
746f46f
Merge pull request #53 from yann300/fix_ipfs_endpoin
yann300 Aug 14, 2023
d194920
scroll
yann300 Feb 23, 2024
61f3f61
Merge pull request #1 from remix-project-org/scroll
yann300 Feb 23, 2024
b98cb12
fix build && add scroll
yann300 Feb 23, 2024
c842919
scroll
yann300 Feb 24, 2024
c8273c7
various fixes
yann300 Feb 25, 2024
1aeb5bb
Merge pull request #2 from remix-project-org/scroll
yann300 Feb 26, 2024
42b3762
update scroll endpoint
yann300 Oct 26, 2024
17310d6
fix build
yann300 Jan 30, 2025
1b04440
remove resolvinh ENS
yann300 Jan 30, 2025
af4bac8
add Lisk
yann300 Jan 30, 2025
7f02ae1
add Lisk switch
yann300 Jan 30, 2025
ddf3271
fix using cache
yann300 Feb 3, 2025
4da862b
comment List
yann300 Feb 3, 2025
959d2ad
Merge pull request #3 from remix-project-org/Lisk
yann300 Feb 3, 2025
c3a9417
fix cache
yann300 Feb 3, 2025
3f2a1c2
Merge pull request #4 from remix-project-org/Lisk
yann300 Feb 3, 2025
853e695
Create funding.json
yann300 Feb 11, 2025
83cd6b3
Merge pull request #5 from remix-project-org/yann300-patch-1
yann300 Feb 11, 2025
9e0bc83
fix search and fix Scroll searching
yann300 Feb 12, 2025
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
5 changes: 5 additions & 0 deletions funding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"opRetro": {
"projectId": "0x754c37e401e2527ab24b9d7ca3e042bfcbfebeef54a533f8833d46242d2c3017"
}
}
1,288 changes: 0 additions & 1,288 deletions package-lock.json

This file was deleted.

17 changes: 2 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,6 @@
"fundedwallet": "cd packages/hardhat && npx hardhat fundedwallet",
"flatten": "cd packages/hardhat && npx hardhat flatten",
"clean": "cd packages/hardhat && npx hardhat clean",
"run-graph-node": "yarn workspace @scaffold-eth/services run-graph-node",
"remove-graph-node": "yarn workspace @scaffold-eth/services remove-graph-node",
"clean-graph-node": "yarn workspace @scaffold-eth/services clean-graph-node",
"graph-prepare": "mustache packages/subgraph/config/config.json packages/subgraph/src/subgraph.template.yaml > packages/subgraph/subgraph.yaml",
"graph-codegen": "yarn workspace @scaffold-eth/subgraph graph codegen",
"graph-build": "yarn workspace @scaffold-eth/subgraph graph build",
"graph-create-local": "yarn workspace @scaffold-eth/subgraph graph create --node http://localhost:8020/ scaffold-eth/your-contract",
"graph-remove-local": "yarn workspace @scaffold-eth/subgraph graph remove --node http://localhost:8020/ scaffold-eth/your-contract",
"graph-deploy-local": "yarn workspace @scaffold-eth/subgraph graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 scaffold-eth/your-contract",
"graph-ship-local": "yarn graph-prepare && yarn graph-codegen && yarn graph-deploy-local",
"deploy-and-graph": "yarn deploy && yarn graph-ship-local",
"theme": "yarn workspace @scaffold-eth/react-app theme",
"watch-theme": "yarn workspace @scaffold-eth/react-app watch",
"postinstall": "husky install"
Expand All @@ -59,19 +48,17 @@
"packages/*"
],
"nohoist": [
"**/@graphprotocol/graph-ts",
"**/@graphprotocol/graph-ts/**",
"**/hardhat",
"**/hardhat/**",
"**/hardhat-ts",
"**/hardhat-ts/**"
]
},
"dependencies": {
"@alch/alchemy-sdk": "^1.0.6",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.6.1"
"@mui/material": "^5.6.1",
"multihashes": "4.0.3"
},
"devDependencies": {
"husky": "^7.0.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"dependencies": {
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers",
"@nomiclabs/hardhat-etherscan": "^3.0.1",
"@nomiclabs/hardhat-waffle": "^2.0.0",
"@openzeppelin/contracts": "^4.4.2",
"@tenderly/hardhat-tenderly": "^1.0.10",
"@nomiclabs/hardhat-etherscan": "^3.0.1",
"chai": "^4.2.0",
"chalk": "^4.1.0",
"dotenv": "^8.2.0",
Expand Down
19 changes: 15 additions & 4 deletions packages/react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.8",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-blockies": "^1.4.1",
"@types/react-copy-to-clipboard": "^5.0.4",
"@types/react-dom": "^18.0.9",
"@types/react-router-dom": "^5.3.3",
"@uniswap/sdk": "^3.0.3",
"@uniswap/v2-periphery": "^1.1.0-beta.0",
"@walletconnect/web3-provider": "^1.5.2",
Expand All @@ -52,10 +58,10 @@
"fortmatic": "^2.2.1",
"graphiql": "^1.4.7",
"graphql": "^15.3.0",
"ipfs-http-client": "^55.0.0",
"isomorphic-fetch": "^3.0.0",
"node-watch": "^0.7.1",
"postcss": "^8.2.6",
"prop-types": "^15.8.1",
"qrcode.react": "^1.0.0",
"react": "^17.0.2",
"react-blockies": "^1.4.1",
Expand All @@ -64,16 +70,19 @@
"react-dom": "^17.0.2",
"react-qr-reader": "^2.2.1",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
"react-scripts": "5.0.1",
"searchico": "^1.2.1",
"typescript": "^4.9.3",
"walletlink": "^2.1.5",
"web3modal": "^1.9.1",
"yarn": "^1.22.18"
},
"devDependencies": {
"@apollo/client": "^3.3.21",
"@testing-library/dom": "^6.12.2",
"@types/react": "^16.9.19",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"autoprefixer": "^10.2.4",
"chalk": "^4.1.0",
"eslint-config-prettier": "^8.3.0",
Expand All @@ -83,10 +92,12 @@
"gulp-debug": "^4.0.0",
"gulp-less": "^4.0.1",
"gulp-postcss": "^9.0.0",
"husky": "^7.0.2",
"less-plugin-npm-import": "^2.1.0",
"prettier": "^2.0.5",
"s3-folder-upload": "^2.3.1",
"surge": "^0.21.5"
"surge": "^0.21.5",
"typescript": "^4.9.3"
},
"eslintConfig": {
"extends": [
Expand Down
Binary file added packages/react-app/public/BetaTester.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/react-app/public/Contributor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/react-app/public/DevConnector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/react-app/public/ReleaseManager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/react-app/public/UX Champion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions packages/react-app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Remix Rewards</title>
<style>
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
</style>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
92 changes: 0 additions & 92 deletions packages/react-app/scripts/ipfs.js

This file was deleted.

43 changes: 18 additions & 25 deletions packages/react-app/src/App.jsx → packages/react-app/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import React, { useCallback, useEffect, useState } from 'react'
// import { useUserProviderAndSigner } from 'eth-hooks'
import { NETWORKS } from './constants'
import { Layout } from './components'
import { BrowseBadges } from './views'
import MintingPage from './views/MintingPage'
import CloseIcon from '@mui/icons-material/Close'
import IconButton from '@mui/material/IconButton'
import Toast from 'components/Toast'
import { BadgeContext } from 'contexts/BadgeContext'
import externalContracts from 'contracts/external_contracts'
import Toast from './components/Toast'
import { BadgeContext } from './contexts/BadgeContext'
import externalContracts from './contracts/external_contracts'
import AboutPage from './views/AboutPage'
const { ethers } = require('ethers')
const temmainnet = new ethers.providers.StaticJsonRpcProvider(
'https://mainnet.infura.io/v3/1b3241e53c8d422aab3c7c0e4101de9c',
)

function App() {
// @ts-ignore
const [localProvider, setLocalProvider] = useState(null)
Expand All @@ -29,19 +30,6 @@ function App() {

const targetNetwork = NETWORKS['optimism']

let contractRef
let providerRef
if (
externalContracts[selectedChainId] &&
externalContracts[selectedChainId].contracts &&
externalContracts[selectedChainId].contracts.REMIX_REWARD
) {
contractRef = externalContracts[selectedChainId].contracts.REMIX_REWARD
providerRef = externalContracts[selectedChainId].provider
} else {
console.log('kosi externalContract')
}

const closeToast = () => {
setShowToast(false)
}
Expand All @@ -50,20 +38,24 @@ function App() {
return window.ethereum === undefined ? 'Not Found' : 'Found'
}, [])

const displayToast = useCallback(msg => {
const displayToast = useCallback((msg: string) => {
console.log(msg)
setShowToast(true)
}, [])

useEffect(() => {
const run = async () => {
const local = new ethers.providers.StaticJsonRpcProvider(providerRef)
await local.ready
setLocalProvider(local)
setLoaded(true)
//@ts-ignore
const extContract: any = externalContracts[selectedChainId]
if (extContract && extContract.contracts && extContract.contracts.REMIX_REWARD) {
const local = new ethers.providers.StaticJsonRpcProvider(extContract.provider)
await local.ready
setLocalProvider(local)
setLoaded(true)
}
}
run()
}, [providerRef])
}, [selectedChainId])

const snackBarAction = (
<>
Expand Down Expand Up @@ -92,7 +84,6 @@ function App() {
contractConfig,
displayToast,
externalContracts,
contractRef,
setShowToast,
closeWrongNetworkToast,
showWrongNetworkToast,
Expand All @@ -102,11 +93,13 @@ function App() {

return (
<div className="App">
<BadgeContext.Provider value={contextPayload}>
<BadgeContext.Provider value={contextPayload}>
<Layout tabValue={tabValue} setTabValue={setTabValue}>
{loaded && tabValue === 0 && <BrowseBadges />}

{tabValue === 1 && <MintingPage />}

{tabValue === 2 && <AboutPage />}
<Toast
showToast={showToast}
closeToast={closeToast}
Expand Down
54 changes: 54 additions & 0 deletions packages/react-app/src/components/About/InfoCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { CardContent } from '@mui/material'
import Box from '@mui/material/Box'
import Card from '@mui/material/Card'
import Typography from '@mui/material/Typography'
import { RewardNames } from '../../types/rewardTypes'

export interface InfoCardProps {
imageSrc: string
rewardType: RewardNames
text: JSX.Element
}

export default function InfoCard({ imageSrc, rewardType, text }: InfoCardProps) {
return (
<Card
sx={{
background: 'rgba(255,255,255,0.6)',
boxShadow: '1px 1px 4px 0px rgb(170,170,170)',
width: 530,
borderRadius: 5,
zIndex: 900,
}}
>
<Box sx={{ display: 'flex', height: '100%' }}>
{rewardType === 'Remixer' ? (
<img
style={{ borderRadius: '10px', border: '1px solid #ccc', objectFit: 'cover', marginLeft: 0 }}
width={200}
height={241}
src={imageSrc}
alt={'Reward description'}
/>
) : (
<img
style={{ borderRadius: '10px', border: '1px solid #ccc', objectFit: 'cover', marginLeft: 0 }}
width={200}
src={imageSrc}
alt={'Reward description'}
/>
)}
<Box sx={{ marginLeft: 2 }}>
<CardContent>
<Typography variant="h5" fontWeight={700} color={'#333333'} align={'left'}>
{rewardType}
</Typography>
<Typography align="left" variant="body1" fontWeight={500} color={'#333333'}>
{text}
</Typography>
</CardContent>
</Box>
</Box>
</Card>
)
}
Loading