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

Add creator staking page #80

Merged
merged 70 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from 62 commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
e0e11d5
Add tailwind styles config
samchuk-vlad Aug 9, 2023
edaf130
Add creators staking page
samchuk-vlad Aug 10, 2023
2963320
Add banner section for creators staking page
samchuk-vlad Aug 10, 2023
549289a
Add my staking and creators sections
samchuk-vlad Aug 11, 2023
c044c3e
Add creator card content
samchuk-vlad Aug 13, 2023
643daad
Fix styles for tabs
samchuk-vlad Aug 13, 2023
b95d366
Add pagination
samchuk-vlad Aug 14, 2023
b0f1524
Add sort by dropdown
samchuk-vlad Aug 14, 2023
914604d
Add stake modal
samchuk-vlad Aug 15, 2023
8994ee0
Add data to banner dashboard
samchuk-vlad Aug 17, 2023
353b619
Add creator staking data
samchuk-vlad Aug 17, 2023
4f98416
Add my stake to creator card
samchuk-vlad Aug 18, 2023
361341f
Add data to My Rewards section
samchuk-vlad Aug 18, 2023
07137d9
Add staking transactions
samchuk-vlad Aug 23, 2023
c87ed11
Add unstaking table
samchuk-vlad Aug 23, 2023
e513234
Add my creators section
samchuk-vlad Aug 24, 2023
a0123c2
Add sorting for creators
samchuk-vlad Aug 24, 2023
9dc90ae
Fix bug w/ nested modals
samchuk-vlad Aug 24, 2023
a4d9d3d
Add time remaining to unstake table
samchuk-vlad Aug 25, 2023
6e67155
Add input validation and show time to unstake
samchuk-vlad Aug 29, 2023
39b95e8
Refactor format time function
samchuk-vlad Aug 29, 2023
10d6ea6
Fix switch to first tab id unstaking table is empty
samchuk-vlad Aug 29, 2023
eaacf97
Fix mobile view
samchuk-vlad Aug 29, 2023
0be70e7
Fix dropdown menu
samchuk-vlad Aug 30, 2023
39c9341
Fix responsive size for creator cards
samchuk-vlad Aug 30, 2023
b4fd1a6
Add staker rewards and claim button
samchuk-vlad Aug 31, 2023
0c1e8c7
Add restake props to claim button
samchuk-vlad Aug 31, 2023
8440455
Add social links
samchuk-vlad Sep 4, 2023
efc6ed3
Merge remote-tracking branch 'origin/main' into creator-staking
samchuk-vlad Sep 4, 2023
c6e1dd9
Use yarn lint
samchuk-vlad Sep 4, 2023
35c0001
Fix top menu
samchuk-vlad Sep 4, 2023
0b3d050
Refactor code
samchuk-vlad Sep 6, 2023
aa9ccda
fix on failed text for creator staking api
samchuk-vlad Sep 6, 2023
5c0a801
Fix saga workers error texts
samchuk-vlad Sep 6, 2023
073d690
Add loading if creators cards is not loaded
samchuk-vlad Sep 6, 2023
24dd4be
Add apr
samchuk-vlad Sep 7, 2023
b720e14
Fix max amount value for modals
samchuk-vlad Sep 7, 2023
c30255a
Fix bug w/ success modal
samchuk-vlad Sep 8, 2023
cb23039
Hide chat on creator staking page
samchuk-vlad Sep 8, 2023
9433672
Rename page
samchuk-vlad Sep 8, 2023
e2f27a8
Merge remote-tracking branch 'origin/main' into deploy/creator-staking
samchuk-vlad Sep 8, 2023
dddcb1c
Fix after merge
samchuk-vlad Sep 8, 2023
4609a67
Fix mobile version and styles in the modals
samchuk-vlad Sep 11, 2023
b9ae5af
Fix after testing
samchuk-vlad Sep 19, 2023
77f4e30
Add icons for ubnstaking states
samchuk-vlad Sep 19, 2023
a97fc5b
Fix ui issues
samchuk-vlad Sep 20, 2023
c684c86
Update after staking pallet review
samchuk-vlad Oct 3, 2023
b2b3a5a
Calculate available claim count
samchuk-vlad Oct 3, 2023
2e4d647
Add creator dashboard
samchuk-vlad Oct 4, 2023
11e425e
Add claim button for creator
samchuk-vlad Oct 5, 2023
3105b24
Add chat button for creator card
samchuk-vlad Oct 11, 2023
5240f6e
Fix refetching rewards
samchuk-vlad Oct 11, 2023
9b42011
Fix fetching balances when back to the home page
samchuk-vlad Oct 11, 2023
bc1f1c9
Add fixes after testing
samchuk-vlad Oct 13, 2023
7652ce0
Remove unused imports
samchuk-vlad Oct 13, 2023
145d1c5
Fix spaces
samchuk-vlad Oct 16, 2023
1fedb23
Merge branch 'main' into deploy/creator-staking
samchuk-vlad Oct 17, 2023
2cd03b5
Fix after merge
samchuk-vlad Oct 17, 2023
68badee
Rename staker to backer
samchuk-vlad Oct 17, 2023
54e7412
Add beta version agreement checkbox to stake modal
samchuk-vlad Oct 17, 2023
37b2aaf
Add links
samchuk-vlad Oct 17, 2023
ee67556
Add warning for multi account view
samchuk-vlad Oct 18, 2023
dbf55cc
Change multi account warning and disable action buttons
samchuk-vlad Oct 20, 2023
7477752
Refactor after code review
samchuk-vlad Oct 23, 2023
24b123a
Add change tweet text
samchuk-vlad Oct 23, 2023
d4e77e4
Update after pallet changes
samchuk-vlad Oct 24, 2023
c95f344
Fix redux workers
samchuk-vlad Oct 25, 2023
228285d
Remove unused imports
samchuk-vlad Oct 25, 2023
e0f8126
Merge remote-tracking branch 'origin/main' into deploy/creator-staking
samchuk-vlad Oct 25, 2023
4cdb483
Update tsconfig.tsbuildinfo
samchuk-vlad Oct 25, 2023
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
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"check": "yarn lint",
"lint": "tsc && eslint --cache 'src/**/*.{ts,tsx,js}' --fix",
"dev": "next -p 3003",
"build-tailwind-css:watch": "npx tailwindcss -i src/styles/tailwind.css -o public/tailwind.css --watch",
"analyze": "ANALYZE=true next build",
"build": "next build",
"start": "next start -p 3003"
Expand Down Expand Up @@ -42,8 +43,10 @@
"markdown-loader": "^5.1.0",
"next-compose-plugins": "^2.2.0",
"npm-watch": "^0.10.0",
"prettier-plugin-tailwindcss": "^0.4.1",
"sass": "^1.54.4",
"styled-components": "^5.3.0",
"tailwindcss": "^3.3.3",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"typescript": "4.9.5"
},
Expand All @@ -58,18 +61,22 @@
"@ant-design/charts": "^1.2.14",
"@ant-design/icons": "^4.6.2",
"@blazity/next-image-proxy": "^1.0.2",
"@floating-ui/react": "^0.25.1",
"@google/model-viewer": "^1.10.1",
"@headlessui/react": "^1.7.16",
"@polkadot/extension-dapp": "^0.40.3",
"@polkadot/react-identicon": "3.6.3",
"@polkawallet/bridge": "0.1.3",
"@reduxjs/toolkit": "^1.6.2",
"@subsocial/api": "0.8.13",
"@subsocial/grill-widget": "^0.0.12",
"@subsocial/grill-widget": "0.0.11",
samchuk-vlad marked this conversation as resolved.
Show resolved Hide resolved
"@subsocial/resource-discussions": "0.0.4",
"@subsocial/utils": "0.8.13",
"@zeit/next-css": "^1.0.1",
"@zeit/next-sass": "^1.0.1",
"antd": "4.12.3",
"bignumber.js": "^9.0.1",
"class-variance-authority": "^0.7.0",
"clsx": "^1.1.1",
"copy-to-clipboard": "^3.3.1",
"css-loader": "^6.5.1",
Expand All @@ -85,12 +92,13 @@
"next-redux-wrapper": "^7.0.5",
"next-themes": "^0.0.14",
"nextjs-google-analytics": "^2.3.0",
"postcss": "^8.4.27",
"query-string": "^7.0.1",
"react": "18.2.0",
"react-device-detect": "^1.17.0",
"react-dom": "18.2.0",
"react-i18next": "^11.15.4",
"react-icons": "^4.2.0",
"react-icons": "4.10.1",
"react-infinite-scroll-component": "^6.1.0",
"react-markdown": "^4.0.6",
"react-qr-code": "^2.0.2",
Expand All @@ -102,6 +110,7 @@
"redux-saga": "^1.1.3",
"sharp": "^0.30.7",
"style-loader": "^3.3.1",
"tailwind-merge": "^1.14.0",
"url-loader": "^4.1.1",
"worker-loader": "^3.0.8",
"yup": "^0.32.9"
Expand Down
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file added public/images/banners/staking-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/images/creator-staking-user.svg
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 public/images/creator-staking/choose-account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions public/images/creator-staking/messenger.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/images/creator-staking/warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading