Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix url validation #1998

Merged
merged 4 commits into from
Mar 27, 2023
Merged

Fix url validation #1998

merged 4 commits into from
Mar 27, 2023

Conversation

misicnenad
Copy link
Contributor

Ticket(s):

Explanation of the solution

Issue was due to isValidUrl not accepting empty strings, even though the url schema should accept them.

Updated the schema to accept empty strings and also to handle some edge cases which should clearly be invalid (although JavaScript's URL constructor wouldn't complain). Updated the tests to test the whole url schema instead of just isValidUrl.

Instructions on making this work

  • run yarn or yarn install to install npm dependencies
  • run yarn run test --watchAll to verify all tests still pass
  • (optional) run yarn run build to verify the build passes
  • run yarn start to start the webapp
  • connect Charity 1 wallet
  • go to its Edit profile page http://localhost:4200/admin/1/edit-profile
  • remove any of the social media URLs
  • verify submit is enabled
  • verify clicking submits throws no errors

@misicnenad misicnenad added the bug Something isn't working label Mar 27, 2023
@misicnenad misicnenad self-assigned this Mar 27, 2023
@misicnenad misicnenad added this to the v1.7.4 milestone Mar 27, 2023
@misicnenad misicnenad linked an issue Mar 27, 2023 that may be closed by this pull request
@SovereignAndrey SovereignAndrey merged commit 83f41f7 into master Mar 27, 2023
@SovereignAndrey SovereignAndrey deleted the fix-url-validation branch March 27, 2023 08:28
misicnenad pushed a commit that referenced this pull request Mar 27, 2023
* 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
misicnenad pushed a commit that referenced this pull request Mar 28, 2023
* 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 dfcf72d.

* 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 56152cd.

---------

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>
SovereignAndrey added a commit that referenced this pull request Sep 18, 2023
* 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 ImagePlaceholder only if both src is not loading & no src was passed

