generated from scaffold-eth/scaffold-eth
-
Notifications
You must be signed in to change notification settings - Fork 696
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
Fix ansi-html vulnerability #1049
Merged
Merged
Conversation
This file contains 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
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EJS-1049328
This reverts commit 90c2ece.
…on that fixes the vulnerability.
@0xJem wow & it's literally a one character fix mahdyar/ansi-html-community@283cda2 |
appleseed-iii
approved these changes
Jan 3, 2022
appleseed-iii
added a commit
that referenced
this pull request
Jan 4, 2022
* fix: package.json & yarn.lock to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EJS-1049328 * Revert "fix: package.json & yarn.lock to reduce vulnerabilities" This reverts commit 90c2ece. * Update to ejs 3.1.6, which fixes the vulnerability * Force the resolution of ansi-html (unmaintained) to a community version that fixes the vulnerability. Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: appleseed-iii <80423742+appleseed-iii@users.noreply.github.com>
nabioz
added a commit
that referenced
this pull request
Jan 6, 2022
* Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * naming conventions, math for sOHM amount, state for wrap/unwrap * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * Fix address error * Fix gohm wrap/unwrap * Fix wrap v2 * New time completion state per request of EasySleep * make stake-v2 show up when no assets are detected (not old assets && not new assets) * clean up migrate modal when no Old Assets Detected & add link to Stak… (#889) * clean up migrate modal when no Old Assets Detected & add link to Stake V2 * fix btn text size * Fix typo * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Merge Tyche V1 into alpha (#971) * More typescript conversion * Complete typescript conversion for tyche * Cleanup * Use correct chain ID * Valid wallet addresses * Add tooltips * Rename JSON file * Workarounds for changes to InfoTooltip introduced by PR #731 * Prevent redemption if the data is loading * Add menu to get test tokens on non-mainnet * Disabled the redeem button if there is a pending transaction * using utility functions to format goalCompletion value. * reverted line 121 to normal ternary condition (was testing). * changed function name 'toInteger', makes more sense. * fixed button positioning in firefox, deleted css selection with absolute position, and now parent container is responsible for positioning button (cell-align-end selector). * created css selector exclusively for dealing with firefox background color on modal. * Apply the opacity fix to the recipient modal too * Make "custom recipient" button consistent * Show the project title in the deposits list and withdraw modal * Extract pending transaction types into constants Fix the give action used on causes dashboard * Make give actions consistent, which ensures that the pending button text appears * Extract give actions into constants * Fetch the project goal achievement from within useEffect, or we run into problems * WIP fix for incorrect redemption balances being displayed * Added other apps section with Pro, and on-hover arrow up icon * Arrow icon resizing * Reduce repeated code * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * Miscellaneous Tyche V1 fixes (#973) * Add tooltips * Rename JSON file * Workarounds for changes to InfoTooltip introduced by PR #731 * Prevent redemption if the data is loading * Add menu to get test tokens on non-mainnet * Disabled the redeem button if there is a pending transaction * using utility functions to format goalCompletion value. * reverted line 121 to normal ternary condition (was testing). * changed function name 'toInteger', makes more sense. * fixed button positioning in firefox, deleted css selection with absolute position, and now parent container is responsible for positioning button (cell-align-end selector). * created css selector exclusively for dealing with firefox background color on modal. * Apply the opacity fix to the recipient modal too * Make "custom recipient" button consistent * Show the project title in the deposits list and withdraw modal * Extract pending transaction types into constants Fix the give action used on causes dashboard * Make give actions consistent, which ensures that the pending button text appears * Extract give actions into constants * Fetch the project goal achievement from within useEffect, or we run into problems * WIP fix for incorrect redemption balances being displayed * Added other apps section with Pro, and on-hover arrow up icon * Arrow icon resizing * Reduce repeated code * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile * suppress mock calls & no balance errors, update mobile causes view * Misc tyche fixes (#974) * Workarounds for changes to InfoTooltip introduced by PR #731 * Prevent redemption if the data is loading * Add menu to get test tokens on non-mainnet * Disabled the redeem button if there is a pending transaction * using utility functions to format goalCompletion value. * reverted line 121 to normal ternary condition (was testing). * changed function name 'toInteger', makes more sense. * fixed button positioning in firefox, deleted css selection with absolute position, and now parent container is responsible for positioning button (cell-align-end selector). * created css selector exclusively for dealing with firefox background color on modal. * Apply the opacity fix to the recipient modal too * Make "custom recipient" button consistent * Show the project title in the deposits list and withdraw modal * Extract pending transaction types into constants Fix the give action used on causes dashboard * Make give actions consistent, which ensures that the pending button text appears * Extract give actions into constants * Fetch the project goal achievement from within useEffect, or we run into problems * WIP fix for incorrect redemption balances being displayed * Added other apps section with Pro, and on-hover arrow up icon * Arrow icon resizing * Reduce repeated code * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> * add mobile modal scrolling * trim sOHM quantity * Shifting modals down on mobile * Change requirement for redeem subnav to totaldebt * styling updates per girth review * Bond discounts expanded by default, and % goal along row * removing extra backgrounds from cause-cards * Handled errors that arise when provider changes * Fix network loading issue when connecting to testnet * Scroll to top when viewing project details and added top margin to project details screen * localization fixes * fix modal on all mobile screen sizes * Change logging levels and add explanatory message * Add tooltip to goal completion to explain why it won't load if a wallet isn't connected * Better UX when a wallet is not connected - Allow the recipient modal to load - Provide a button in the modal to connect the wallet * Make formatting of sOHM numbers consistent in education cards * Added new mainnet contract * fix default expanded state for stake accordion * Tyche alpha merge (#992) * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile * suppress mock calls & no balance errors, update mobile causes view * add mobile modal scrolling * trim sOHM quantity * Shifting modals down on mobile * Change requirement for redeem subnav to totaldebt * styling updates per girth review * Bond discounts expanded by default, and % goal along row * removing extra backgrounds from cause-cards * Handled errors that arise when provider changes * Fix network loading issue when connecting to testnet * Scroll to top when viewing project details and added top margin to project details screen * localization fixes * fix modal on all mobile screen sizes * Change logging levels and add explanatory message * Added new mainnet contract * fix default expanded state for stake accordion Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * fix recipient title - localization error * Tyche alpha merge (#993) * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile * suppress mock calls & no balance errors, update mobile causes view * add mobile modal scrolling * trim sOHM quantity * Shifting modals down on mobile * Change requirement for redeem subnav to totaldebt * styling updates per girth review * Bond discounts expanded by default, and % goal along row * removing extra backgrounds from cause-cards * Handled errors that arise when provider changes * Fix network loading issue when connecting to testnet * Scroll to top when viewing project details and added top margin to project details screen * localization fixes * fix modal on all mobile screen sizes * Change logging levels and add explanatory message * Added new mainnet contract * fix default expanded state for stake accordion * fix recipient title - localization error Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * Girth requested styling changes * Title change * Adjust text again * Consistent top margin * Trim on withdraw modal to 4 decimal places * Simplify colouring of active tab to be just an underline * Increase line spacing for "About" project content * Modal location * alpha cleanup * Mrunbanked/v2 bonds on alpha (#1052) * Establish v2 bonds state * Checkpoint * Calculate bond discount * bond v2 ui in prog * bond v2 ui in prog (#1033) * Add bond terms * More refactor * Loop through indices * delete typo * console errors for v2 bonds not being of type bond * Checkpoint * Remove log * remove 100* * Fix duration * add usd price and quote price * hard coded values for UI development * errors from merge * Fix network ids * Merge * Change addresses * Revert bond file * Approval works * Fix Approve button * Switch to using bond index as id * Fix price token * Add link * Fetch user notes * Claim bonds section * Purchase bond and display notes * Checkpoint * Fix pending button and add claim all Co-authored-by: mrunbanked <mrunbanked@protonmail.com> Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: borbesaur <87902542+borbesaur@users.noreply.github.com> * account slice cleanup after merge * alpha load details fix * merge conflict resolutions from give * Establish v2 bonds state onto alpha * Checkpoint * delete typo * console errors for v2 bonds not being of type bond * hard coded values for UI development * Add bond terms * bond v2 ui in prog (#1033) * More refactor * Checkpoint * Fix duration * errors from merge * Merge translations * Revert bond file * Approval works * Switch to using bond index as id * Fetch user notes * Claim bonds section * Update node-sass to fix vulnerabilities (#1050) * [Snyk] Address ejs vulnerability (#1048) * fix: package.json & yarn.lock to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EJS-1049328 * Revert "fix: package.json & yarn.lock to reduce vulnerabilities" This reverts commit 90c2ece6d788bb570619a25a019831af8cb0a9a9. * Update to ejs 3.1.6, which fixes the vulnerability Co-authored-by: 0xJem <0x0xjem@gmail.com> * [Snyk] Security upgrade node from 14 to 14.18.2-bullseye-slim (#1047) * fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 * Handle missing .env file * Compilation fix * Ensure that the contracts are compiled before mounting in the docker container Co-authored-by: 0xJem <0x0xjem@gmail.com> * Fix ansi-html vulnerability (#1049) * fix: package.json & yarn.lock to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EJS-1049328 * Revert "fix: package.json & yarn.lock to reduce vulnerabilities" This reverts commit 90c2ece6d788bb570619a25a019831af8cb0a9a9. * Update to ejs 3.1.6, which fixes the vulnerability * Force the resolution of ansi-html (unmaintained) to a community version that fixes the vulnerability. Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: appleseed-iii <80423742+appleseed-iii@users.noreply.github.com> * added GA tracking for Olympus Give (#1039) Co-authored-by: appleseed-iii <appleseed-iii@protonmail.com> * total claimable works and payout tab chenges ui * ui improved for claim bonds section * update ohm marketPrice & bond price in bonds-v2 * fix link; * merge conflicts * link updated * resolve merge error * added warning about non linear bonds * link back to v2 bonds added, language change * fixed term added * you will get fixed * adds equivalent gohm amount in you will get field * total claimable balance changes with gOHM sOHM toggle * Mrunbanked/v2 bonds payout (#1075) * Fix payout amounts * Simplify calcs and add gohm option * checkpoint * Fix bond logo Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: appleseed-iii <appleseed-iii@protonmail.com> Co-authored-by: appleseed-iii <80423742+appleseed-iii@users.noreply.github.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: borbesaur <87902542+borbesaur@users.noreply.github.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: Snyk bot <snyk-bot@snyk.io> Co-authored-by: cptnanon <93794078+cptnanon@users.noreply.github.com>
appleseed-iii
added a commit
that referenced
this pull request
Jan 8, 2022
* Establish v2 bonds state * Checkpoint * Calculate bond discount * bond v2 ui in prog * bond v2 ui in prog (#1033) * Add bond terms * More refactor * Loop through indices * delete typo * console errors for v2 bonds not being of type bond * Checkpoint * Remove log * remove 100* * Fix duration * add usd price and quote price * hard coded values for UI development * errors from merge * Fix network ids * Merge * Change addresses * Revert bond file * Approval works * Fix Approve button * Switch to using bond index as id * Fix price token * Add link * Fetch user notes * Claim bonds section * Purchase bond and display notes * Checkpoint * Fix pending button and add claim all * Remove import * total claimable works and payout tab chenges ui * ui improved for claim bonds section * update ohm marketPrice & bond price in bonds-v2 * Borbs/murunbanked/ v2bonds rebase from alpha (#1077) * link updated * cherry-pick (borbs/v2-bonds): move button below vested bonds section * resolve merge error * added warning about non linear bonds * link back to v2 bonds added, language change * fixed term added * you will get fixed * adds equivalent gohm amount in you will get field * total claimable balance changes with gOHM sOHM toggle * Mrunbanked/v2 bonds payout (#1075) * Fix payout amounts * Simplify calcs and add gohm option Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: mrunbanked <92614968+mrunbanked@users.noreply.github.com> * adding bond name & bond logo & bond underlying token pricing into lookup (#1076) * Mrunbanked/v2 bonds mobile 2 (#1079) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * naming conventions, math for sOHM amount, state for wrap/unwrap * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * Fix address error * Fix gohm wrap/unwrap * Fix wrap v2 * New time completion state per request of EasySleep * make stake-v2 show up when no assets are detected (not old assets && not new assets) * clean up migrate modal when no Old Assets Detected & add link to Stak… (#889) * clean up migrate modal when no Old Assets Detected & add link to Stake V2 * fix btn text size * Fix typo * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Merge Tyche V1 into alpha (#971) * More typescript conversion * Complete typescript conversion for tyche * Cleanup * Use correct chain ID * Valid wallet addresses * Add tooltips * Rename JSON file * Workarounds for changes to InfoTooltip introduced by PR #731 * Prevent redemption if the data is loading * Add menu to get test tokens on non-mainnet * Disabled the redeem button if there is a pending transaction * using utility functions to format goalCompletion value. * reverted line 121 to normal ternary condition (was testing). * changed function name 'toInteger', makes more sense. * fixed button positioning in firefox, deleted css selection with absolute position, and now parent container is responsible for positioning button (cell-align-end selector). * created css selector exclusively for dealing with firefox background color on modal. * Apply the opacity fix to the recipient modal too * Make "custom recipient" button consistent * Show the project title in the deposits list and withdraw modal * Extract pending transaction types into constants Fix the give action used on causes dashboard * Make give actions consistent, which ensures that the pending button text appears * Extract give actions into constants * Fetch the project goal achievement from within useEffect, or we run into problems * WIP fix for incorrect redemption balances being displayed * Added other apps section with Pro, and on-hover arrow up icon * Arrow icon resizing * Reduce repeated code * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * Miscellaneous Tyche V1 fixes (#973) * Add tooltips * Rename JSON file * Workarounds for changes to InfoTooltip introduced by PR #731 * Prevent redemption if the data is loading * Add menu to get test tokens on non-mainnet * Disabled the redeem button if there is a pending transaction * using utility functions to format goalCompletion value. * reverted line 121 to normal ternary condition (was testing). * changed function name 'toInteger', makes more sense. * fixed button positioning in firefox, deleted css selection with absolute position, and now parent container is responsible for positioning button (cell-align-end selector). * created css selector exclusively for dealing with firefox background color on modal. * Apply the opacity fix to the recipient modal too * Make "custom recipient" button consistent * Show the project title in the deposits list and withdraw modal * Extract pending transaction types into constants Fix the give action used on causes dashboard * Make give actions consistent, which ensures that the pending button text appears * Extract give actions into constants * Fetch the project goal achievement from within useEffect, or we run into problems * WIP fix for incorrect redemption balances being displayed * Added other apps section with Pro, and on-hover arrow up icon * Arrow icon resizing * Reduce repeated code * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile * suppress mock calls & no balance errors, update mobile causes view * Misc tyche fixes (#974) * Workarounds for changes to InfoTooltip introduced by PR #731 * Prevent redemption if the data is loading * Add menu to get test tokens on non-mainnet * Disabled the redeem button if there is a pending transaction * using utility functions to format goalCompletion value. * reverted line 121 to normal ternary condition (was testing). * changed function name 'toInteger', makes more sense. * fixed button positioning in firefox, deleted css selection with absolute position, and now parent container is responsible for positioning button (cell-align-end selector). * created css selector exclusively for dealing with firefox background color on modal. * Apply the opacity fix to the recipient modal too * Make "custom recipient" button consistent * Show the project title in the deposits list and withdraw modal * Extract pending transaction types into constants Fix the give action used on causes dashboard * Make give actions consistent, which ensures that the pending button text appears * Extract give actions into constants * Fetch the project goal achievement from within useEffect, or we run into problems * WIP fix for incorrect redemption balances being displayed * Added other apps section with Pro, and on-hover arrow up icon * Arrow icon resizing * Reduce repeated code * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> * add mobile modal scrolling * trim sOHM quantity * Shifting modals down on mobile * Change requirement for redeem subnav to totaldebt * styling updates per girth review * Bond discounts expanded by default, and % goal along row * removing extra backgrounds from cause-cards * Handled errors that arise when provider changes * Fix network loading issue when connecting to testnet * Scroll to top when viewing project details and added top margin to project details screen * localization fixes * fix modal on all mobile screen sizes * Change logging levels and add explanatory message * Add tooltip to goal completion to explain why it won't load if a wallet isn't connected * Better UX when a wallet is not connected - Allow the recipient modal to load - Provide a button in the modal to connect the wallet * Make formatting of sOHM numbers consistent in education cards * Added new mainnet contract * fix default expanded state for stake accordion * Tyche alpha merge (#992) * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile * suppress mock calls & no balance errors, update mobile causes view * add mobile modal scrolling * trim sOHM quantity * Shifting modals down on mobile * Change requirement for redeem subnav to totaldebt * styling updates per girth review * Bond discounts expanded by default, and % goal along row * removing extra backgrounds from cause-cards * Handled errors that arise when provider changes * Fix network loading issue when connecting to testnet * Scroll to top when viewing project details and added top margin to project details screen * localization fixes * fix modal on all mobile screen sizes * Change logging levels and add explanatory message * Added new mainnet contract * fix default expanded state for stake accordion Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * fix recipient title - localization error * Tyche alpha merge (#993) * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile * suppress mock calls & no balance errors, update mobile causes view * add mobile modal scrolling * trim sOHM quantity * Shifting modals down on mobile * Change requirement for redeem subnav to totaldebt * styling updates per girth review * Bond discounts expanded by default, and % goal along row * removing extra backgrounds from cause-cards * Handled errors that arise when provider changes * Fix network loading issue when connecting to testnet * Scroll to top when viewing project details and added top margin to project details screen * localization fixes * fix modal on all mobile screen sizes * Change logging levels and add explanatory message * Added new mainnet contract * fix default expanded state for stake accordion * fix recipient title - localization error Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * Girth requested styling changes * Title change * Adjust text again * Consistent top margin * Trim on withdraw modal to 4 decimal places * Simplify colouring of active tab to be just an underline * Increase line spacing for "About" project content * Modal location * alpha cleanup * Mrunbanked/v2 bonds on alpha (#1052) * Establish v2 bonds state * Checkpoint * Calculate bond discount * bond v2 ui in prog * bond v2 ui in prog (#1033) * Add bond terms * More refactor * Loop through indices * delete typo * console errors for v2 bonds not being of type bond * Checkpoint * Remove log * remove 100* * Fix duration * add usd price and quote price * hard coded values for UI development * errors from merge * Fix network ids * Merge * Change addresses * Revert bond file * Approval works * Fix Approve button * Switch to using bond index as id * Fix price token * Add link * Fetch user notes * Claim bonds section * Purchase bond and display notes * Checkpoint * Fix pending button and add claim all Co-authored-by: mrunbanked <mrunbanked@protonmail.com> Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: borbesaur <87902542+borbesaur@users.noreply.github.com> * account slice cleanup after merge * alpha load details fix * merge conflict resolutions from give * Establish v2 bonds state onto alpha * Checkpoint * delete typo * console errors for v2 bonds not being of type bond * hard coded values for UI development * Add bond terms * bond v2 ui in prog (#1033) * More refactor * Checkpoint * Fix duration * errors from merge * Merge translations * Revert bond file * Approval works * Switch to using bond index as id * Fetch user notes * Claim bonds section * Update node-sass to fix vulnerabilities (#1050) * [Snyk] Address ejs vulnerability (#1048) * fix: package.json & yarn.lock to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EJS-1049328 * Revert "fix: package.json & yarn.lock to reduce vulnerabilities" This reverts commit 90c2ece6d788bb570619a25a019831af8cb0a9a9. * Update to ejs 3.1.6, which fixes the vulnerability Co-authored-by: 0xJem <0x0xjem@gmail.com> * [Snyk] Security upgrade node from 14 to 14.18.2-bullseye-slim (#1047) * fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 * Handle missing .env file * Compilation fix * Ensure that the contracts are compiled before mounting in the docker container Co-authored-by: 0xJem <0x0xjem@gmail.com> * Fix ansi-html vulnerability (#1049) * fix: package.json & yarn.lock to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EJS-1049328 * Revert "fix: package.json & yarn.lock to reduce vulnerabilities" This reverts commit 90c2ece6d788bb570619a25a019831af8cb0a9a9. * Update to ejs 3.1.6, which fixes the vulnerability * Force the resolution of ansi-html (unmaintained) to a community version that fixes the vulnerability. Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: appleseed-iii <80423742+appleseed-iii@users.noreply.github.com> * added GA tracking for Olympus Give (#1039) Co-authored-by: appleseed-iii <appleseed-iii@protonmail.com> * total claimable works and payout tab chenges ui * ui improved for claim bonds section * update ohm marketPrice & bond price in bonds-v2 * fix link; * merge conflicts * link updated * resolve merge error * added warning about non linear bonds * link back to v2 bonds added, language change * fixed term added * you will get fixed * adds equivalent gohm amount in you will get field * total claimable balance changes with gOHM sOHM toggle * Mrunbanked/v2 bonds payout (#1075) * Fix payout amounts * Simplify calcs and add gohm option * checkpoint * Fix bond logo Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: appleseed-iii <appleseed-iii@protonmail.com> Co-authored-by: appleseed-iii <80423742+appleseed-iii@users.noreply.github.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: borbesaur <87902542+borbesaur@users.noreply.github.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: Snyk bot <snyk-bot@snyk.io> Co-authored-by: cptnanon <93794078+cptnanon@users.noreply.github.com> * quick update from discount ro roi * quick update from discount ro roi (#1081) * Match designs for claim section * get balances after claim, clean up pending state after bond purchase * Fix mobile view (#1087) * added checks for undefined objects for bond logo * claim single bond * Goats/v2bonds (#1089) * quick update from discount ro roi * added checks for undefined objects for bond logo * remove dangling console.log * remove dangling console.log * update bonds paths * fix single claim on mobile * Fix note index * Pending button fixes * Disable individual buttons when claiming all * Add transaction checks before dispatching actions * Add periodic refresh * Add timer * copy and css updates * Goats/v2bonds (#1093) * quick update from discount ro roi * added checks for undefined objects for bond logo * copy and css updates * trans fix on bonds claim table * Fix translation issues * changing sidenav to v2 bonds but no see bonds * fixing missing imports still no see bonds * more fixes to imports * handling for new bond type with unknown name, logo & pricing function * hide unknown bonds * Mrunbanked/v2 bonds fixes (#1104) * Fix network switch issue and LP error * Fix * Remove logging and null checks * Visual fixes * Remove unnecessary if * Simplify * Update contract specs (#1105) * styling updates from girth * add component library import to fix merge conflict * fixing names * pushing up the wip * lp changes * Implement pricing for LP * Finalize * working * Fix decimal issue * fix discount Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: borbesaur <87902542+borbesaur@users.noreply.github.com> Co-authored-by: appleseed-iii <80423742+appleseed-iii@users.noreply.github.com> Co-authored-by: appleseed-iii <appleseed-iii@protonmail.com> Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: Snyk bot <snyk-bot@snyk.io> Co-authored-by: cptnanon <93794078+cptnanon@users.noreply.github.com> Co-authored-by: joey <joeyr84@gmail.com>
appleseed-iii
added a commit
that referenced
this pull request
Jan 8, 2022
* Establish v2 bonds state * Checkpoint * Calculate bond discount * bond v2 ui in prog * bond v2 ui in prog (#1033) * Add bond terms * More refactor * Loop through indices * delete typo * console errors for v2 bonds not being of type bond * Checkpoint * Remove log * remove 100* * Fix duration * add usd price and quote price * hard coded values for UI development * errors from merge * Fix network ids * Merge * Change addresses * Revert bond file * Approval works * Fix Approve button * Switch to using bond index as id * Fix price token * Add link * Fetch user notes * Claim bonds section * Purchase bond and display notes * Checkpoint * Fix pending button and add claim all * Remove import * total claimable works and payout tab chenges ui * ui improved for claim bonds section * update ohm marketPrice & bond price in bonds-v2 * Borbs/murunbanked/ v2bonds rebase from alpha (#1077) * link updated * cherry-pick (borbs/v2-bonds): move button below vested bonds section * resolve merge error * added warning about non linear bonds * link back to v2 bonds added, language change * fixed term added * you will get fixed * adds equivalent gohm amount in you will get field * total claimable balance changes with gOHM sOHM toggle * Mrunbanked/v2 bonds payout (#1075) * Fix payout amounts * Simplify calcs and add gohm option Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: mrunbanked <92614968+mrunbanked@users.noreply.github.com> * adding bond name & bond logo & bond underlying token pricing into lookup (#1076) * Mrunbanked/v2 bonds mobile 2 (#1079) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * naming conventions, math for sOHM amount, state for wrap/unwrap * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * Fix address error * Fix gohm wrap/unwrap * Fix wrap v2 * New time completion state per request of EasySleep * make stake-v2 show up when no assets are detected (not old assets && not new assets) * clean up migrate modal when no Old Assets Detected & add link to Stak… (#889) * clean up migrate modal when no Old Assets Detected & add link to Stake V2 * fix btn text size * Fix typo * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Merge Tyche V1 into alpha (#971) * More typescript conversion * Complete typescript conversion for tyche * Cleanup * Use correct chain ID * Valid wallet addresses * Add tooltips * Rename JSON file * Workarounds for changes to InfoTooltip introduced by PR #731 * Prevent redemption if the data is loading * Add menu to get test tokens on non-mainnet * Disabled the redeem button if there is a pending transaction * using utility functions to format goalCompletion value. * reverted line 121 to normal ternary condition (was testing). * changed function name 'toInteger', makes more sense. * fixed button positioning in firefox, deleted css selection with absolute position, and now parent container is responsible for positioning button (cell-align-end selector). * created css selector exclusively for dealing with firefox background color on modal. * Apply the opacity fix to the recipient modal too * Make "custom recipient" button consistent * Show the project title in the deposits list and withdraw modal * Extract pending transaction types into constants Fix the give action used on causes dashboard * Make give actions consistent, which ensures that the pending button text appears * Extract give actions into constants * Fetch the project goal achievement from within useEffect, or we run into problems * WIP fix for incorrect redemption balances being displayed * Added other apps section with Pro, and on-hover arrow up icon * Arrow icon resizing * Reduce repeated code * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * Miscellaneous Tyche V1 fixes (#973) * Add tooltips * Rename JSON file * Workarounds for changes to InfoTooltip introduced by PR #731 * Prevent redemption if the data is loading * Add menu to get test tokens on non-mainnet * Disabled the redeem button if there is a pending transaction * using utility functions to format goalCompletion value. * reverted line 121 to normal ternary condition (was testing). * changed function name 'toInteger', makes more sense. * fixed button positioning in firefox, deleted css selection with absolute position, and now parent container is responsible for positioning button (cell-align-end selector). * created css selector exclusively for dealing with firefox background color on modal. * Apply the opacity fix to the recipient modal too * Make "custom recipient" button consistent * Show the project title in the deposits list and withdraw modal * Extract pending transaction types into constants Fix the give action used on causes dashboard * Make give actions consistent, which ensures that the pending button text appears * Extract give actions into constants * Fetch the project goal achievement from within useEffect, or we run into problems * WIP fix for incorrect redemption balances being displayed * Added other apps section with Pro, and on-hover arrow up icon * Arrow icon resizing * Reduce repeated code * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile * suppress mock calls & no balance errors, update mobile causes view * Misc tyche fixes (#974) * Workarounds for changes to InfoTooltip introduced by PR #731 * Prevent redemption if the data is loading * Add menu to get test tokens on non-mainnet * Disabled the redeem button if there is a pending transaction * using utility functions to format goalCompletion value. * reverted line 121 to normal ternary condition (was testing). * changed function name 'toInteger', makes more sense. * fixed button positioning in firefox, deleted css selection with absolute position, and now parent container is responsible for positioning button (cell-align-end selector). * created css selector exclusively for dealing with firefox background color on modal. * Apply the opacity fix to the recipient modal too * Make "custom recipient" button consistent * Show the project title in the deposits list and withdraw modal * Extract pending transaction types into constants Fix the give action used on causes dashboard * Make give actions consistent, which ensures that the pending button text appears * Extract give actions into constants * Fetch the project goal achievement from within useEffect, or we run into problems * WIP fix for incorrect redemption balances being displayed * Added other apps section with Pro, and on-hover arrow up icon * Arrow icon resizing * Reduce repeated code * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> * add mobile modal scrolling * trim sOHM quantity * Shifting modals down on mobile * Change requirement for redeem subnav to totaldebt * styling updates per girth review * Bond discounts expanded by default, and % goal along row * removing extra backgrounds from cause-cards * Handled errors that arise when provider changes * Fix network loading issue when connecting to testnet * Scroll to top when viewing project details and added top margin to project details screen * localization fixes * fix modal on all mobile screen sizes * Change logging levels and add explanatory message * Add tooltip to goal completion to explain why it won't load if a wallet isn't connected * Better UX when a wallet is not connected - Allow the recipient modal to load - Provide a button in the modal to connect the wallet * Make formatting of sOHM numbers consistent in education cards * Added new mainnet contract * fix default expanded state for stake accordion * Tyche alpha merge (#992) * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile * suppress mock calls & no balance errors, update mobile causes view * add mobile modal scrolling * trim sOHM quantity * Shifting modals down on mobile * Change requirement for redeem subnav to totaldebt * styling updates per girth review * Bond discounts expanded by default, and % goal along row * removing extra backgrounds from cause-cards * Handled errors that arise when provider changes * Fix network loading issue when connecting to testnet * Scroll to top when viewing project details and added top margin to project details screen * localization fixes * fix modal on all mobile screen sizes * Change logging levels and add explanatory message * Added new mainnet contract * fix default expanded state for stake accordion Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * fix recipient title - localization error * Tyche alpha merge (#993) * Updated to new contract and to using getAllDeposits * Made no redeemable balance error human readable * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * added 'react-uid' for unique identifier generation, and using seed to generate UID for ProjectDetails in CausesDashboard.tsx * More minor tweaks on causes dashboard * aligned custom recipient button * Change key to use the project title, instead of UID Reason: unless the ID is auto-generated, there are likely to be duplicates/errors. The project title is more likely to be unique. * Added confirmation screen to give flow * Changing to owner - title * Added [string[], number[]] type for allDeposits and logged error * changed error message * dashboard tooltip and info on causes dashboard * changed bottom graphic to say Recipient * Added tooltip for redeem and a graphic * First pass at a redeem modal. Works, but code could use some cleaning * Re-arrange the explanation card slightly * Improve utility of education cards on redeem modal * Center modal text * design changes * tweaks to causes dashboard * more tweaks to causes dashboard * More minor tweaks on causes dashboard * aligned custom recipient button * Added confirmation screen to give flow * Changing to owner - title * Consolidate educational information * Made button heights 40px and fixed alignment issues * resized cause picture and put in temp pngs * cause misc info text resizing * More design changes. alignment, making svg fill transparent, switching text to tooltips * approval button fix * cause misc info alignment * More design tweaks * sizing changes, padding changes, adding tooltips * New design tweaks * link change * ProjectDetails -> ProjectCard * WIP implementation of a project details page - Support a different rendering style in ProjectCard - Added routes under /give/projects/ * Clicking on a project image/title/details link takes the user to the details screen * Basic version of sidebar * Continued implementation of project details screen * Colouring of progress bar * Fix rendering & placement of countdown * Fix positioning of donation and goal section * Fix positioning of website link * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * More design tweaks and one typing change in AccountSlice * added redirects per request of marketing * Vertically center content in the "no deposits yet" screen * Consistency with decimal places * Document a bug with null input values * Adding donor count from event logs * Moving education card to the bottom * Add number of donors Also includes some spacing fixes * Stop the approval message from erroneously appearing in the recipient modal * Move how it works below the projects, to be consistent with OlyZaps * Implement gradient for donation goal * Finalising project data - We render the project details as Markdown and convert it to HTML - Project details shown on the dashboard are trimmed - Handle blank owner - Add remaining project logos * More design tweaks and one typing change in AccountSlice * Update popcornDAO wallet address * Updated copy based on feedback * Fix formatting of countdown * Better formatting of numbers * Use MUI grid spacing instead of custom CSS to fix alignment * Add SVG icons for projects (yummy) * Compilation fixes after the merge from develop. Mainly the chainID -> networkID change. * Latest changes for responsive * More responsive design for causes dashboard and details pages * Connected give modal to details page and refresh state on submit * set details on causes dashboard to be short description from Notion * give dashboard medium screen size fixes * Responsive designs coming together * SVG icons now respect the current theme * Show loading skeleton for the current deposits * Dynamic resizing of about info height * New time completion state per request of EasySleep * First pass at incorporating translations * Fixed prettier issues * Remove redundant translation tags and add missing ones * Apply linting * Add feature flag to enable give using an environment variable or URL parameter * Add section to README on feature flags * Changing sohmRedeemable type to string * Add parameters introduced in develop * Consistency in displaying the project name * TODO for later * Added more robust Mock sOHM vs sOHM handling * Fixing some errors * Addressed possible undefined errors * Mobile spacing and education card orientation * More documentation and a cleaner handling of mock sOHM balance * Remove finish dates from projects * Added 'new' graphic next to Give link and moved the Give link to the section with OlyZaps * storing commit despite errors * sidebar v0.1 * Adding give subnav to each page * Making cause dashboard ohm card be full ohm card width * changed donationInfo balance type to string and then do math in BigNumber for precision * Added extra Grid item for alignment * Making subnav be just a box with no background * Spacing * Added left chevron for back, made it flex row, changed to Redeem * More network handling updates * Full network handlin coverage * Documentation regarding getDonorNumbers * Improve documentation and code clarity * Notes on BigNumber and consistency fix * deposits dashboard mobile updates * Consistency in recipient name * Recipient title consistency * Commiting for merge * Adding feature flag for using MockSohm, uses generic by default * Make design actually responsive and not just stuck in mobile * better alignment of subnav on mobile * Button width and spacing * Remove redundant comments, add some documentation * Clean up page loading * Fix display issues when loading * Ensure that we check for mock sOHM * Deposits dashboard css fix * Added redeem functionality for mock sohm, and began handling avax and arbitrum * Check that constants are defined for the given chainID before trying to access an element * Disable contract interactions on unsupported chains, and display a warning * More checks * Add mainnet contracts and fix scrolling on mobile safari * attempted fix for allowance issue * Force project cards to take up max-width * Changed back to console.error and removed console logs * Missed a few things * One more console.error * Fixing agnosticAmount error * Mock sohm donationInfo fix * Remove redundant code * Restore the recipient modal state when it is closed * Allow user to back out of the confirmation screen * Go back button on edit modal * WIP modal exits * Set up click away and background blur * Implement outside click across all give modals Also cleans up CSS * Cleanup * make subnav more obviously a nav * Forgot project details screen * Converted links to tabs * Add translation tags * Shift header buttons into component * Fix class typos * Missing condition * Remove unused imports * Add header buttons inside container * Sizing outer paper * Add a loading status for giving/mockGiving, so we can determine if the give allowance is loading This prevents a state race-condition in the recipient modal * Modal backdrop colour consistent with bonds * Make deposit and redeem dash load in full width * Implement escape keydown for modals * Walking back erroneous commit * Update with live documentation URL * Disable "Go Back" button when there is a pending transaction * Keep element spacing consistent * fixed width * mobile modal reconfiguration * Redeem modal mobile reconfig * Removing another arrow on mobile * suppress mock calls & no balance errors, update mobile causes view * add mobile modal scrolling * trim sOHM quantity * Shifting modals down on mobile * Change requirement for redeem subnav to totaldebt * styling updates per girth review * Bond discounts expanded by default, and % goal along row * removing extra backgrounds from cause-cards * Handled errors that arise when provider changes * Fix network loading issue when connecting to testnet * Scroll to top when viewing project details and added top margin to project details screen * localization fixes * fix modal on all mobile screen sizes * Change logging levels and add explanatory message * Added new mainnet contract * fix default expanded state for stake accordion * fix recipient title - localization error Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> * Girth requested styling changes * Title change * Adjust text again * Consistent top margin * Trim on withdraw modal to 4 decimal places * Simplify colouring of active tab to be just an underline * Increase line spacing for "About" project content * Modal location * alpha cleanup * Mrunbanked/v2 bonds on alpha (#1052) * Establish v2 bonds state * Checkpoint * Calculate bond discount * bond v2 ui in prog * bond v2 ui in prog (#1033) * Add bond terms * More refactor * Loop through indices * delete typo * console errors for v2 bonds not being of type bond * Checkpoint * Remove log * remove 100* * Fix duration * add usd price and quote price * hard coded values for UI development * errors from merge * Fix network ids * Merge * Change addresses * Revert bond file * Approval works * Fix Approve button * Switch to using bond index as id * Fix price token * Add link * Fetch user notes * Claim bonds section * Purchase bond and display notes * Checkpoint * Fix pending button and add claim all Co-authored-by: mrunbanked <mrunbanked@protonmail.com> Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: borbesaur <87902542+borbesaur@users.noreply.github.com> * account slice cleanup after merge * alpha load details fix * merge conflict resolutions from give * Establish v2 bonds state onto alpha * Checkpoint * delete typo * console errors for v2 bonds not being of type bond * hard coded values for UI development * Add bond terms * bond v2 ui in prog (#1033) * More refactor * Checkpoint * Fix duration * errors from merge * Merge translations * Revert bond file * Approval works * Switch to using bond index as id * Fetch user notes * Claim bonds section * Update node-sass to fix vulnerabilities (#1050) * [Snyk] Address ejs vulnerability (#1048) * fix: package.json & yarn.lock to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EJS-1049328 * Revert "fix: package.json & yarn.lock to reduce vulnerabilities" This reverts commit 90c2ece6d788bb570619a25a019831af8cb0a9a9. * Update to ejs 3.1.6, which fixes the vulnerability Co-authored-by: 0xJem <0x0xjem@gmail.com> * [Snyk] Security upgrade node from 14 to 14.18.2-bullseye-slim (#1047) * fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 - https://snyk.io/vuln/SNYK-DEBIAN9-GLIBC-356851 * Handle missing .env file * Compilation fix * Ensure that the contracts are compiled before mounting in the docker container Co-authored-by: 0xJem <0x0xjem@gmail.com> * Fix ansi-html vulnerability (#1049) * fix: package.json & yarn.lock to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-EJS-1049328 * Revert "fix: package.json & yarn.lock to reduce vulnerabilities" This reverts commit 90c2ece6d788bb570619a25a019831af8cb0a9a9. * Update to ejs 3.1.6, which fixes the vulnerability * Force the resolution of ansi-html (unmaintained) to a community version that fixes the vulnerability. Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: appleseed-iii <80423742+appleseed-iii@users.noreply.github.com> * added GA tracking for Olympus Give (#1039) Co-authored-by: appleseed-iii <appleseed-iii@protonmail.com> * total claimable works and payout tab chenges ui * ui improved for claim bonds section * update ohm marketPrice & bond price in bonds-v2 * fix link; * merge conflicts * link updated * resolve merge error * added warning about non linear bonds * link back to v2 bonds added, language change * fixed term added * you will get fixed * adds equivalent gohm amount in you will get field * total claimable balance changes with gOHM sOHM toggle * Mrunbanked/v2 bonds payout (#1075) * Fix payout amounts * Simplify calcs and add gohm option * checkpoint * Fix bond logo Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: appleseed-iii <appleseed-iii@protonmail.com> Co-authored-by: appleseed-iii <80423742+appleseed-iii@users.noreply.github.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: borbesaur <87902542+borbesaur@users.noreply.github.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: Snyk bot <snyk-bot@snyk.io> Co-authored-by: cptnanon <93794078+cptnanon@users.noreply.github.com> * quick update from discount ro roi * quick update from discount ro roi (#1081) * Match designs for claim section * get balances after claim, clean up pending state after bond purchase * Fix mobile view (#1087) * added checks for undefined objects for bond logo * claim single bond * Goats/v2bonds (#1089) * quick update from discount ro roi * added checks for undefined objects for bond logo * remove dangling console.log * remove dangling console.log * update bonds paths * fix single claim on mobile * Fix note index * Pending button fixes * Disable individual buttons when claiming all * Add transaction checks before dispatching actions * Add periodic refresh * Add timer * copy and css updates * Goats/v2bonds (#1093) * quick update from discount ro roi * added checks for undefined objects for bond logo * copy and css updates * trans fix on bonds claim table * Fix translation issues * changing sidenav to v2 bonds but no see bonds * fixing missing imports still no see bonds * more fixes to imports * handling for new bond type with unknown name, logo & pricing function * hide unknown bonds * Mrunbanked/v2 bonds fixes (#1104) * Fix network switch issue and LP error * Fix * Remove logging and null checks * Visual fixes * Remove unnecessary if * Simplify * Update contract specs (#1105) * styling updates from girth * add component library import to fix merge conflict * fixing names * pushing up the wip * lp changes * Implement pricing for LP * Finalize * working * Fix decimal issue * fix discount * need sort Co-authored-by: mrunbanked <mrunbanked@protonmail.com> Co-authored-by: borbersaur <plasmabeach@gmail.com> Co-authored-by: borbesaur <87902542+borbesaur@users.noreply.github.com> Co-authored-by: mrunbanked <92614968+mrunbanked@users.noreply.github.com> Co-authored-by: 0xJem <0x0xJem@gmail.com> Co-authored-by: Lienid <0xLienid@protonmail.com> Co-authored-by: 0xJem <91760036+0xJem@users.noreply.github.com> Co-authored-by: 0xLienid <92545857+0xLienid@users.noreply.github.com> Co-authored-by: Joao Tavares <joao.tavares@twistag.com> Co-authored-by: Snyk bot <snyk-bot@snyk.io> Co-authored-by: cptnanon <93794078+cptnanon@users.noreply.github.com> Co-authored-by: joey <joeyr84@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Snyk issue: https://security.snyk.io/vuln/SNYK-JS-ANSIHTML-1296849
Implements the fix listed here: Tjatse/ansi-html#19 (comment)
Verified that frontend works fine.
Includes changes from #1048, so you may want to merge that first.