-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
There was a problem hiding this 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
configs/mainnet.json
Outdated
"typeform_widget_config": { | ||
"surveyLink": "https://switcheonetwork.typeform.com/to/C1rheplK", | ||
"endTime": "2024-07-26T23:00:00Z", | ||
"pages": [ | ||
"/account/overview", | ||
"/account/balance" | ||
] | ||
} |
There was a problem hiding this comment.
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
.github/markets/pr_template.md
Outdated
@@ -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. | |
There was a problem hiding this comment.
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?
No description provided.