Skip to content

Commit

Permalink
Merge branch 'master' into frontend-release
Browse files Browse the repository at this point in the history
  • Loading branch information
ndepaola committed Feb 18, 2024
2 parents 150a12b + 878c2cb commit 95d9c5f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions desktop-tool/src/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,17 @@ class TargetSites(Enum):
Cardstocks.P10: "Plastic (100%)",
},
)
PrinterStudioUK = TargetSite(
base_url="https://www.printerstudio.co.uk",
starting_url_route="personalised/custom-playing-cards-blank-cards.html",
supports_foil=False,
cardstock_site_name_mapping={
Cardstocks.S30: "Standard (smooth)",
Cardstocks.S33: "Superior (smooth)",
Cardstocks.M31: "Premium (linen)",
Cardstocks.P10: "Plastic (100%)",
},
)
PrinterStudioDE = TargetSite(
base_url="https://www.printerstudio.de",
starting_url_route="machen/blanko-spielkarten-63x88mm-personalisieren.html",
Expand Down
2 changes: 2 additions & 0 deletions desktop-tool/tests/test_desktop_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ def do_nothing(_):
constants.TargetSites.MakePlayingCards,
constants.TargetSites.PrinterStudio,
constants.TargetSites.PrinterStudioDE,
constants.TargetSites.PrinterStudioUK,
],
)
def test_card_order_complete_run_single_cardback(browser, site, input_enter, card_order_valid):
Expand All @@ -888,6 +889,7 @@ def test_card_order_complete_run_single_cardback(browser, site, input_enter, car
constants.TargetSites.MakePlayingCards,
constants.TargetSites.PrinterStudio,
constants.TargetSites.PrinterStudioDE,
constants.TargetSites.PrinterStudioUK,
],
)
def test_card_order_complete_run_multiple_cardbacks(browser, site, input_enter, card_order_multiple_cardbacks):
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/ui/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function ProjectContainer({

export function LayoutWithoutReduxProvider({ children }: PropsWithChildren) {
const consent = getGoogleAnalyticsConsent();
const downloadContext: DownloadContext = new Queue(3, 100);
const downloadContext: DownloadContext = new Queue(10, 50);
return (
<DownloadContextProvider value={downloadContext}>
{consent === true && (
Expand Down

0 comments on commit 95d9c5f

Please sign in to comment.