Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* RC-v1.9 <--- RC-v1.8 (#2372) * new hero banner, image, and text; (#1689) (#1699) * new hero banner, image, and text; * fix failing test; * new hero image w/ 4 logos; Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * Remove unused PLACEHOLDER_WALLET const (#1704) * RC-v1.7.1: ui fixes (#1713) * documentation checkfield * center loader * RC-v1.7.1 : master updates (#1715) * Update issue templates (#1694) * Update issue templates * remove old template file * add footer link; scale increased by x10; (#1700) * Add Polygon as supported chain (#1701) * add ploygon chains; update unsupported chain error msg; * add polygon to EVM_SUPPORTED_CHAINS * use native decimals for gas calc (#1705) * remove banner background image * capitalize Xdefi wallet label --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * save giftcard to users computer * JUNO testnet network ID change * JUNO testnet network ID change * switch node urls back * new testnet contracts * Add new gray-l1 color needed for AIF sidebar title (#1717) * FIX: proxy testnet endpoints (#1721) * apply proxy endpoints * not the same as aws base * fix typo (#1723) * RC-v1.7.1: Add New Field, 'Status' in My Donations Page (#1691) * Added New Field 'Status' in My Donations Page * Fixed bg-color for Pending badge in dark and light mode * Fixed badge size for desktop view * Fixed 'Pending' badge colors for desktop view * Started work on filtering by deposit status * status dropdown (#1697) * add default value stauts selector * remove duplicate status dropdown * Fixed spacing of filter param labels on mobile view and changed default value for 'Status' param * Added 'status' param in the donations query params * Simplified ternary operators * Removed 'even:' from Status className * Added 'font-body' in Status badges for mobile and desktop views * Applied padding on Network dropdown loader to be consistent with Currency dropdown --------- Co-authored-by: ap-justin <justin@angelprotocol.io> Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * fix typo (#1724) * RC-v1.8: Admin layout and context prep (#1698) * remove view layer * remove admin mobile portal * use common layout on all admin types * update mobile nav spacing * nav wrapper * refactor admin resource fetcher and context * edit profile: diff between disconected and unauthorized * reuse config from resources * remove never * prep: font and paddings * Marketplace cards spacing removed (#1726) * remove spacing for marketplace cards * move countries off bottom; lint; * Registration giving re-branding (#1727) * rebranding to Giving * other referal copy label * fix test * RC-v1.7.1: remove custom tags (#1730) * cherry: remove custom tags * fix lint error * correct default tag * limit giftcard denom to usdc on mainnet * RC-v1.7.1: abstract token field (#1725) * create tokenField * use token field in donater * remove old donater field * use token field in giftcard purchaser * remove old amount field * remove comments * remove standalone selector * add export file * change keplr lcd rpc * fix typo (#1737) * Registration Text + Misc branding tweaks (#1738) * last few angel giving rebanding changes * fix white text * new bhm hero image * Updated Charity Registration Submit's API Version (#1739) * Quick Accessibility Tweaks (#1740) * non-sequential use of heading tags >> p * aria-labels added to more buttons and links * org btn using grey color text for better contrast/legibility * default to dark theme * Ignore system theme when checking if dark * add system theme check back in --------- Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * Profile Title fix (#1741) * non-sequential use of heading tags >> p * aria-labels added to more buttons and links * org btn using grey color text for better contrast/legibility * default to dark theme * Ignore system theme when checking if dark * add system theme check back in * fix profile title --------- Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * AP > AG branding changes found (#1742) * more AP > AG branding changes found * lint * Profile edit fixes (#1743) * change copy - #860pw6rt2 * add mor social urls - #860pw6p6j * dont edit contract email - #860pw6nvq * remove city field (depreciated) - #860pw6wqb * SEO title for edit page - #860pw6ur5 * char limits & set char count on init * empty strings should not be validated * remove hq_city(entirely) & contract_email(just not updatable) * RC-v1.8: settings page ( investment strategies ) (#1703) * remove view layer * remove admin mobile portal * use common layout on all admin types * update mobile nav spacing * nav wrapper * refactor admin resource fetcher and context * edit profile: diff between disconected and unauthorized * reuse config from resources * remove never * add settings page * prep: font and paddings * settings dashboard * strategy editor routes * cherry: breadcrumbs syntax * cherry: consider end and use current on leaf route * revert breadcrumb changes * strategies field array * vault selection * prep: font and paddings * strategy name * add ref to root props (#1750) * open header logo in new tab/page (#1749) * open header logo in new tab/page * use ExtLink component * RC-v1.8 : Invest dashboard (#1729) * remove view layer * remove admin mobile portal * use common layout on all admin types * update mobile nav spacing * nav wrapper * refactor admin resource fetcher and context * edit profile: diff between disconected and unauthorized * reuse config from resources * remove never * prep: font and paddings * shared balance * transformed balance query * move registrar file * cherry: remove custom tags * custom vault query * account tabs common * invest options * correct default tag * add symbol and precisoin * add correct symbol * invest form * invest wiring * form heading * cherry: use token-id * text sm investor * turn off giftcard link (for now) * Donate widget task (#1636) * Donate widget (#1605) * Add Donate/Widget page * Rename Steps to StepsPage * Refactor isHeadingShown * Update donate widget route to /donate-widget * Refactor CurrStep * Add missing space in BtnSec style * Add query loader scaffold to Widget * Update BtnSec to use .btn class * Move DonateWidget to separate /page folder (includes other refactors) * Move DonateWidget outside the /App component * Set light mode when opening donation widget * Add theme setting logic to widget * Move DonateWidget Content to separate file * Move Kado modal to Steps & extract CurrentStep * Refactor isHeadingShown to isFinalized * Remove redundant WalletSuite Props * Add widget header section * Move profile Balances to shared components * Update Balances to accept direction * Add Balances to widget * Extract Balance out of Balances into separate file * Remove widget header stickiness * Add footer * Move WalletSuite to shared components * Fix title font size in widget * Add text styling * Make padded-container have mx-auto on all screen widths * Add className to Header Logo * Move Header/Logo to components/APLogo * Use APLogo in widget footer * Create separate Balances for widget * Update Balances styles on widget * Add alignment styles * Reduce Steps text size on mobile * Reduce Steps width inside widget * Move Donate steps title to just Donate page * Set z-index of widget header to z-20 * Hide Intercom Chatbot on widget * Fix App.test * Refactor CoinBalances * Remove leftover useBalances * Remove Balances * Update the donate widget URL format and route parameter reading logic (#1610) * Handle null in idParamToNum * Read endowId from query params * Move API key check into ApiKeyChecker * Read endowmentId from route params * Move Endowment loading into separate loader component * Add comment for hiding the Intercom chatbot * Rename DonateWidget/Content to InnerComponent * Widget page (#1613) * Add AIF page scaffold * Add header section of the widget config. page * Add Views page with routes to AIF * Add Default widget image section * Create WidgetUrlConfigForm component * Comment out id param assignment * Move WidgetConfigurer to separate folder * Create Split component * Add state to WidgetUrlConfigForm * Rename WidgetUrlConfigForm to WidgetUrlGenerator * Rename components/Checkbox to CheckboxFormField * Move Marketplace/../Checkbox to components/* folder * Add widget URL generator scaffold * Add 'Available currencies' span * Rename components/Selector to SelectorFormField * Extract Selector from SelectorFormField * Add available currencies selector * Add useLazyTokensQuery to fetch list of tokens * Update useApprovedTokens to use useLazyTokensQuery * Update config sections widths * Add URL generator logic * Update widths and alignments * Update widget-example.png * Reduce title style font size on sm: * Add widget URL code section * Reduce img size * Reduce url param length * Move useCopier to hooks/* * Add Copy URL ability * Add focus outline on light mode * Move useCopier back to Copier * Implement copy/paste this URL section * Check the boxes on clicking labels * Center in column on mobile * Display unfoldAdvancedOptions when \!hideAdvancedOptions * Add gap-4 on mobile on main screen * Update alignment on mobile * Add Reset changes btn * Move BtnPrim from components/gift to components/* * Fix donate widget URL * Revert Copier changes * Use VarOption where appropriate in Selector * Use react hook form for URL generation * Move WidgetUrlGenerator to separate folder * Show loading ring while approved tokens are loading * Create DenomSelector * Add missing FormProvider * Gray out checkbox label on disabled (#1630) * Configure widget based on URL query params (#1639) * Extract URL params into separate constants.ts file * Add as const to URL_PARAMS definition * Update how boolean URL params are appended * Add useWidgetParams hook * Read widget params in DonateWidget * Update useWidgetParams result * Hide widget text if set * Rename Result to UrlParamValues * Move UrlParamValues to types * Refactor how UrlParamValues are used * Move append to bottom of file in WidgetUrlGenerator * Add UrlParamValues to Steps Props * Remove hideEndowGauges * Move main url param fields to ConfigParams type in Steps * Use widget parameters inside the widget * Set default gap in widget header * Fix default widget params * Fix liquidPercentage append to URL * Always include fee-paying coin in tokens dropdown when donating * Remove consloe.log * Add full iframe for widget url (#1642) * Fix leftover deprecated imports from aws & QueryLoader * Revert Checkbox to Sidebar/common * Revert BtnPrim to components/gift * Remove widgetRoutes * Remove WalletDetails folder * Add Sidebar Checkbox back to index * Make widget example responsive to selected options (#1653) * Update WidgetConfig example title * Move url param reading to DonateWidget * Enable passing of props to DonateWidget * Refactor DonateWidget to accept default query params * Refactor how widgetSnippet is generated * Add className prop to DonateWidget * Add DonateWidget to WidgetConfigurer instead of image * Remove widget example img * Add missing className prop assignment in DonateWidget * Fix bug in AdvancedOptions unfold logic * Make DonateWidget responsive to changing params passed from WidgetConfigurer * Fix DonateWidget width on WidgetConfigurer * Fix bug with theme switch on widget * Make DonateValues.pctLiquidSplit number type * Fix slider value not updating * Reduce z-index of Donate widget header * Rename remaining border colors to border-prim * Fix border-prim definition * Revert Selector * Update btn widget (#1661) * Fix donate widget URL * Revert WidgetConfigurer * Revert "Make widget example responsive to selected options (#1653)" This reverts commit 99dd8601fb6b90257d36babd1af49cc5aafe1abe. * Replace img widget example with iframe * Refactor widget iframe snippet to update example on clicking update * Fix error with widget example not showing * Add default bg-white to InnerComponent * Revert changes to pctLiquidSplit type * Extract iframe into custom IFrame * Add loader * Fix widget styling on both mobile and desktop (#1662) * Update styles on small screens * Update button styles * Update text sizes * Fix mobile styles for config page * Update Selector style on mobile * Align config section better on mobile * Fix max widths for config options section * Include /donate-widget in `App.tsx` (#1663) * Donate widget (#1605) * Add Donate/Widget page * Rename Steps to StepsPage * Refactor isHeadingShown * Update donate widget route to /donate-widget * Refactor CurrStep * Add missing space in BtnSec style * Add query loader scaffold to Widget * Update BtnSec to use .btn class * Move DonateWidget to separate /page folder (includes other refactors) * Move DonateWidget outside the /App component * Set light mode when opening donation widget * Add theme setting logic to widget * Move DonateWidget Content to separate file * Move Kado modal to Steps & extract CurrentStep * Refactor isHeadingShown to isFinalized * Remove redundant WalletSuite Props * Add widget header section * Move profile Balances to shared components * Update Balances to accept direction * Add Balances to widget * Extract Balance out of Balances into separate file * Remove widget header stickiness * Add footer * Move WalletSuite to shared components * Fix title font size in widget * Add text styling * Make padded-container have mx-auto on all screen widths * Add className to Header Logo * Move Header/Logo to components/APLogo * Use APLogo in widget footer * Create separate Balances for widget * Update Balances styles on widget * Add alignment styles * Reduce Steps text size on mobile * Reduce Steps width inside widget * Move Donate steps title to just Donate page * Set z-index of widget header to z-20 * Hide Intercom Chatbot on widget * Fix App.test * Refactor CoinBalances * Remove leftover useBalances * Remove Balances * Update the donate widget URL format and route parameter reading logic (#1610) * Handle null in idParamToNum * Read endowId from query params * Move API key check into ApiKeyChecker * Read endowmentId from route params * Move Endowment loading into separate loader component * Add comment for hiding the Intercom chatbot * Rename DonateWidget/Content to InnerComponent * Widget page (#1613) * Add AIF page scaffold * Add header section of the widget config. page * Add Views page with routes to AIF * Add Default widget image section * Create WidgetUrlConfigForm component * Comment out id param assignment * Move WidgetConfigurer to separate folder * Create Split component * Add state to WidgetUrlConfigForm * Rename WidgetUrlConfigForm to WidgetUrlGenerator * Rename components/Checkbox to CheckboxFormField * Move Marketplace/../Checkbox to components/* folder * Add widget URL generator scaffold * Add 'Available currencies' span * Rename components/Selector to SelectorFormField * Extract Selector from SelectorFormField * Add available currencies selector * Add useLazyTokensQuery to fetch list of tokens * Update useApprovedTokens to use useLazyTokensQuery * Update config sections widths * Add URL generator logic * Update widths and alignments * Update widget-example.png * Reduce title style font size on sm: * Add widget URL code section * Reduce img size * Reduce url param length * Move useCopier to hooks/* * Add Copy URL ability * Add focus outline on light mode * Move useCopier back to Copier * Implement copy/paste this URL section * Check the boxes on clicking labels * Center in column on mobile * Display unfoldAdvancedOptions when \!hideAdvancedOptions * Add gap-4 on mobile on main screen * Update alignment on mobile * Add Reset changes btn * Move BtnPrim from components/gift to components/* * Fix donate widget URL * Revert Copier changes * Use VarOption where appropriate in Selector * Use react hook form for URL generation * Move WidgetUrlGenerator to separate folder * Show loading ring while approved tokens are loading * Create DenomSelector * Add missing FormProvider * Fix useEndowInfoQuery import path in EndowmentLoader * Gray out checkbox label on disabled (#1630) * Configure widget based on URL query params (#1639) * Extract URL params into separate constants.ts file * Add as const to URL_PARAMS definition * Update how boolean URL params are appended * Add useWidgetParams hook * Read widget params in DonateWidget * Update useWidgetParams result * Hide widget text if set * Rename Result to UrlParamValues * Move UrlParamValues to types * Refactor how UrlParamValues are used * Move append to bottom of file in WidgetUrlGenerator * Add UrlParamValues to Steps Props * Remove hideEndowGauges * Move main url param fields to ConfigParams type in Steps * Use widget parameters inside the widget * Set default gap in widget header * Fix default widget params * Fix liquidPercentage append to URL * Always include fee-paying coin in tokens dropdown when donating * Remove consloe.log * Add full iframe for widget url (#1642) * Rename leftover SelecterFormField references to Selector * Fix leftover deprecated imports from aws & QueryLoader * Revert Checkbox to Sidebar/common * Revert BtnPrim to components/gift * Remove widgetRoutes * Remove compnents/BtnPrim * Remove WalletDetails folder * Add Sidebar Checkbox back to index * Make widget example responsive to selected options (#1653) * Update WidgetConfig example title * Move url param reading to DonateWidget * Enable passing of props to DonateWidget * Refactor DonateWidget to accept default query params * Refactor how widgetSnippet is generated * Add className prop to DonateWidget * Add DonateWidget to WidgetConfigurer instead of image * Remove widget example img * Add missing className prop assignment in DonateWidget * Fix bug in AdvancedOptions unfold logic * Make DonateWidget responsive to changing params passed from WidgetConfigurer * Fix DonateWidget width on WidgetConfigurer * Fix bug with theme switch on widget * Make DonateValues.pctLiquidSplit number type * Fix slider value not updating * Reduce z-index of Donate widget header * Rename remaining border colors to border-prim * Fix border-prim definition * Revert Selector * Fix donate widget URL * Revert WidgetConfigurer * Revert "Make widget example responsive to selected options (#1653)" This reverts commit 99dd8601fb6b90257d36babd1af49cc5aafe1abe. * Replace img widget example with iframe * Refactor widget iframe snippet to update example on clicking update * Fix error with widget example not showing * Add default bg-white to InnerComponent * Revert changes to pctLiquidSplit type * Extract iframe into custom IFrame * Add loader * keep bundle in App.tsx Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * Revert padded-container { xl:mx-auto } * Make widget example full width on < xl screens * Update src/components/KadoModal.tsx Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Update src/pages/Donate/Content.tsx Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Revert changes to App.test.tsx * Refactor APLogo props * Remove closing IFrame tag in WidgetConfigurer * Update src/services/apes/apes.ts Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Remove redundant routes and contexts from index.tsx * Make Split more generic * Rename name to liqPctField * Make Split independent of react hook form * Implement generic Split in Donate Steps * Add className to Split * Fix split radtio on widget and config page * Add token to endowment portion * Remove isLoading from disabled prop of Split * Remove Split from Donater * Remove useApprovedTokens * Remove min/max range values * Update Number(e.target.value) to e.target.valueAsNumber * Make Split depend on react hook form * Make split type-safe * Add comment to src/slices/donation/types.ts Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Display donater Cancel btn only outside widget * Create dumbed down widget example * Extract useCreateWidgetUrl * Remove unused BtnPrimary * Fix alignments * Make widget example a "dumb component" that can perform no actions and hold only placeholder data (#1728) * Remove react hook form from widget example * Move WidgetExample to separate folder * Fix Advanced Options logic * Fix sizes and layout for WidgetExample * Remove hover events * Remove dark: styles * Remove unused Amount & AmountOptions * Add "endowment combobox" to widget configuration page + make URL ID param optional (#1746) * Move Marketplace search logic out of Search into Toolbar * Move search placeholder to a prop * Move 'Search' to components/* * Make isSearching optional * Add Search to WidgetUrlGenerator * Fix max width of generator * Remove AIF page * Open Widget config on widget-config/:id? * Update aws endowments endpoint to be easier to use * Create EndowmentSearch * Add onFocus func to Search * Fix type Sort import paths * Refactor Portion in example adv. opts * Revert changes to EndowmentsQueryParams * Update Combobox * Add back forgotten useLazyProfileQuery * Revert changes to Marketplace Search * Remove comment about steps * Add formValues state to enable manual snippet update * Revert change to type EndowCardFields * Hide endow. selector when ID param is passed * Move getPossessiveForm to helpers/* * Display actual endow. name in widget example * Fix endowId check to display Combobox * Refactor Combobox * Revert caniuse yarn version * Make Combobox reusable * Extract EndowmentCombobox * Add endowment name when ID param is passed * Update avail. curr span to label * Move form state to WidgetConfigurer * Update code snippet width and text * Move Combobox content into EndowmentCombobox * Move EndowmentCombobox to separate folder * Extract Combobox * Refactor Combobox * Extract useWidgetConfigurer * Refactor widget state * Fix mention of 'country' to 'endowment' in Combobox * Move FormValues to State in WidgetConfigurer > types.ts * Move comment explaining where ID is coming from in Endow Combobox * Rename WidgetConfigurer/types.ts to schema.ts and State to FormValues * Extract useLoadDefaultEndowmentName * Change default height of widget example * Navigate to widget config from charity admin * Increase max example height * Navigate endow admin to endowment's widget embed * Add loading message on endowment loading * Add widget link to mobile nav in admin * Move Widget config page to admin/Charity * Rename URL ID param from 'id' to 'endowId' * add padding to top-bottom of main div --------- Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * Remove tx ok (#1775) * Remove 'OK' & 'X' btns when uploading images * Remove 'OK' & 'X' btns when signing changes * Header/Footer components refactored to be able to generate custom links based on externally defined objects/lists (#1795) * Move footer constant types to types.ts * Rename Footer type Section to LinkGroup * Make SocialMediaLinks have nullable fields * Add Links.groups prop * Make SOCIAL_MEDIA_LINKS into an array * Add Socials.links prop * Add linkGroups, socials props to Footer * Update SocialMediaLink iconType to nullable and link->href * Extract Link from SocialMediaLink * Add Header.links prop * Pass header links to MobileNavOpener * Make header logo configurable * Rename APLogo to Logo * Extract icon size as field in Link[] * Add hover/active colors to Footer links * Move LOGO to constants/common * cherry: screen resize api refactor (#1781) * RC-v1.8 <-- RC-v1.7.1 (#1789) * RC-v1.8: Liquid/Lock account dashboard (#1744) * Address error/suggestion related to PR #1789 (#1810) * Remove level field in Documentation > Form > useSubmit * Add validity check to openIntercom * RC-v1.8 <-- master fixes (#1818) * Update canius-lite version (#1800) * HQ Country attribute refactor (#1799) * HQ Country attribute refactor * Removed OR operator from hq_country FlatFormValue * Apply suggestions from code review Removes unnecessary check for existence of hq_country field, as it is required field for Endowment creation now. Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * lint clean up --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * HOT FIX: move balances to state query (#1811) * move balances to state query * lint warning fixes * optional active in countries * fixed logo added (use a png for now) * switch back to white txt on orange btn due to demands... * update common logo --------- Co-authored-by: Nenad Misic <nenad@angelprotocol.io> Co-authored-by: Juan Paolo Mariano <65009749+jp-mariano@users.noreply.github.com> Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * RC-v1.8: query vault balances directly (#1797) * modify custom query to query each vault * combine vaults accBalance and individual vault balance * add tag invalidation * HOT FIX: move balances to state query (#1811) * move balances to state query * lint warning fixes --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * Create Sidebar + update admin pages to use it (#1716) * Add Dashboard + AIF scaffold * Add Dashboard layout * Extract Sidebar * Add overflow and scroller to sidebar * Move Logo to components * Move LogoPlaceholder to Logo * Refactor Logo * Add Logo and Switch btn * Add Logo size * Remove icon styles from LogoPlaceholder * Refactor Logo * Refactor Logo * Move ProfileContext to contexts/* * Add ProfileContext to Dashboard * Pass Dashboard props to Sidebar * Update Sync icon * Add endowment name/address section * Pass link groups to Sidebar * Add nav link structure to Sidebar * Move ProfileContext to AIF * Fix paths in AIF * Rename links.href to .to * Rename routes.invest to invest_dashboard * Add Invest link group * Extract link group creation * Add Profile link groups * Add Profile section * Add Settings section * Increase top padding of sidebar header * Remove max-h & scroller from sidebar * Rename Dashboard to Container * Add dark bg to sidebar * Add className to Sidebar * Hide Sidebar on mobile * Update body padding on mobile * Update grid cols of Container to show on desktop * Add navigate button on mobile * Increase sidebar mobile width * Create NavigationButton * Move Container to separate folder * Fix NavigationButton class name * Rename NavigationButton to MobileNavigationButton * Add nav btn content change based on URL * Move MobileNavigationButton to separate folder * Add AIF fixed min height * Update dashboard path * Add Logo * Add endow. name * Pass name+logo to sidebar (on mobile too) * Remove unused icon * Remove useMemo for linkGroups in AIF * Refactor MobileSidebar props * Comment out endow. address * Add icon.size prop to Link * Add isSrcLoading prop to Logo * Load sidebar header from admin resources * Pass just the endowId to Sidebar * Move ProfileContext back to pages/Profile and fix errors * Rename MobileNavigationButton to SidebarToggleButton * Move Sidebar to components/* * Fix paths in createLinkGroupsPlaceholder * Fix loading logic in Header > switch btn and name * Rename SidebarToggleButton to MobileSidebarButton * Remove 'aif' from routes * Fix route in createLinkGroupsPlaceholder * Show 'Open Menu' instead of throwing error in Mobile sidebar btn * Move existing Admin pages/components to align with new Sidebar setup (#1804) * Move Sidebar to /pages/Admin * Refactor Sidebar to make reusable across desktop/mobile * Remove endowId prop from Sidebar, read from admin resources * Update Charity and admin routes to use new linkGroups logic * Increase size on which Sidebar is in mobile version * Update Sidebar mobile dialog logic (remove Dialog.Panel from Sidebar) * Add 'end' prop to Link * Rearrange LINKS.ts content * Add grid cols only on md: to admin * Remove 'divide-x' className from admin layout * Move Link(Group) types to root Admin/types * Move LINKS to Admin/constants * Revert "Move Link(Group) types to root Admin/types" This reverts commit ba00281fa5ffbd44764f2bfd681ae94b1e54f8ae. * Update Review to use new Layout logic * Fix sidebar min/max heights * Update Core to use new Layout logic * Remove min-h for sidebar * Update widget config endow. name placeholder message * Remove xl:w-5/6 from WidgetExample * Create Contributions page * Fix activeLink finding for mobile sidebar btn * Close mobile Sidebar on md: * Reduce sidebar size from sm: to md: * Memoize createLinkGroups for Charity/index.tsx * Refactor SidebarOpener * Return Donations to Dashboard * Comment out widget config page link * Update Header shown to AP and Review team * Remove extra div surrounding endow. name and address * Extract CharityHeader * Move Header to folder * Extract CharityHeader to separate file * Update colors of header * Remove light color diff for admin teams * Rename LOGO to AP_LOGO * Refactor routes * Fix issue with useHandleScreenResize in usesidebaropener * Update activeLink finding in useSidebarOpener to handle subpaths correctly * Fix activeLink path matching to ignore 'end' paths * Update Review index title * Revert 'contributions' to 'donations' in DonationsTable * Remove commented out route in Charity * Remove link param in Sidebar.onChange Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Make LINKS[key].to type safer * Refactor activeLink calc * Refactor Sidebar props --------- Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Update testnet contracts (#1886) * Update testnet contracts * Add settingsController contract address * Refactor Code (#1856) * Refactor Code * Refactor constants * review fixes * RC-v1.8: Invest sections mobile layout (#1879) * add container query plugin * account balances * center text on mobile * mobile paddings * RC-v1.8 <-- master updates (#1862) * update main logo to new AG svg * validate amount on withdraw network change (#1842) * add max limit to sdg field in schema (#1838) * Disable Continue unless agreed to TnC (#1841) * add scroll listener and handle (#1848) * Add transition to backdrop and Dialog (#1840) * Add transition to backdrop and Dialog * Added Panel Wrapper * Display tokens on hand balance in Profile page (#1851) * REFACTOR: favorites loading in wallet dropdown (#1852) * Admin AP Team - Registrar Config way out of sync with current mainnet contract (#1847) * update registrar admin config/payloads/forms to reflect current contract state * additional fields & cleanup * add in accepted tokens; remove un-used Rebalance items; * Update src/pages/Admin/Core/Templates/registrar/Config/schema.ts Co-authored-by: Nenad Misic <nenad@angelprotocol.io> --------- Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * Rename `Panel -> Modal`, to align with already existing naming convention (#1853) * Move Panel out of folder to a Panel.tsx file * Rename Panel -> Modal * Refactor props spread in Modal * Add Modal.Title for consistency * Align "My Donations" table styles with new Figma designs (#1857) * Refactor borders * Use table border instead of outline * Refactor table styles to include rounded edges * Fix odd/even coloring on desktop table * Fix odd/even coloring on mobile table * Fix coloring for donation details on mobile * Update mobile layout * Remove redundant div around mobiletable items * Remove fixed height h-12 from Disclosure.Button * Update mobile title to font work * Truncate tx hash (align with Figma) * Remove redundant border-b on mobile * Remove transformResponse from useDonationsQuery * Fix roundness of mobile rows * Add load more btn * Remove bottom roundness from table * Add hover/active effects to load more btn * Implement pagionation * Add limit prop to donations * Add loading indicator when loading more donations * Add disabled effect * Fix showing loading indicator * Refactor loading indicator * use charity review for mainnet --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> Co-authored-by: Abbas Ali Lokhandwala <meetabbasali1994@gmail.com> Co-authored-by: Juan Paolo Mariano <65009749+jp-mariano@users.noreply.github.com> Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * contracts update (#1887) * RC-v1.8: reflect contract changes (#1888) * update endowment details and remove endow list query * remove vault rates and vault list query * remove unused account methods * Apply suggestions from code review Co-authored-by: Nenad Misic <nenad@angelprotocol.io> --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * Withdraw funds page (#1876) * Update Withdraw layout and add title * Rename WithdrawTabs to WithdrawForm * Swap WithdrawForm & Withdrawer names * Fix general Withdrawer layout and tabs style * Update keys * Update Tab.Panel className * Refactor tab list * Fix form layout * Update Amounts field * Remove items-center from Form * Update Network styles (with placeholder data) * Update Beneficiary * Update Beneficiary * Add WarningOutline * Update Warnings * Revert "Update Warnings" This reverts commit 9f3526f9d56684a4823201e1f126796ebae4cd3a. * Update WarningOutline icon * Update Warning styles * Refactor useWithdraw * Update Reason styles * Refactor unpack > label field naming * Update Withdraw btn * Refactor Submit * Move QueryLoader into Withdrawer * Remove Transactions header * Make QueryLoader messages appear inside tx table * Remove empty line in Withdraws * Revert "Make QueryLoader messages appear inside tx table" This reverts commit 5c6ab16827e7a8e27e7a0a0143e643afde41e365. * Update (known) columns in Table * Add placeholder tx data * Update table styling * Add start_time to WithdrawLog * Add Start time column * Remove Paster from Beneficiary * Display --- when no start_time * Add network column * Fix column content/order * Update table cells * Add Actions column to Desktop table * Add dark color to 'passed' status * Add dark theme support to Withdrawer * Uncomment 'min withdrawal for Ethereum...' * Read networks from AWS * Update getWalletAddrPattern to handle polygon chain IDs * Update display name for networks listbox * Remove accountTypeDisplayValue and use new terminology * Add mobile support to Withdrawer * Update Desktop Table to handle pagination * Rename ProposalLink to Actions * Add mobile friendly MobileTable * Update to paginated useWithdrawLogsQuery * Make useSort reusable * Make Desktop table sortable * Add sorted withdrawals to MobileTable * Update widths of all Withdraws components * Update MobileTable cols layout * Add custom className to HeaderButton * Fix HeaderButton icon going out of container * Add sortable columns to MobileTable * add top warning on open requests * Remove TableProps.disabled * Extract warning into OpenRequestInfo and add filter to query open proposals * Update OpenRequestsInfo to be mobile friendly * Handle data?.Items (when data is undefined) in Withdraws/index * Remove open proposals info 'No data' msg on no proposals or error * Include proposal_status query param for withdraw logs * Update OpenRequestsInfo to load its own open withdraw logs * Move placeholder data to apes.ts * Apply container queries to Withdraws components * Remove placeholder data * Use /v2/withdraws endpoint for withdraw logs * Update HeaderButton icon to have shrink-0 * Revert changes to unpack * Remove _ from OpenRequestsInfo * Rename LoadMoreBtn.onLoadMore to onClick * Move MobileTable to separate folder * Extract TableRow for mobile * Remove red border on error & fix container query for max-md: * Fix OpenRequestsInfo link to proposals * Move Network out of redundant folder * Update Network to display the selected value by default * Add terra addr. pattern to getWalletAddrPattern * Trigger Amounts validation on network change * Remove reading AWS chains in Network & refactor * Revert changes to getWalletAddrPattern * Make Transactions table/list depend on the container for appearance * Fix Logo flicker * Lazy load Logos * Refactor Logo loading logic * Set isLoading to true if isSrcLoading * Remove 'loading=lazy' from Logo * use account tabs (#1889) --------- Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Fix withdraw table prop link (#1895) * Fix Withdraw table 'view proposal page' Action link * Update FileSearch icon to match Figma * Remove max width for dest. wallet in Withdraws table * AST Launchpad multistep form (#1868) * launchpad route * about apge * management form * fix provider bug * cw4 members table * management settings * path to whitelist * member form * member table rounded * same table beneficiary and contributor * table empty msg * maturity form * splits page * add min-max slider * add min max slider * toggle button * fee page * fees table * launchpad store * slice types * add local storage persistence * navigation logic * prepend types * about validation * done submit about * add form schema * done validation management * common nav button * addr form schema * whitelists form validation * inline wrap * cherry: positive number and percent * maturity schema * done maturity validation * remaining beneficiary share * splits submit * abstract form groups * fee form validation * fees table validation fixxes * update goes to summary when completed * summary page * status to be inline * whitelist and management summary styles * maturity summary styles * maturity beneficiary list * splits summary style * allow editing member weight * bene add share tooltip * wiring progress indicator * slider implementation from gradient to div * disable sliders if custom is disabled * summary submit buttons * add env to hide ast * lazy load AST * add box shadow top only * table section to output td or th * box shadow steps mobile * members table mobile * add member button sm * proposal settings padding sm * alternate color table row * whitelists tables mobile * maturity beneficiaries table mobile * member weight font work * fee table col sizes * fee table alternate color * members summary * launchpad mobile design * mobile layout done * fee table auto collapse * drawer icon * header bg title center * Launchpad submit (#1891) * succesful submit * remove unused comment * aws wiring * save endow to aws * temp show tx link * Launchpad submit success (#1893) * add success page * add start page * fix lint errors * remove copy pasted revalidate * fix isopen ternary * Launchpad fixes (#1896) * active link fix * cherry: close modal setstate callback * fix lint error * Invest dashboard: strategy cards UI (#1900) * strategy placeholder * strategies fixture * rating and APY * add line-clamp plugin * strategy mobile styles * update contracts (#1908) * RC-v1.8 <-- master updates (#1899) * Revert isPrevDark changes to enable light theme being saved (#1869) * Hide 'load more' btn on donations table when no items are there to load (#1860) * Hide 'load more' btn on donations table when no items are there to load * Extract LoadMoreBtn * Handle next page isError * Extract isLoadingOrError var * Refactor to round bot borders when 'load more' btn hidden * Refactor * Refactor * Remove redundant fragment from MobileTable * Refactor Table children * update sorter (#1877) * update deps (#1884) * Help in Registration Link Added (#1872) * Help in Registration Link Added * Refactor 'Need help?' to open article inside Intercom messenger --------- Co-authored-by: Nenad <nenad@angelprotocol.io> * add license file * new banner contents & img * fix test * Giftcard fixes (#1871) * Route correction * Disable submit button while mail is sent * Rich text to html to send in mail * code fixes * Add text-base sm:text-sm to btn-gift * Place Successful code sent popup content inside the Form component * Add error handling to Mailer Form --------- Co-authored-by: Nenad <nenad@angelprotocol.io> * [Hot Fix] Increase Minimum Ethereum Withdraw Amount from 20 to 40 USDC (#1898) * Increase Minimum Ethereum Withdraw Amt from 20 to 40 USDC * Update src/constants/contracts.ts --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * move Logo component to common components (#1849) * move Logo component to common components * Refactored code where Logo component can be reused * Rename LogoPlaceholder to ImagePlaceholder * Move Image & ImagePlaceholder to separate folder * Extract 'border border-prim rounded-full' from Image to calling components * Remove unused Header/Logo.tsx * Update Profile/Logo to use components/Image * Refactor Image * Update APLogo to use Image * Move Profile/Logo into Profile/index.tsx --------- Co-authored-by: Nenad <nenad@angelprotocol.io> --------- Co-authored-by: Nenad Misic <nenad@angelprotocol.io> Co-authored-by: Abbas Ali Lokhandwala <meetabbasali1994@gmail.com> Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> Co-authored-by: Juan Paolo Mariano <65009749+jp-mariano@users.noreply.github.com> * update new testnet contracts (#1916) * RC-v1.8: updates for changes in registrar config (#1914) * update contracts * update reg types * add reg ext query * udpate type consumers * make payload required * update optional contract addr * schema for fields transformed to number * update test for NaN * set defautl values * update form fields * update contract payload * update schema * reg config ext as separate template * Remove unncessary evm packages ( low priority ) (#1897) * evm and window types * remove unncessary ethers packages * custom wcv1 provider * custom erc20 ts contract * update balance fetcher * update evm tx flow * move providerId to types/lists * nodestlib instead of individual browserify package * move abi json * revert min amount * Lowercase 'Balance' -> 'balance' when querying giftcard balances (#1936) * cherry-pick husky & pre-commit checks from master * RC-v1.8: UI update invest form to be strategy-centric ( liq + lock ) (#1918) * add option to hide balance in token field * factor out text-lg token-field * account options with balance validation * radio style as component layer * lock duration options * lock duration and description * dark colors and modal max-h + scroll * lock duration string * remove hardcoded id * lock duration: remove expression and hardcoded id * radio focus color * update endow type (#1940) * Update CheckField input to be a controlled component (#1943) * Bug: not authorized error when executing passed poll (#1944) * re-remove unused deps * fix pollaction bug * Fix `getPayloadDiff` bug: update `isNaN` uses to `Number.isNaN` (#1947) * Add new test with 'type Obj = { a: string }' case to getPayloadDiff.test * Fix isNaN to Number.isNaN * Update test case name * Add polygon in launchpad flow (#1949) * add network meta * add routes constant * add select network page * network page to new page * network icon * add chain stamp on layout * default margin bototm * save network on reset * move curr step to layout * add warnings when user tries to change network * member form polygon validation * maturity addresses * fees address validation * add wip on submit * add hover * update readme * Create AIF Permissions page (#1885) * Add route to Permissions * Add Permissions page/route in Admin/Charity * Mock AdminResource data * Add Table * Improve radio button UI * Increase horizontal cell padding * Add delegate address input field * Add 'reset' btn wiring * Update types + schema to use SettingsPermission * Add donationSplitParams and accountFees form fields * Update FormField to have delegate_address only when delegate===true * Create useSubmit scaffold * Add checkbox-orange style to index.css * Convert RadioButtons to Checkboxes in Table * Disable fields on submitting * Extract Checkbox & refactor it * Revert "Extract Checkbox & refactor it" This reverts commit f7c206e744b2fbb7856b6579ff4e62f702af040f. * Remove redundant Checkbox wrapper * Add EndowmentController type for quering settings * Query EndowmentController query in Permissions * Remove [liquid/locked]AccountStrategy fields from form * Read form fields from queried endow. controller * Create SettingsController.createEmbeddedUpdateEndowmentControllerMsg * Update mock data in Guard * Update Permissions/useSubmit to target appropriate endpoint * Check for different values before submitting * Update mock data * Hide table on small screens * Add missing endow controller tag template * Fix issue with reading table rows * Fix issue with mock data in settingsController * Move table key prop to Controller in Table * Update checkbox onClick to onChange * Console log on submit * Update getPayloadDiff to handle objects * Add mobile table * Fix mob. table styles * Add missing panel border to mob. table * Add white border to checkbox-orange * Remove 'changes' part from the reset btn's label * Handle null values in CellProps * Display Governance column only for AIF * Update modifiable field of mock data * Implement modifiable button * Disable fields when un-modifiable * Optimize useSubmit to send only diff. fields * Fix endow_type check in Table * Remove borders on disabled checkboxes * Disable form buttons when non-AIF * Remove mock data and console.logs * Revert "Remove mock data and console.logs" This reverts commit 01e5b4c16add80eb717eb4dbfa498d6d2ab1c306. * Update checkbox-orange border styles on dark/disabled * Fix disabled logic (didnt work on mobile) * Extract createUpdateEndowmentControllerMsg * Revert "Revert "Remove mock data and console.logs"" This reverts commit 538a51130be6e4bef99f6988d01c72156a89dc09. * Add del. address schema validation * Set default delegate_address value to be an empty string * Check if isAuthorized before disabling form * Refactor row disabling logic * Check delegate address before enabling form * Check initial delegate + address before enabling form * Disable del. address field on mobile if delegate === false * Fix MobileTable 'lock forever' button * Rearrange EndowmentController fields * Read form keys statically in Mobile Table * Create getTypedKeys helper func * Use getTypedKeys in desktop and mobile permission tables * Update Table rows to use register instead of Controller * Remove endow_type === 'charity' check for disabled * Update disabled logic * Add flow where direct msg is sent to contract * Update proposal title to include endow ID * Update proposal description to include member wallet * Update mob. table logic for modifiable (align with desktop) * Extract LockButton * Rename formField to fieldName * Rename FormFields to UpdateableFormValues * Add check for (and precedence to) whether user is controller delegate * Add missing endow_controller tag payload case * Show LockButton for Charities as well * Update comments * Display 'Actions' header for charities too * Update hover/active states for locked forever btn * Add missing disabled state to btn-red * Disable all inputs if users sets modifiable to false * Add error border indicator to del. address * Add error message on Desktop * Update point at which desktop/mobile tables switch to lg: * Hide governance on charity mobile table * Use CheckField in Table * Refactor reset returned from useSubmit * Remove err message from MobileTable > del. addr. input * Show error message below buttons on mobile * Fix 'isDisabled' logic * Extract disabled row logic into useTableData * Disable spell check and autocomplete on tables del. address input * Remove 'disabled' prop from MobileTable * Rehaul authorization logic to check only endowment_controller fields * Rename isDisabled to formDisabled in useTableData * Refactor Permissions > createField * Assign formValues.beneficiaries_allowlist to controller.beneficiaries_allowlist * Include new (sub)obj tests in getPayloadDiff tests * Update column widths on desktop * Remove 'controllerModifiable' check in useTableData * Rename FormValues.delegate to delegated * Invoke 'reset' directly from the appropriate btn * Updated Types for Endowment Querying Params Due To V2.0 Contract Specs (#1962) * Updated Types for Endowment Querying Params Due To V2.0 Contract Specs * Update src/types/contracts/common.ts Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * Update src/types/contracts/common.ts Co-authored-by: Nenad Misic <nenad@angelprotocol.io> --------- Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * Add support for polygon local (#1965) * add support for polygon local * remove tx explorers * Rename Documentation.level to tier (#1963) * Profile logo fix (#1977) * pass classname to img tag * Remove border-prim class from image that dont need it * Submit ast to polygon (#1966) * add support for polygon local * remove tx explorers * scope erc20 to evm * evm account types * tupleable type * to tuple test * add accounts contract * evm helpers on own folder * abstract estimateFee for evm * endow arg NewAIF * juno toAIF on its own file * toAIF helper polygon * remove errors not related to cosmos tx * sendTx function * passed estimate * remove console log * AST - polygon: create multi-tx helper (#1969) * create top level types/tx * cosmos fee estimate on own file * move evm estimate to useTxSender * move terra fee estimate * cosmos tx sender helper * move evm tx sender * terra tx sender helper * estimateTx * send tx helpr' * move cosmos log helper * move terra helpers * update consumers * done useSendTx hook * create multi-tx helper * fix lint errors * apply sendTx to donate flow * add endow_id log key * update consumers of useCosmosTxSender hook * remove unused tx * name consistency * wrap submit with try catch * log error * add console logs and remove comment * Create generic `useTxSender` (#1980) * Repurpose useCosmosTxSender to be more general useTxSender * Remove TxSuccess.rawLog field * Refactor useTxSender.sendTx * Remove content.type === juno check from sender * Update Launchpad to use useTxSender * Rename numId to proposal_id in useLogWithdrawProposal * Refactor Launchpad.submit.onSuccess * Submit polygon AST to AWS (#1972) * create top level types/tx * cosmos fee estimate on own file * move evm estimate to useTxSender * move terra fee estimate * cosmos tx sender helper * move evm tx sender * terra tx sender helper * estimateTx * send tx helpr' * move cosmos log helper * move terra helpers * update consumers * done useSendTx hook * create multi-tx helper * fix lint errors * apply sendTx to donate flow * add endow_id log key * update consumers of useCosmosTxSender hook * remove unused tx * name consistency * wrap submit with try catch * log error * add tx receipt method * minimize abi * receipt and filter * add receipt poller * log extract wiring * minimal balanceof abi --------- Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * fix error (#2002) * pull master into RC-v1.8 (#2004) * fix test * Update deps (#1907) * update web vitals * update cosmjs packages * gtag & socials fixes (#1919) * update gtag ID * update social medial links & handles * husky pre-commit checks - lint staged files & run tests * update TNC url (#1941) * Register cash eligible check (#1894) * Add cash eligible attribute to registration types * Add getValues function to useSubmit hook * Add cash Eligible checkbox with valid hqCountry condition * rename CashEligible attribute * Add eligible countries array * Update src/pages/Registration/Steps/Documentation/Form/index.tsx Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * Update src/pages/Registration/Steps/Documentation/Form/index.tsx Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * Update src/pages/Registration/Steps/Documentation/Form/index.tsx Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * fix: build error * chore: seperate checkbox component * fix: reset usesubmit * fix: attribute name correction * Lint fix * Revert "Lint fix" This reverts commit dfcf72d85a99bc980c41b768dc9eefed692076cc. * fix: attribute case --------- Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * Endow designation added to registration, edit profile and profile view page (#1937) * Added icons * Added Endowment designation options * Add endowDesignation as a field in edit Profile * Add endow_designation as type in form and aws query * Add endow_designation to aws types * Add endowDesignation as a registration field * Add endowdesignation tag on profile page * Cleanup * Rename Npo to Endowment Designation * Fix useSubmit for registration * Apply suggestions from code review --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * Update javascript.yml remove codecov * schema update to add required endowment type (#1946) * schema update to add required endowment type * fix: edit profile populate value * update Documentation schema; update Applications tests * Update src/constants/common.ts --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * Fix: update country list source (#1948) * static countries list * remove country service * update acitivity countries component * update country selector component * update regions filter * update types and schemas * adjust icon size --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * Published input field in edit profile and filter in marketplace (#1915) * Add toggle button in form * Make form value changes to add published attribute * Add published attribute to endowment profiles * hide non published endowments from marketplace * PR Fixes * add aws publsiehd query param * update contract constants for testnet --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * fixes to schema * HOT FIX: Endow Designations & Marketplace Filters (#1951) * match naming & labels for relig orgs; expand desig types in filters; remove Type; * minor updates * Register link added to Header menu (#1958) * update dpes (#1960) * FIX: redundant max buttons on token-field (gift-purchase) (#1961) * show steps only when sufficient balance * use math max * FIX: NPO Type changes (#1959) * tweak NPO Type filter's title & value used; * Profile's NPO Type tag moved into Details column (replaces a placeholder tag); * Marketplace Card label changed to NPO Type * chore: add scroll to my endowments list (#1968) * Footer header link fixes (#1976) * fix giving partners URL * add NPO terms link to footer * Update/refactor Register Signup page layout to match Figma (#1967) * fix: class modifications to align with Figma design * chore: Add connect wallet Link * Revert "chore: Add connect wallet Link" This reverts commit 56152cdf7a748ea84781fd259c631845df7546cc. --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * Set appropriate `endow_designation` fields' types to `EndowDesignation` (#1964) * Fix EndowDesignation fields type * Update value type to EndowDesignation in getEndowDesignationLabelValuePair * Add correct type to const ENDOW_DESIGNATIONS * Rename Designations>non-profit to charity key * hot fix: endow_designation form field failing build * Fix img size bug (#1979) * Add JSDoc comment to genFileSchema * Use same file type when cropping the image * Add comments to ImgCropper.props * Remove console.log from getFileSchema * Display file size under ImgEditor * Extend the tooltip message to give more context * Improve readability of cropped image size tooltip * Update 'cropped file size' to 'cropped image size' * Apply suggestions from code review * lint fixes * fix linter fix --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * fix Ui changes as per figma design (#1953) * fix Ui changes as per figma design * Update src/index.css Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * remove font-bold from <h> tags in registration pages * remove font-bold from <h> tags in Gift pages * remove font-bold from <h> tags in marketplace pages * remove font-bold from <h> tags in components * remove font-bold from <h> tags in admin pages * remove font-bold from <h> tags in donation + leaderboard pages * fix lint errors * fix: gap mobile view * Remove font-heading from additional files --------- Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Update URL scheme to accept any valid http(s) URL (#1986) * Update URL scheme to accept any valid http(s) URL * Add new test cases * Verify only uploaded (pre-crop) image size (#1988) * Add precropSize param to ImgLink * In EditProfile validate only precropSize <= MAX_SIZE * Display error for precrop img size validation * Return 'current image size' tooltip * Add missing error message to EditProfile>schema>imgs>precropSize * Update ImgEditor precropSize to be precropFile * Add ImgEditor.maxSize prop and display max size tooltip conditionally * Revert format in EditProfile FormValues * Validate only precropFile * Revert change to genFileSchema * Removed the duplicate "Crop" button (#1985) * Removed the duplicate "Crop" button * Fixed the scrolling problem in admin list * Update src/components/WalletSuite/ConnectedWallet/Details/MyEndowments/MyEndowments.tsx Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Update src/components/ImgEditor/ImgEditor.tsx --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> * Fix url validation (#1998) * Fix schemas > url to accept empty values (update tests) * Add test case for str being just the schema * Remove 'cases' type * Add few more test cases * add chain type in network error (#1987) * add chain type in network error * Update src/errors/errors.ts Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * import chaindIds * Update "chains" -> "ones" Co-authored-by: Nenad Misic <nenad@angelprotocol.io> --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> Co-authored-by: Nenad Misic <nenad@angelprotocol.io> * fix giftcard error display (#2001) * Comment out leaderboard-related navigation tests --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com> Co-authored-by: Abbas Ali Lokhandwala <meetabbasali1994@gmail.com> Co-authored-by: Satishkumar <satishsajjan4564@gmail.com> * Popup to prompt (#2009) * Update Popup to Prompt for useTxSender,useUpdateStatus,BookmarkBtn,useImgEditor * Update useEditAlliance * Update useConfigureFund * Update useUpdateOwner * Update useConfigureRegistrar * Update registrar > useUpdateOwner * Update Review > useCreateProposal * Update cw3 > useCreateProposal * Use isEmpty in useConfigureRegistrar * Update useUpdateMembers * Update ConfirmEmail * Update VerifyEmail * Update useTransferFunds * Update useDestroyFund * Remove Popup * Remove comment in BookmarkBtn * Revert isEmpty uses * Add back ChainQueryArgs to services/types (#2011) * Add back ChainQueryArgs to services/types * Add back 'Crop' btn * build step added to GH actions --------- Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com> * Add Light theme logo to admin sidebar (#2018) * Create light theme logo * Add light theme log ot constants * Add Light theme logo to header * lint fix * RC-v1.8: CheckField controlled component error (#2017) * set hasAgreedToTerms to boolean by default instead of undefined * lint fix * Replace `img` uses with `/components/Image` component (#2013) * Add alt prop to Image * Update Image to accept forwarded refs * Flatten ImageProps * Add isError state to Image * Add loading prop to Image * Rearrange class names in Image * Refactor ImageProps * Update all img uses to Image * Remove unused LazyImage * Remove components/ImageWrapper * Update CoinBalances & Holdings to use Image * Revert "Add ChainQueryArgs" This reverts commit e8170088e96816a9c6dcfa93fd083f28429abba8. * Fix build errors with services/types * Update Image WithLink to to fix widths heights * Revert "Fix build errors with services/types" This reverts commit 8801e0d467953be75daa5da9fba05701478d536d. * Revert "Revert "Fix build errors with services/types"" This reverts commit b984a1aa8dbc98bd7410ad50d51deeedc1ebad8e. * Apply to both WithLink and img * Add comment URL to useImperativeHandle docs * Refactor props.alt assignment in Image * Remove Image.fallbackSrc * Refactor DiffTable Image use * Add comment explaining the use of ref.current.complete * Remove isLoading state & use props.isSrcLoading to check if content loader should be diplayed * Display…
- Loading branch information