-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into issue-#1377
- Loading branch information
Showing
132 changed files
with
2,629 additions
and
694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+6.66 KB
(110%)
e2e/screenshots/simulator/recurring/Recurring_limit_limit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1018 Bytes
(97%)
...screenshots/simulator/recurring/Recurring_limit_limit/simulator-input-price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+27 Bytes
(100%)
...shots/simulator/recurring/Recurring_limit_limit/simulator-results-animation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+69 Bytes
(100%)
...enshots/simulator/recurring/Recurring_limit_limit/simulator-results-summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-746 Bytes
(98%)
...screenshots/simulator/recurring/Recurring_limit_range/simulator-input-price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21 Bytes
(100%)
...shots/simulator/recurring/Recurring_limit_range/simulator-results-animation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+67 Bytes
(100%)
...enshots/simulator/recurring/Recurring_limit_range/simulator-results-summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-737 Bytes
(97%)
...screenshots/simulator/recurring/Recurring_range_limit/simulator-input-price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21 Bytes
(100%)
...shots/simulator/recurring/Recurring_range_limit/simulator-results-animation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+78 Bytes
(100%)
...enshots/simulator/recurring/Recurring_range_limit/simulator-results-summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.79 KB
(95%)
e2e/screenshots/simulator/recurring/Recurring_range_range/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.25 KB
(95%)
...screenshots/simulator/recurring/Recurring_range_range/simulator-input-price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+28 Bytes
(100%)
...shots/simulator/recurring/Recurring_range_range/simulator-results-animation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+68 Bytes
(100%)
...enshots/simulator/recurring/Recurring_range_range/simulator-results-summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+374 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+124 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+67 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/duplicate/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+40 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/editPrices/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+68 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/undercut/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+148 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/withdraw/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+116 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.06 KB
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+86 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+62 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/duplicate/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+33 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/editPrices/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+81 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/undercut/form.png
Oops, something went wrong.
Binary file modified
BIN
+134 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/withdraw/form.png
Oops, something went wrong.
Binary file modified
BIN
+108 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_limit/create/form.png
Oops, something went wrong.
Binary file modified
BIN
+90 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_limit/deposit/form.png
Oops, something went wrong.
Binary file modified
BIN
+62 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_limit/duplicate/form.png
Oops, something went wrong.
Binary file modified
BIN
+46 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_limit/editPrices/form.png
Oops, something went wrong.
Binary file modified
BIN
+64 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_limit/undercut/form.png
Oops, something went wrong.
Binary file modified
BIN
+135 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_limit/withdraw/form.png
Oops, something went wrong.
Binary file modified
BIN
+111 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_range/create/form.png
Oops, something went wrong.
Binary file modified
BIN
+83 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_range/deposit/form.png
Oops, something went wrong.
Binary file modified
BIN
+58 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_range/duplicate/form.png
Oops, something went wrong.
Binary file modified
BIN
+41 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_range/editPrices/form.png
Oops, something went wrong.
Binary file modified
BIN
+68 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_range/undercut/form.png
Oops, something went wrong.
Binary file modified
BIN
+130 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_range/withdraw/form.png
Oops, something went wrong.
Binary file modified
BIN
+13 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/create/form.png
Oops, something went wrong.
Binary file modified
BIN
+4 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/create/my-strategy.png
Oops, something went wrong.
Binary file modified
BIN
+45 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/deposit/form.png
Oops, something went wrong.
Binary file modified
BIN
+9 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/duplicate/form.png
Oops, something went wrong.
Binary file modified
BIN
+54 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/editPrices/form.png
Oops, something went wrong.
Binary file modified
BIN
+11 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/undercut/form.png
Oops, something went wrong.
Binary file modified
BIN
+54 Bytes
(100%)
e2e/screenshots/strategy/overlapping/Overlapping/withdraw/form.png
Oops, something went wrong.
Binary file modified
BIN
+232 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/create/form.png
Oops, something went wrong.
Binary file modified
BIN
-4.45 KB
(93%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/deposit/form.png
Oops, something went wrong.
Binary file modified
BIN
+118 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/duplicate/form.png
Oops, something went wrong.
Binary file modified
BIN
+80 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/editPrices/form.png
Oops, something went wrong.
Binary file modified
BIN
+80 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/renew/form.png
Oops, something went wrong.
Binary file modified
BIN
+114 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/undercut/form.png
Oops, something went wrong.
Binary file modified
BIN
+264 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/withdraw/form.png
Oops, something went wrong.
Binary file modified
BIN
+226 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_range/create/form.png
Oops, something went wrong.
Binary file modified
BIN
+185 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_range/deposit/form.png
Oops, something went wrong.
Binary file modified
BIN
+122 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_range/duplicate/form.png
Oops, something went wrong.
Binary file modified
BIN
+73 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_range/editPrices/form.png
Oops, something went wrong.
Binary file modified
BIN
+72 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_range/renew/form.png
Oops, something went wrong.
Binary file modified
BIN
+116 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_range/undercut/form.png
Oops, something went wrong.
Binary file modified
BIN
+258 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_range/withdraw/form.png
Oops, something went wrong.
Binary file modified
BIN
+212 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/create/form.png
Oops, something went wrong.
Binary file modified
BIN
-867 Bytes
(99%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/create/my-strategy.png
Oops, something went wrong.
Binary file modified
BIN
+184 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/deposit/form.png
Oops, something went wrong.
Binary file modified
BIN
+121 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/duplicate/form.png
Oops, something went wrong.
Binary file modified
BIN
+88 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/editPrices/form.png
Oops, something went wrong.
Binary file modified
BIN
+88 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/renew/form.png
Oops, something went wrong.
Binary file modified
BIN
+111 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/undercut/form.png
Oops, something went wrong.
Binary file modified
BIN
+259 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/withdraw/form.png
Oops, something went wrong.
Binary file modified
BIN
+248 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_range/create/form.png
Oops, something went wrong.
Binary file modified
BIN
+179 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_range/deposit/form.png
Oops, something went wrong.
Binary file modified
BIN
+112 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_range/duplicate/form.png
Oops, something went wrong.
Binary file modified
BIN
+102 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_range/editPrices/form.png
Oops, something went wrong.
Binary file modified
BIN
+100 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_range/renew/form.png
Oops, something went wrong.
Binary file modified
BIN
+114 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_range/undercut/form.png
Oops, something went wrong.
Binary file modified
BIN
+226 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_range_range/withdraw/form.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import { Button } from 'components/common/button'; | ||
import { FormEvent } from 'react'; | ||
import { lsService } from 'services/localeStorage'; | ||
import { useStore } from 'store'; | ||
import { featureFlags } from 'utils/featureFlags'; | ||
|
||
export const DebugFeatureFlag = () => { | ||
const { toaster } = useStore(); | ||
|
||
const setFeatureFlags = (e: FormEvent<HTMLFormElement>) => { | ||
e.preventDefault(); | ||
const data = new FormData(e.currentTarget); | ||
const values = data.getAll('flags'); | ||
lsService.setItem('featureFlags', values as string[]); | ||
if (values.length) toaster.addToast('Enjoy your new superpowers 🔥'); | ||
else toaster.addToast('Features disabled'); | ||
}; | ||
return ( | ||
<form | ||
onSubmit={setFeatureFlags} | ||
className="rounded-18 bg-background-800 flex flex-col gap-20 border border-white/60 p-20 md:col-span-2" | ||
> | ||
<h2>🧪 Feature Flags</h2> | ||
{!!featureFlags.length ? <FeatureRadioGroup /> : <EmptyFlags />} | ||
<Button | ||
className="self-end" | ||
variant="success" | ||
type="submit" | ||
disabled={!featureFlags.length} | ||
> | ||
Save | ||
</Button> | ||
</form> | ||
); | ||
}; | ||
|
||
const EmptyFlags = () => ( | ||
<p>There is no feature flags for now. Thanks for your interest.</p> | ||
); | ||
|
||
const FeatureRadioGroup = () => { | ||
const currentFlags = lsService.getItem('featureFlags') ?? []; | ||
return ( | ||
<> | ||
<fieldset role="radiogroup" className="grid gap-16"> | ||
<legend className="mb-16"> | ||
Select the feature flags you want to test | ||
</legend> | ||
{featureFlags.map(({ value, label, description }) => ( | ||
<div | ||
key={value} | ||
className="rounded-8 bg-background-700 flex gap-16 p-16" | ||
> | ||
<input | ||
className="h-24 w-24 self-center" | ||
id={`flag-${value}`} | ||
type="checkbox" | ||
name="flags" | ||
value={value} | ||
aria-describedby={`flag-description-${value}`} | ||
defaultChecked={currentFlags.includes(value)} | ||
/> | ||
<div className="flex flex-1 flex-col"> | ||
<label htmlFor={`flag-${value}`}>{label}</label> | ||
<p | ||
id={`flag-description-${value}`} | ||
className="text-14 text-white/80" | ||
> | ||
{description} | ||
</p> | ||
</div> | ||
</div> | ||
))} | ||
</fieldset> | ||
<p className="text-warning">Disclaimer: beware of the dragons 🐲</p> | ||
</> | ||
); | ||
}; |
Oops, something went wrong.