* AST to submit in polygon only (#2026)

* remove network icon on steps layout

* payout address fee polygon format only

* multisig member addr polygon format only

* maturity whitelist polygon addresses

* remove network from state

* remove new route/page

* cherry:Fix test tsc

* updat new/continue navigation

* remove submit ast to polygon

* remove juno wiring in ast submit

* whitelsit address polygon

* remove network icon

* fix lint errors

* Remove 'locked' tab for normal/AST endows (#2028)

* Remove 'locked' tab for normal/AST endows

* Hide tab list for endow_type === normal

* Remove 'endow_type === charity && type === locked' check

* Field error border addition (#2020)

* logic to return error class for fields if error exists

* Error class added to TokenFields

* Add error classes to Field Component

* redefine errorclass method

* Add error class to Selector component

* Add error class to Country Selector component

* Add aria-attributes tailwind dependency

* aria-invalid css added

* aria-invalid attribute added to fields/ selectors/ dropdowns

* aria-invalid attribute added to dropzone

* resolve build error

* Revert "Add aria-attributes tailwind dependency"

This reverts commit 202940167eca7ed99693aa388c894fd1e994f12c.

* aria-invalid redefine classes to work without dependencies

* Remove usage of resolvePath

* yarn dependency fix

* build error fixes

* Revert yarn.lock

* Lint fix

* Web3 auth integration (#2024)

* WIP: useWeb3Auth setup

* WIP: web3Auth added to wallet modal

* Add new providerID

* Add web3Auth hook with metamask plugin

* Refactor setupProviderInfo function

* Add switchChain functionality to support multiple chain

* updated dependencies

* add chaindId state to hook

* chainConfig type defs

* Add torus plugin widget

* Implement torus plugin to reconnect on page refresh

* Create wallet connector for registration

* Add walletConnector to choose wallet

* Allow web3Auth as a supported registration wallet

* replace ethers with web3

* LInt fixes

* Build Fixes

* Seperate out web3Auth setup from useEffect

* Build fixes

* rebuild yarn.lock; fix build error; (#2033)

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Fix: yarn errors (#2038)

* fix lint error

* fix lint errors

* Allow torus wallet to connect and dynamically set provider (#2037)

* Fix: web3-auth bugs and trim deps (#2039)

* remove unnecessary packages

* remove yarn package extension entries

* login success

* fix yarn error

* add event handlers

* remove keplr support on registration

* Update src/pages/Registration/Steps/WalletRegistration/WalletSubmission.tsx

Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* error handling

* handle error wallet submission

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>
Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* Add try/catch + error prompt to WalletSuite > DisconnectBtn (#2045)

* Is ast route change (#2056)

* Change Routes for AST

* MOdify MArketplace route if IS_AST true

* Remove index based calls

* update index route to marketpla…
SovereignAndrey added a commit that referenced this pull request Sep 19, 2023
* 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 ImagePlaceholder only if both …
SovereignAndrey added a commit that referenced this pull request Sep 19, 2023
* 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 ImagePlaceholder only if both src is not loading & no src was passed

* AST to submit in polygon only (#2026)

* remove network icon on steps layout

* payout address fee polygon format only

* multisig member addr polygon format only

* maturity whitelist polygon addresses

* remove network from state

* remove new route/page

* cherry:Fix test tsc

* updat new/continue navigation

* remove submit ast to polygon

* remove juno wiring in ast submit

* whitelsit address polygon

* remove network icon

* fix lint errors

* Remove 'locked' tab for normal/AST endows (#2028)

* Remove 'locked' tab for normal/AST endows

* Hide tab list for endow_type === normal

* Remove 'endow_type === charity && type === locked' check

* Field error border addition (#2020)

* logic to return error class for fields if error exists

* Error class added to TokenFields

* Add error classes to Field Component

* redefine errorclass method

* Add error class to Selector component

* Add error class to Country Selector component

* Add aria-attributes tailwind dependency

* aria-invalid css added

* aria-invalid attribute added to fields/ selectors/ dropdowns

* aria-invalid attribute added to dropzone

* resolve build error

* Revert "Add aria-attributes tailwind dependency"

This reverts commit 202940167eca7ed99693aa388c894fd1e994f12c.

* aria-invalid redefine classes to work without dependencies

* Remove usage of resolvePath

* yarn dependency fix

* build error fixes

* Revert yarn.lock

* Lint fix

* Web3 auth integration (#2024)

* WIP: useWeb3Auth setup

* WIP: web3Auth added to wallet modal

* Add new providerID

* Add web3Auth hook with metamask plugin

* Refactor setupProviderInfo function

* Add switchChain functionality to support multiple chain

* updated dependencies

* add chaindId state to hook

* chainConfig type defs

* Add torus plugin widget

* Implement torus plugin to reconnect on page refresh

* Create wallet connector for registration

* Add walletConnector to choose wallet

* Allow web3Auth as a supported registration wallet

* replace ethers with web3

* LInt fixes

* Build Fixes

* Seperate out web3Auth setup from useEffect

* Build fixes

* rebuild yarn.lock; fix build error; (#2033)

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Fix: yarn errors (#2038)

* fix lint error

* fix lint errors

* Allow torus wallet to connect and dynamically set provider (#2037)

* Fix: web3-auth bugs and trim deps (#2039)

* remove unnecessary packages

* remove yarn package extension entries

* login success

* fix yarn error

* add event handlers

* remove keplr support on registration

* Update src/pages/Registration/Steps/WalletRegistration/WalletSubmission.tsx

Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* error handling

* handle error wallet submission

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>
Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* Add try/catch + error prompt to WalletSuite > DisconnectBtn (#2045)

* Is ast route change (#2056)

* Change Routes for AST

* MOdify MArketplace route if IS_AST true

* Remove index based calls

* update index route to marketplace to resolve confusion

* Remove redundant import

* Switch Header Logo based on IS_AST value

* Remove unused appRoutes.index (#2059)

* Update headers and footer links for AST (#2060)

* chore: Update headers and footer links

* Rename variable

* cherry: update charity registration evm (#2061)

* RC-v1.8: cherry fixes (#2073)

* cherry: maturity whitelist fix

* cherry: add tx info in evm timeout

* Tx and query migration to polygon (#2025)

* install swr

* multiquery hook

* contract list

* conract v2 new structure

* query loader swr counterpart

* generic contract query hook

* add contract annotation

* reg and accounts/settigns move to generic

* move accounts to generic

* cw3 to generic query

* cw4 to generic

* index-fund to generic

* remove cw20

* WIP: polygon/juno transform included in endpoint definition (#2000)

* add transform to type

* rename queryObject to queries

* apply transform to queryConract

* revert name

* revert name

* use transformed ret…
SovereignAndrey added a commit that referenced this pull request Sep 29, 2023
* 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 ImagePlaceholder only if both src is not loading & no src was passed

* AST to submit in polygon only (#2026)

* remove network icon on steps layout

* payout address fee polygon format only

* multisig member addr polygon format only

* maturity whitelist polygon addresses

* remove network from state

* remove new route/page

* cherry:Fix test tsc

* updat new/continue navigation

* remove submit ast to polygon

* remove juno wiring in ast submit

* whitelsit address polygon

* remove network icon

* fix lint errors

* Remove 'locked' tab for normal/AST endows (#2028)

* Remove 'locked' tab for normal/AST endows

* Hide tab list for endow_type === normal

* Remove 'endow_type === charity && type === locked' check

* Field error border addition (#2020)

* logic to return error class for fields if error exists

* Error class added to TokenFields

* Add error classes to Field Component

* redefine errorclass method

* Add error class to Selector component

* Add error class to Country Selector component

* Add aria-attributes tailwind dependency

* aria-invalid css added

* aria-invalid attribute added to fields/ selectors/ dropdowns

* aria-invalid attribute added to dropzone

* resolve build error

* Revert "Add aria-attributes tailwind dependency"

This reverts commit 202940167eca7ed99693aa388c894fd1e994f12c.

* aria-invalid redefine classes to work without dependencies

* Remove usage of resolvePath

* yarn dependency fix

* build error fixes

* Revert yarn.lock

* Lint fix

* Web3 auth integration (#2024)

* WIP: useWeb3Auth setup

* WIP: web3Auth added to wallet modal

* Add new providerID

* Add web3Auth hook with metamask plugin

* Refactor setupProviderInfo function

* Add switchChain functionality to support multiple chain

* updated dependencies

* add chaindId state to hook

* chainConfig type defs

* Add torus plugin widget

* Implement torus plugin to reconnect on page refresh

* Create wallet connector for registration

* Add walletConnector to choose wallet

* Allow web3Auth as a supported registration wallet

* replace ethers with web3

* LInt fixes

* Build Fixes

* Seperate out web3Auth setup from useEffect

* Build fixes

* rebuild yarn.lock; fix build error; (#2033)

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Fix: yarn errors (#2038)

* fix lint error

* fix lint errors

* Allow torus wallet to connect and dynamically set provider (#2037)

* Fix: web3-auth bugs and trim deps (#2039)

* remove unnecessary packages

* remove yarn package extension entries

* login success

* fix yarn error

* add event handlers

* remove keplr support on registration

* Update src/pages/Registration/Steps/WalletRegistration/WalletSubmission.tsx

Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* error handling

* handle error wallet submission

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>
Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* Add try/catch + error prompt to WalletSuite > DisconnectBtn (#2045)

* Is ast route change (#2056)

* Change Routes for AST

* MOdify MArketplace route if IS_AST true

* Remove index based call…
SovereignAndrey added a commit that referenced this pull request Oct 1, 2023
* 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 ImagePlaceholder only if both src is not loading & no src was passed

* AST to submit in polygon only (#2026)

* remove network icon on steps layout

* payout address fee polygon format only

* multisig member addr polygon format only

* maturity whitelist polygon addresses

* remove network from state

* remove new route/page

* cherry:Fix test tsc

* updat new/continue navigation

* remove submit ast to polygon

* remove juno wiring in ast submit

* whitelsit address polygon

* remove network icon

* fix lint errors

* Remove 'locked' tab for normal/AST endows (#2028)

* Remove 'locked' tab for normal/AST endows

* Hide tab list for endow_type === normal

* Remove 'endow_type === charity && type === locked' check

* Field error border addition (#2020)

* logic to return error class for fields if error exists

* Error class added to TokenFields

* Add error classes to Field Component

* redefine errorclass method

* Add error class to Selector component

* Add error class to Country Selector component

* Add aria-attributes tailwind dependency

* aria-invalid css added

* aria-invalid attribute added to fields/ selectors/ dropdowns

* aria-invalid attribute added to dropzone

* resolve build error

* Revert "Add aria-attributes tailwind dependency"

This reverts commit 202940167eca7ed99693aa388c894fd1e994f12c.

* aria-invalid redefine classes to work without dependencies

* Remove usage of resolvePath

* yarn dependency fix

* build error fixes

* Revert yarn.lock

* Lint fix

* Web3 auth integration (#2024)

* WIP: useWeb3Auth setup

* WIP: web3Auth added to wallet modal

* Add new providerID

* Add web3Auth hook with metamask plugin

* Refactor setupProviderInfo function

* Add switchChain functionality to support multiple chain

* updated dependencies

* add chaindId state to hook

* chainConfig type defs

* Add torus plugin widget

* Implement torus plugin to reconnect on page refresh

* Create wallet connector for registration

* Add walletConnector to choose wallet

* Allow web3Auth as a supported registration wallet

* replace ethers with web3

* LInt fixes

* Build Fixes

* Seperate out web3Auth setup from useEffect

* Build fixes

* rebuild yarn.lock; fix build error; (#2033)

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Fix: yarn errors (#2038)

* fix lint error

* fix lint errors

* Allow torus wallet to connect and dynamically set provider (#2037)

* Fix: web3-auth bugs and trim deps (#2039)

* remove unnecessary packages

* remove yarn package extension entries

* login success

* fix yarn error

* add event handlers

* remove keplr support on registration

* Update src/pages/Registration/Steps/WalletRegistration/WalletSubmission.tsx

Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* error handling

* handle error wallet submission

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>
Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* Add try/catch + error prompt to WalletSuite > DisconnectBtn (#2045)

* Is ast route change (#2056)

* Change Routes for AST

* MOdify MArketplace route if IS_AST true

* Remove index based calls

* update index route to marketplace to resolve confusion

* Remove redundant import

* Switch Header Logo based on IS_AST value

* Remove unused appRoutes.index (#2059)

* Update headers and footer links for AST (#2060)

* chore: Update headers and footer links

* Rename variable

* cherry: update charity registration evm (#2061)

* RC-v1.8: cherry fixes (#2073)

* cherry: maturity whitelist fix

* cherry: add tx info in evm timeout

* Tx and query migration to polygon (#2025)

* install swr

* multiquery hook

* contract list

* conract v2 new structure

* query loader swr counterpart

* generic contract query hook

* add contract annotation

* reg and accounts/settigns move to generic

* move accounts to generic

* cw3 to generic query

* cw4 to generic

* index-fund to generic

* remove cw20

* WIP: polygon/juno transform included in endpoint definition (#2000)

* add transform to type

* rename queryObject to queries

* apply transform to queryConract

* revert name

* revert name

* use transformed return type

* move to constants

* remove lp contract

* is member query to swr

* apply new is-member query

* is-member and admin-resource

* proposal details

* block latest query

* shorten imports

* rmeove contracts v2

* move queryContract to contracts

* spread query args

* simplify types

* update query hooks/helper to not require harcoded contract addresses

* update consumers

* unused variable

* fix error

* add swr config

* allow disconnected wallet

* keep previous data

* global swr config

* rename query files

* remove query path wrapper

* cw20 transform result

* add placeholder for data consistency

* apply placeholders to queries

* create duplicated query and contract

* cherry: fix query options type

* add endow details query

* remove res from types

* evm querier

* account state query

* cw3 notes

* cw4 members polygon equivalent

* get confirmations query

* proposals

* cherry: use record instead of literal

* cherry: remove unused registrar config fiedls

* remove unused types

* remove unused type

* rename fn to query

* add i-f abi

* funds list query

* add erc20 to query list

* cw20 balance query on standalone fn

* settings controller to endowmentDetails

* giftcard types

* fix ts error juno/queryContract

* add useContractQuery hook

* remove tags

* fix tag type errors

* apply multisig admin field

* fix type errors

* re-add skips

* fix ts error

* abi as named export

* polygon block query

* add account and multisig address

* fix isError flag

* lowercase

* converter name

* remove unused endow details field

* erc20 balance using queryContract

* fix is member flag

* add proposal and members to multisig

* remove spread settings controller

* add member form schema

* migrate controller update msg

* remove settings controller class

* settings co…
SovereignAndrey added a commit that referenced this pull request Oct 1, 2023
* 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 ImagePlaceholder only if both src is not loading & no src was passed

* AST to submit in polygon only (#2026)

* remove network icon on steps layout

* payout address fee polygon format only

* multisig member addr polygon format only

* maturity whitelist polygon addresses

* remove network from state

* remove new route/page

* cherry:Fix test tsc

* updat new/continue navigation

* remove submit ast to polygon

* remove juno wiring in ast submit

* whitelsit address polygon

* remove network icon

* fix lint errors

* Remove 'locked' tab for normal/AST endows (#2028)

* Remove 'locked' tab for normal/AST endows

* Hide tab list for endow_type === normal

* Remove 'endow_type === charity && type === locked' check

* Field error border addition (#2020)

* logic to return error class for fields if error exists

* Error class added to TokenFields

* Add error classes to Field Component

* redefine errorclass method

* Add error class to Selector component

* Add error class to Country Selector component

* Add aria-attributes tailwind dependency

* aria-invalid css added

* aria-invalid attribute added to fields/ selectors/ dropdowns

* aria-invalid attribute added to dropzone

* resolve build error

* Revert "Add aria-attributes tailwind dependency"

This reverts commit 202940167eca7ed99693aa388c894fd1e994f12c.

* aria-invalid redefine classes to work without dependencies

* Remove usage of resolvePath

* yarn dependency fix

* build error fixes

* Revert yarn.lock

* Lint fix

* Web3 auth integration (#2024)

* WIP: useWeb3Auth setup

* WIP: web3Auth added to wallet modal

* Add new providerID

* Add web3Auth hook with metamask plugin

* Refactor setupProviderInfo function

* Add switchChain functionality to support multiple chain

* updated dependencies

* add chaindId state to hook

* chainConfig type defs

* Add torus plugin widget

* Implement torus plugin to reconnect on page refresh

* Create wallet connector for registration

* Add walletConnector to choose wallet

* Allow web3Auth as a supported registration wallet

* replace ethers with web3

* LInt fixes

* Build Fixes

* Seperate out web3Auth setup from useEffect

* Build fixes

* rebuild yarn.lock; fix build error; (#2033)

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Fix: yarn errors (#2038)

* fix lint error

* fix lint errors

* Allow torus wallet to connect and dynamically set provider (#2037)

* Fix: web3-auth bugs and trim deps (#2039)

* remove unnecessary packages

* remove yarn package extension entries

* login success

* fix yarn error

* add event handlers

* remove keplr support on registration

* Update src/pages/Registration/Steps/WalletRegistration/WalletSubmission.tsx

Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* error handling

* handle error wallet submission

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>
Co-authored-by: Nenad Misic <nenad@angelprotocol.io>

* Add try/catch + error prompt to WalletSuite > DisconnectBtn (#2045)

* Is ast route change (#2056)

* Change Routes for AST

* MOdify MArketplace route if IS_AST true

* Remove index based calls

* update index route to marketplace to resolve confusion

* Remove redundant import

* Switch Header Logo based on IS_AST value

* Remove unused appRoutes.index (#2059)

* Update headers and footer links for AST (#2060)

* chore: Update headers and footer links

* Rename variable

* cherry: update charity registration evm (#2061)

* RC-v1.8: cherry fixes (#2073)

* cherry: maturity whitelist fix

* cherry: add tx info in evm timeout

* Tx and query migration to polygon (#2025)

* install swr

* multiquery hook

* contract list

* conract v2 new structure

* query loader swr counterpart

* generic contract query hook

* add contract annotation

* reg and accounts/settigns move to generic

* move accounts to generic

* cw3 to generic query

* cw4 to generic

* index-fund to generic

* remove cw20

* WIP: polygon/juno transform included in endpoint definition (#2000)

* add transform to type

* rename queryObject to queries

* apply transform to queryConract

* revert name

* revert name

* use transformed return type

* move to constants

* remove lp contract

* is member query to swr

* apply new is-member query

* is-member and admin-resource

* proposal details

* block latest query

* shorten imports

* rmeove contracts v2

* move queryContract to contracts

* spread query args

* simplify types

* update query hooks/helper to not require harcoded contract addresses

* update consumers

* unused variable

* fix error

* add swr config

* allow disconnected wallet

* keep previous data

* global swr config

* rename query files

* remove query path wrapper

* cw20 transform result

* add placeholder for data consistency

* apply placeholders to queries

* create duplicated query and contract

* cherry: fix query options type

* add endow details query

* remove res from types

* evm querier

* account state query

* cw3 notes

* cw4 members polygon equivalent

* get confirmations query

* proposals

* cherry: use record instead of literal

* cherry: remove unused registrar config fiedls

* remove unused types

* remove unused type

* rename fn to query

* add i-f abi

* funds list query

* add erc20 to query list

* cw20 balance query on standalone fn

* settings controller to endowmentDetails

* giftcard types

* fix ts error juno/queryContract

* add useContractQuery hook

* remove tags

* fix tag type errors

* apply multisig admin field

* fix type errors

* re-add skips

* fix ts error

* abi as named export

* polygon block query

* add account and multisig address

* fix isError flag

* lowercase

* converter name

* remove unused endow details field

* erc20 balance using queryContract

* fix is member flag

* add proposal and members to multisig

* remove spread settings controller

* add member form schema

* migrate controller update msg

* remove settings controller class

* settings controller update

* remove encode/decode extra wrappers

* erc20 remove encode/decode wrappers

* giftcard wrapper

* index-fund wrappers

* query name

* multisig: remove encode/decode wrappers

* errors to isError

* fix lint error

* remove cw4 types

* remove CW4 contract

* remove cw20 native methods

* remove airdrop and gov

* remove cw20 contract

* remove halo contract

* confirm-tx

* add execute-tx

* remove owner method

* index-fund funds list query

* alliance members query

* update migrated placeholders

* add registrar config data

* query registrar config

* add dUSD placeholder

* add index-fund transactions

* arg types

* add encodings

* accounts token-balance

* Multisig member templates aligned to polygon contract functionality (#2040)

* add/remove form

* tooltip when no member

* fix schema

* add form content

* accounts balance

* endow balance query

* index-fund config

* fix registrar query

* fix index fund config

* remove proposal status and expiration

* proposal stats

* fix pagination

* latest tx status

* confirm list

* execute poll

* adjust gast

* add revoke button

* round down gas

* sign wiring

* remove group selector

* add exec fail wiring

* maturity time type

* locked withdraw contract

* withdraw lock should for matured normal endowments

* interfaces refactor

* lower case all addresses for easy comparison

* add polygon network

* add encoders and more checks

* toLowercase

* update schema

* update log chain id

* remove unused ui

* members for adding comparison

* index-fund owner template

* wiring to polygon

* update wiring members

* submit wiring

* cherry:reverse isMatured

* remove console log

* remove index-fund contract

* Align proposal(s) page to polygon functionalities (#2047)

* remove proposal status and expiration

* proposal stats

* fix pagination

* latest tx status

* confirm list

* execute poll

* adjust gast

* add revoke button

* round down gas

* sign wiring

* remove group selector

* abstract block time

* add tests

* reverse lock liquid

* cherry: update charity registration evm

* update comment

* Alliance members edit UI for polygon (#2057)

* remove unused ui

* members for adding comparison

* Charity application evm  (#2065)

* remove unused contracts and methods

* add charity application contract

* correct charity-application addr

* add application update

* add update types

* route to application page

* update types

* application page content

* app_id and ref in param

* remove 'undefined' check

* add contract methods

* propose modal

* move application on own folder

* approve/reject form

* style button

* use json abi

* Multisig updates (#2074)

* proposal details

* config changes

* reflect threshold in proposal details

* cherry: maturity whitelist fix

* description label

* cherry: add tx info in evm timeout

* wilLExecute on context of voting

* add back config template

* Minor fixes from CU (#2077)

* fix AIF >> AST rewording

* fix fee label

* types/methods w/ AIF renamed to AST for completeness

* more tweaks

* start page - subheader text & hide 7of7 steps (completed) links;

* fix text size; rename AST type file;

* revert hiding logic

* swap in new AP white logo svg

* payment word wrapper: commonly toggled in copy by endowment type

* fix svg tags

* temp hide admin sidebar settings until functional

* Meld FIat Donation integration (#1999)

* Add fiat as token type

* Add Fiat USD token on constants

* disable balance check for fiat donations

* Add Submit Page for Fiat Txn

* Seperate Modal for Fiat Donations

* Add fiat tokens as option to donation

* Add condition to redirect to Fiat Submission page based on token type

* Meld Modal Setup

* Update API key

* Add UUID based external session ID

* setup logfiatdonation method

* Update fiat donation log types

* Update donation Args

* Add sendFiatDonation thunk

* Trigger fiatDonation thunk on submit

* Modify v3/donation payload as per new requirements

* Add uuid dependency clean

* Remove redundant file

* update Meld access token to env

* Update MELD API to check for testnet

* fix: repurpose files

* payment option dropdown added

* base form index page setup

* form page design

* WIP

* Update Fiat widget url creation Api

* Fiat donation Thankyou page added

* Add apes backend APi for crypto payment link

* Add country ISO code list

* REmove modal and call API from submit page

* token amount check validation for USD

* Revert "Add uuid dependency clean"

This reverts commit abbf79c278f8e435bfe675a7ad52d6b2e242a86a.

* Add EUR as Fiat currency

* Added GBP and AUD tokens to fiat

* display loading icon while payment link is fetched

* move FiatThanks to a page

* Contribution vs Donation text to toggle

* create donate fiat placeholder route (to be an ONLY fiat donations flow); update link route;

* Remove wallet dependecy from Fiat Submit page

* Create seperate page for No-wallet Fiat Donation

* CSS modifications

* Fix Breadcrumb

* Ui Fixes

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* fix wrong appRoutes;

* Show ast profile and edit profile (#2078)

* ast profile types and update

* ast edit profile form

* edit profile shown

* remove static flag

* single edit profile form

* fix schema when case

* remove redundant field

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* More payment wording fixes (#2079)

* import cleanup & linting

* fix tsc error

* widget payment verbiage updated

---------

Co-authored-by: ap-justin <justin@angelprotocol.io>

* update AWS endpoints to correct versions

* Evm edit profile (#2080)

* evm wiring

* cherry: wallet address be also lowercase

* load step

* remove console log

* Mor fixes pt3 (#2081)

* fix breadcumbs

* fix wallet droopdown name

* hide donations on dashboard

* remove newsletter for ASTs

* New GA for ASTs; turn off intercom for ASTs;

* Charity application proposal save to AWS (#2082)

* retrieve id and save to aws

* pass reference

* style link

* add tx-id check

* Permissions: Hide governance column (#2087)

* Hide governance column on desktop permissions table

* Hide governance column on mobile permissions table

* Charity registration fixes in v1.8 (#2083)

* hide cash eligable checkbox; fix active countries wording;

* add MM to reg; walletConnector can use a label diff from name

* AST investments placeholder (#2084)

* dummy data for invest strategy

* disable invest btn; single strat shown in list;

* smartlook added for AST (#2085)

* temp headers for AST; Fix domain toggling for links/logos/email; (#2086)

* Add Polygon to Kado modal buy options (#2092)

* [Edit profile] make all non-contract fields optional (#2091)

* Make banner & logo optional

* Make website optional

* Make overview optional

* Remove validation for hq & overview

* Remove asterisks fro relevant form fields

* Remove unused imports in schema

* Update relevant Endowment field types to be optional

* Set angelprotocol-rounded-logo.png as placeholder logo for new ASTs (#2093)

* promote MM to 1st class; Keplr bumped down; (#2089)

* Adjust permissions rules (#2090)

* Update schema & error display logic

* Hide checkbox errors

* Update schema to handle cyclical validation

* Hide mobile checkbox errors

* Remove red border around del. address when checkbox errors appear

* Set at least one of admin wallet and gov to be required

* Add explanatory comment to excludes field of shape

* Add validation trigger to useSubmit

* Export getFieldErrorName from barrel file

* Fix typo in schema

* Remove redundant schema validation for govControlled field

* Add missing useEffect dep in useSubmit

* AST unpublished & Bookmarks - RC-v1.8 cherry-pick (#2101)

* Add profile unpublished Page

* Adds outline to bookmark icon in light mode

* AST wording toggle;

* No Index Route: AST based route toggle added;

---------

Co-authored-by: abbasali1994 <meetabbasali1994@gmail.com>

* V1.8 followup bugs (#2102)

* goldfinch invest wording fixed

* smartlook script needs to be in the HEAD

* open external links in new tab/window

* remove old static assets

* use ExtLink component

* add GH Repo link to AST Header;

* AST Admin deposits (#2088)

* add deposit route to admin & use existing donate logic

* hide breadcrumbs for AST donations;

* use different svg icon for deposit

* Optional maturity in launchpad (#2104)

* update schema

* initial hookform string

* maturity time comparison

* Add ISO codes within Country type (#2103)

* Add Iso codes to coutries array

* Add code as attribute in Country Type

* Remove redundant country codes file

* toggle to set maturity (#2106)

* V1.8 strategies - preliminary work & balances placeholders (#2108)

* AWS strategies obj data updates; moved to types/aws;

* placeholders added for User's strategy balance; Needs to be fetched from a TStrategy.vaults.{locked|liquid} contract Balance Query;

* Donate refactor v1.8 (#2105)

* show fiat when no wallet connected; DRYup code;

* remove grey input field bg

* remove console logs

* donate container @sm

* cleanup (#2107)

* cleanup

* remove block chain on fiat

* add margin

* remove unused constants

* DV >> DonateValues;

---------

Co-authored-by: ap-justin <89639563+ap-justin@users.noreply.github.com>

* Admin ast switch button display ASTs Toggle (#2110)

* Add AST list component

* Add ASt list to charity header

* hide button if wallet not connected

* Add transition to display

* minor tweaks;

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Strategy api integration (#2112)

* Added strategies component

* Add aws query and enable invest button

* remove horizontal scroll from modal

* fix strategies loading logic; disable invest button (tempfor Testnet MVP; clean up old file;

* add small bit of padding around donate KYC form;

* more minor fixes to KYC form;

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Create "Other settings" page in AST admin (#2109)

* Add ContributorVerification page

* Add bluegray-d2

* Add btn-outline-gray

* Add ContributorVerification content

* Create generic Radio button

* Extract ChangeSettingsPrompt

* Remove ErrorMessage from Radio

* Convert Radio component to plain non-react-hook-form

* Update ContributorVerification

* Fix wrong message being shown

* Make ContributorVerification mobile friendly

* Make ChangeSettingsPrompt mobile friendly

* Minor var rename

* Add contributor_verification_required to EndowmentProfileUpdate

* Create useEditProfile hook

* Rename hooks/useEditProfile to useUpdateEndowmentProfile & update useEditProfile to use it

* Create VerificationRequired type

* Use VerificationRequired instead FormValues

* Remove FormValues

* Add contributor_verification_required to EndowmentBase

* Add contributor_verification_required to EndowmentDetails (query contract logic)

* Add update profile logic to ContributorVerification

* Revert "Add contributor_verification_required to EndowmentDetails (query contract logic)"

This reverts commit 2c63893282e6cc0d3c5c22aab2db613454986acd.

* Load contributor_verification_required from endow profile

* Add the Other Settings page only to ASTs

* toggle payer word;

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Launchpad summary raw message (#2114)

* add msg preview

* add link to docs

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Query donations - v1.8 (#2111)

* remove unused;

* use new donation query - chain_id & id;

* tweak - fix spacing

* tweak - re-format & fixes to spacing

* Donate: Skip donation KYC step completely if required (#2113)

* Skip donation KYC step completely if required

* Update setStep to handle skipping KYC step

* Update progress bar

* Check profile type to set skipKycStep

* Revert changes to Donate

* Add missing skipKycStep to Deposits/index

* Skip KYC on AST admin deposits

* move script further up w/in head tag; (#2116)

* Proposal threshold n/m format (#2117)

* threshold form

* remove member weight

* default 1 threshold

* duration and auto-execute

* summary adjustments

* mobile view

* mvoe transferred schema

* remove padding (#2118)

* AST fixes (#2119)

* delegate evm address

* default multisig members

* default permission

* Edit Profile: Fix AST profile page description saying 'charity' (#2121)

* Change charity/endowment to 'organization' in EditProfile form

* Revert Endowment Designation label

* Custom Titles added for Admin pages (#2120)

* Add SEO to Launchpad

* Add SEO to Charity Dashboard

* Add SEO to Donate Widget

* Update DonateWidget loaded profile var from 'p' to 'profile'

* Update Dashboard SEO to contain profile descr name & image

* Create common admin charity SEO

* Add seo to Account

* Add seo to Proposal

* Add seo to Proposals

* Add SEO to Templates

* Add SEO to Deposits

* Set root url for charity SEO

* Add SEO to Withdraws

* Add SEO to Invest

* Add SEO to Contributions]

* Add SEO to permissions

* Add SEO to contributor_verification

* Add SEO to WidgetConfigurer

* Add SEO to Templates

* Add SEO to Core/Templates

* Update SEO title for core/templates

* Add adminRoutes.application and use in AppRow and Admin/Review

* Add SEO to Summary

* Fix titles for Invest,EditProfile,Proposals,Contr.Verification,Launchpad

* Permissions fix (#2122)

* field order

* user delegated flag

* CW3 cleanup (#2123)

* remove cw3 review types and ui

* move cw3

* move CW3 contract

* move multisig to contracts

* Add referral ID field (#2115)

* Add referral ID field

* Revert IS_AST

* Update referral label

* Admin registrar owner template (#2126)

* add update owner abi

* update schema

* smartlook tweak;

* Add connect wallet page in Launchpad (#2125)

* Step 7 modified to connect Wallet

* Connect Wallet Page Added

* Ui fix

* Remove keplr option from connect wallet

* Add connect wallet option on summary page if not already connected

* Update src/pages/Launchpad/ConnectWallet/ChooseWallet/index.tsx

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* fix AST env var in index.html

* fix AWS version: donation & endowments

* comment out fields (#2131)

* details link (#2135)

* disable admin checkbox (#2133)

* Charity Application bug fixes (#2128)

* update contract addr

* allow metamask

* remove dark bg country selector

* add overrides

* registrar config

* add tokens field

* add auto execute msg

* lint fix

* Multisig wallet transfer funds (#2136)

* reuse tokenfield

* add native in token list

* update schema

* tag invalidation

* partial balances (#2139)

* AST launchpad Split fixes (#2140)

* onchangeProp

* persisted defaultMin

* resets on onChangeprop

* use 100s complement

* Remove hardcoded chaind from donation AWS queries (#2127)

* Fix Contibutions UI wording  (#2134)

* Add Payment Words Fix

* Advanced options AST changes

* Fix Contributor Verification

* Bug Fix

* lint

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Minor admin UI fixes (#2144)

* fix ContributorVerification button colors;

* fix mobile sidebar opener height (made it smaller);

* revert sidebr opener change;

* RC-v1.8: remove unused code (#2146)

* remove unused

* remove more unused

* more removal

* remove more unused

* remove unused

* use type for submission directly in form (#2145)

* RC-v1.8: donation fixes (#2147)

* set kyc even when skipped

* memoize Content

* add dest chainId

* remove unused abstractions

* make launchpad steps clicakble (#2142)

* make launchpad steps clicakble

* update steps constants

* Modfiy Progress to map steps constants

* Launchpad progress navigation fixes (#2148)

* remove labels in launchpad wide constants

* revert changes to const steps

* list names on <PRogress/

* fix link bugs

* num to string

* revert order

* use progress instead

* Migrate future txs (#2149)

* semi migrate accounts invest redeem

* remove old types

* useUdate status wiring

* done endow status template

* remove query

* rename type

* Bug fixes (#2170)

* To cater for latin chars in country names

* Resolve key definition error

* Donation Error page fix

* Add Default Admin Route

* change donation wording (#2152)

* change donation wording

* Lint fixes

* Migrate giftcard (#2169)

* semi migrate accounts invest redeem

* remove old types

* useUdate status wiring

* done endow status template

* remove query

* update types

* fix errors

* remove gift field from token

* filter gift with flag

* concat id and type as key

* giftcard-spend

* remove gift comment

* purchase wiring

* no min amount for gift tokens

* remove gift class

* remove placeholders

* lowercase token_id

* for approval ui

* fix lint warning

* Refetch profile data on update (#2173)

* Refetch profile data on update

* Fix invalidateTags

* polygon check (#2182)

* twitter tracking script added; (#2185)

* App Type drives SideMenu & Dashboard title wording (#2184)

* clean up index head tag & add new FB pixel;

* tweak for more wording issues in Admin;

* add tracking script to head & reg submission ping; (#2188)

* Fix splits (#2193)

* fix splits

* otther default for consistency

* deps update (#2204) (#2205)

* Clean up images, env var/constants usage,  & add better Getting Setup instructions (#2207)

* create example .env & update readme

* move all constants that use process.env.X into env.ts file; Update all imports accordingly;

* expand readme instructions

* move images/logos to public folder & refactor links to them; Remove old/unused images;

* fix active header nav link color is not orange;

* clean up example .env file;

* add amplify build override file

---------

Co-authored-by: Andrey <SovereignAndrey>

* Reflect latest changes in smart contracts (#2186)

* retrieve id and save to aws

* pass reference

* style link

* add tx-id check

* aws save flow

* remove unused

* update usdc addr

* Add whitelist Route

* Add Whitelist base UI

* Added Load more button

* Added Allowance dropdown UI

* whitelistedContributors & whitelistedBeneficiaries types added wherever needed

* Whitelist Form setup

* Remove Allowance Logic

* Remove "load more" button  as No pagination

* Revert endowment Profile type changes

* Add txn types for updateEndowmentSettings

* Trigger updateEndowmentSettings on submit

* Modify tuple EndowmentSettingsUpdate

* update threshold

* initial meta definitions

* meta status

* locked withdraw meta

* definition cleanup

* tx meta definition

* apply meta

* use meta field

* index-create-fund preview

* apply meta to templates

* more previews

* multisig previews

* reg update

* index fund config meta

* update statusMeta

* withdraw meta

* alliance udpate meta

* index-fund metas

* reg config meta

* reg owner meta

* multisig member

* proposal description

* update template routes

* update pre/post cache tags

* show raw data

* fix mock

* remove auto-execute fail check

* fix lint error

* flatten helper

* isPrimitive instead of istupleable

* refactor payload diff

* move helper

* remove genDiffMeta

* reuse addresses form

* pass initial values

* fix error

* update controller msg

* fixed types

* update contract addresses

* update create endow event

* fix endow balance

* move query abi to separate file

* add type-chain types and ethers

* query definition

* registrar & index-fund config

* remove funds list

* multisig transaction and endowment details

* remove manual endowment type

* endowment state type

* remove manual state type

* create endow request

* update update settings struct

* update controller msg

* remove manual dao type

* deposit request

* remove unused types

* remove formatting

* index fund config update

* reg config update

* endow status to close endowment

* rename template

* owner query registrar

* remove unused update status meta

* type fixes

* remove alliance template

* remove fund selection with fundId field

* update fund member template update

* members to string

* remove problematic barrel

* fix type error

* registrar owner abi

* temp remove type-chain

* add typechain back

* remove two barrel files

* reg config account state abi

* tag paylaod break

* fixes

* revert app test

* clenaup

* types cleanup

* remove test page

* fix bene allowlist

* modify metadata encoding

* submitTransactionAbi

* update indexfund abis

* update endow settings

* update endow settings abi

* update types

* permissions update

* launchpad message

* create endowment abi

* registrar config abi

* endow details abi

* registrar config

* registrar config update

* reflect type changes

* done reflect changes

* update contract addresses

* remove locked withdraw

* update abis

* update types

* remove unused typechain types

* empty data constant

* udpate fund members

* settings permission tx adjustment

* cache invalidation on sign & execute

* settings permission renaming

* permission btn colors

* remove log

* abi and tags

* add token -templates

* update withdraw tx test

* Updates for staging endpoints (#2194)

* create helper

* update endpoints

* simplify withdraw msg

* update types

* fix lint errors

* Staging Implementation for Algolia Marketplace Search (#2206)

* ednow details eabi

* remove locked-withdraw

* Reflect deposit changes (#2208)

* update typechain types

* update typechain types

* update accounts

* fix fee bug

---------

Co-authored-by: abbasali1994 <meetabbasali1994@gmail.com>
Co-authored-by: Juan Paolo Mariano <65009749+jp-mariano@users.noreply.github.com>

* Style updates for proposals page (#2209)

* retrieve id and save to aws

* pass reference

* style link

* add tx-id check

* aws save flow

* remove unused

* update usdc addr

* Add whitelist Route

* Add Whitelist base UI

* Added Load more button

* Added Allowance dropdown UI

* whitelistedContributors & whitelistedBeneficiaries types added wherever needed

* Whitelist Form setup

* Remove Allowance Logic

* Remove "load more" button  as No pagination

* Revert endowment Profile type changes

* Add txn types for updateEndowmentSettings

* Trigger updateEndowmentSettings on submit

* Modify tuple EndowmentSettingsUpdate

* update threshold

* initial meta definitions

* meta status

* locked withdraw meta

* definition cleanup

* tx meta definition

* apply meta

* use meta field

* index-create-fund preview

* apply meta to templates

* more previews

* multisig previews

* reg update

* index fund config meta

* update statusMeta

* withdraw meta

* alliance udpate meta

* index-fund metas

* reg config meta

* reg owner meta

* multisig member

* proposal description

* update template routes

* update pre/post cache tags

* show raw data

* fix mock

* remove auto-execute fail check

* fix lint error

* flatten helper

* isPrimitive instead of istupleable

* refactor payload diff

* move helper

* remove genDiffMeta

* reuse addresses form

* pass initial values

* fix error

* update controller msg

* fixed types

* update contract addresses

* update create endow event

* fix endow balance

* move query abi to separate file

* add type-chain types and ethers

* query definition

* registrar & index-fund config

* remove funds list

* multisig transaction and endowment details

* remove manual endowment type

* endowment state type

* remove manual state type

* create endow request

* update update settings struct

* update controller msg

* remove manual dao type

* deposit request

* remove unused types

* remove formatting

* index fund config update

* reg config update

* endow status to close endowment

* rename template

* owner query registrar

* remove unused update status meta

* type fixes

* remove alliance template

* remove fund selection with fundId field

* update fund member template update

* members to string

* remove problematic barrel

* fix type error

* registrar owner abi

* temp remove type-chain

* add typechain back

* remove two barrel files

* reg config account state abi

* tag paylaod break

* fixes

* revert app test

* clenaup

* types cleanup

* remove test page

* fix bene allowlist

* modify metadata encoding

* submitTransactionAbi

* update indexfund abis

* update endow settings

* update endow settings abi

* update types

* permissions update

* launchpad message

* create endowment abi

* registrar config abi

* endow details abi

* registrar config

* registrar config update

* reflect type changes

* done reflect changes

* update contract addresses

* remove locked withdraw

* update abis

* update types

* remove unused typechain types

* empty data constant

* udpate fund members

* settings permission tx adjustment

* cache invalidation on sign & execute

* settings permission renaming

* permission btn colors

* remove log

* abi and tags

* add token -templates

* update withdraw tx test

* Updates for staging endpoints (#2194)

* create helper

* update endpoints

* simplify withdraw msg

* update types

* fix lint errors

* ednow details eabi

* remove locked-withdraw

* update typechain types

* change status selector style

* open and approve as options

* remove block nubmer

* toolbar light mode styles

* remove proposals card

* tag bug

* load more row

* fix active nav padding

* done mobile layout

---------

Co-authored-by: abbasali1994 <meetabbasali1994@gmail.com>

* Admin wallet (#2215)

* update icon sizes

* add admin walletroute

* remove members template

* render members form

* settings section

* cherry: hover for enabled only

* add duration ui

* spacing and font size

* mobile styles

* wire threshold update

* remove cw3 config template

* val should be new

* gap mobile

---------

Co-authored-by: SovereignAndrey <85138450+SovereignAndrey@users.noreply.github.com>

* Include settings controller when detemrining authorization (#2210)

* retrieve id and save to aws

* pass reference

* style link

* add tx-id check

* aws save flow

* remove unused

* update usdc addr

* Add whitelist Route

* Add Whitelist base UI

* Added Load more button

* Added Allowance dropdown UI

* whitelistedContributors & whitelistedBeneficiaries types added wherever needed

* Whitelist Form setup

* Remove Allowance Logic

* Remove "load more" button  as No pagination

* Revert endowment Profile type changes

* Add txn types for updateEndowmentSettings

* Trigger updateEndowmentSettings on submit

* Modify tuple EndowmentSettingsUpdate

* update threshold

* initial meta definitions

* meta status

* locked withdraw meta

* definition cleanup

* tx meta definition

* apply meta

* use meta field

* index-create-fund preview

* apply meta to templates

* more previews

* multisig previews

* reg update

* index fund config meta

* update statusMeta

* withdraw meta

* alliance udpate meta

* index-fund metas

* reg config meta

* reg owner meta

* multisig member

* proposal description

* update template routes

* update pre/post cache tags

* show raw data

* fix mock

* remove auto-execute fail check

* fix lint error

* flatten helper

* isPrimitive instead of istupleable

* refactor payload diff

* move helper

* remove genDiffMeta

* reuse addresses form

* pass initial values

* fix error

* update controller msg

* fixed types

* update contract addresses

* update create endow event

* fix endow balance

* move query abi to separate file

* add type-chain types and ethers

* query definition

* registrar & index-fund config

* remove funds list

* multisig transaction and endowment details

* remove manual endowment type

* endowment state type

* remove manual state type

* create endow request

* update update settings struct

* update controller msg

* remove manual dao type

* deposit request

* remove unused types

* remove formatting

* index fund config update

* reg config update

* endow status to close endowment

* rename template

* owner query registrar

* remove unused update status meta

* type fixes

* remove alliance template

* remove fund selection with fundId field

* update fund member template update

* members to string

* remove problematic barrel

* fix type error

* registrar owner abi

* temp remove type-chain

* add typechain back

* remove two barrel files

* reg config account state abi

* tag paylaod break

* fixes

* revert app test

* clenaup

* types cleanup

* remove test page

* fix bene allowlist

* modify metadata encoding

* submitTransactionAbi

* update indexfund abis

* update endow settings

* update endow settings abi

* update types

* permissions update

* launchpad message

* create endowment abi

* registrar config abi

* endow details abi

* registrar config

* registrar config update

* reflect type changes

* done reflect changes

* update contract addresses

* remove locked withdraw

* update abis

* update types

* remove unused typechain types

* empty data constant

* udpate fund members

* settings permission tx adjustment

* cache invalidation on sign & execute

* settings permission renaming

* permission btn colors

* remove log

* abi and tags

* add token -templates

* update withdraw tx test

* Updates for staging endpoints (#2194)

* create helper

* update endpoints

* simplify withdraw msg

* update types

* fix lint errors

* Staging Implementation for Algolia Marketplace Search (#2206)

* ednow details eabi

* remove locked-withdraw

* update typechain types

* update typechain types

* update accounts

* fix fee bug

* include delegate addr on submit

* remove is authorized

* switch statement

* remove helper and test

* simplify withdraw flow

* yarn lint

* tranfer meta to admin context

* types udpate

* update settings cache

* add token balance

* Reflect deposit changes (#2208)

* update typechain types

* update typechain types

* update accounts

* fix fee bug

* merge beneficiary and contributors

* update threshold form

---------

Co-authored-by: abbasali1994 <meetabbasali1994@gmail.com>
Co-authored-by: Juan Paolo Mariano <65009749+jp-mariano@users.noreply.github.com>

* Other settings (#2217)

* contributor page to other settings page

* icon size

* rename directory

* factor out fees table for reuse

* default export

* add early withdraw and balance fee

* form type

* move contributor verificaiton to own folder

* fix lint error

* section styling

* submit reset btn

* fee update wiring

* t…
SovereignAndrey added a commit that referenced this pull request Dec 4, 2023
* 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…
misicnenad pushed a commit that referenced this pull request Dec 11, 2023
* RC-v1.9 -> master (#2537)

* 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 co…
SovereignAndrey added a commit that referenced this pull request Dec 20, 2023
* 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 ImagePlace…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

bug on new URL changes meaning no-one can change their page
2 participants