Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add typeform survey widget config #182

Merged
merged 9 commits into from
Jul 16, 2024
Merged

Conversation

ty4g1
Copy link
Contributor

@ty4g1 ty4g1 commented Jul 11, 2024

No description provided.

@ty4g1 ty4g1 requested a review from andrewsoon July 11, 2024 06:49
Copy link
Contributor

@andrewsoon andrewsoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rmb to update the pr_template and readme, can refer to:
https://github.com/Switcheo/demex-webapp-config/pull/159/files

can add the relevant checks in check_configs script e.g. endTime must be later than now, no duplicate pages

be sure to run yarn check-configs and yarn validate to make sure the json and script is added correctly and to test whether the script is validating the entries properly too
image

Comment on lines 222 to 229
"typeform_widget_config": {
"surveyLink": "https://switcheonetwork.typeform.com/to/C1rheplK",
"endTime": "2024-07-26T23:00:00Z",
"pages": [
"/account/overview",
"/account/balance"
]
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this only allows one survey to be ongoing at one time, it should be a map/array of survey params instead so that we can support multiple survey forms

@@ -17,7 +17,7 @@ Each json file under the [configs](../../configs) folder correspond to their res
|`demex_points_config` |`DemexPointsConfig` |false |Object that contains the parameters to earn demex points. |This object **must be included** for mainnet.json as demex points is already live on mainnet. |
|`perp_pool_promo` |`PerpPoolPromo` |false |Map of Objects that contains perp pool promo parameters for each pool |If the `perp_pool_promo` property is omitted, no promo will be shown. The key of each entry is the ids of the perp pools with existing promo. |
|`cross_selling_source_tokens` |`string[]` |true |The array of cross selling source tokens. Acquiring these tokens on the spot market will trigger a help wizard, prompting users to borrow USDG and trade perps on Demex. |The token denoms listed here **MUST** match the token denoms listed under the Carbon [Tokens API](https://api.carbon.network/carbon/coin/v1/tokens?pagination.limit=10000). |

|`typeform_widget_config` |`TypeformWidgetConfig` |false |Object that contains the parameters for ongoing surveys. | If the `message` property is omitted, default message is shown: "We want to hear from you!". Multiple widgets being displayed on the same page is not supported. Ensure pages don't overlap between configs. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the type be TypeformWidgetConfig[] instead?

@andrewsoon andrewsoon merged commit e0b64ea into master Jul 16, 2024
1 check passed
@andrewsoon andrewsoon deleted the feat/add-typeform-config branch July 16, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants