Skip to content

Commit b19cbb3

Browse files
committed
Introduce shouldNotServeNonDismissible
1 parent 09eaa30 commit b19cbb3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dotcom-rendering/src/components/SignInGate/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export interface AuxiaProxyGetTreatmentsPayload {
122122
mvtId: number;
123123
should_show_legacy_gate_tmp: boolean; // [1]
124124
hasConsented: boolean;
125+
shouldNotServeNonDismissible: boolean; // [2]
125126
}
126127

127128
// [1]
@@ -143,6 +144,10 @@ export interface AuxiaProxyGetTreatmentsPayload {
143144
// Obviously, the value it carries for standard Auxia audience requests in irrelevant.
144145
// We will be setting it to false.
145146

147+
// [2]
148+
// date: 03rd July 2025
149+
// If shouldNotServeNonDismissible, we should not show a non dismissible gate.
150+
146151
export interface AuxiaProxyGetTreatmentsResponse {
147152
status: boolean;
148153
data?: AuxiaProxyGetTreatmentsProxyResponseData;

dotcom-rendering/src/components/SignInGateSelector.importable.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ const fetchProxyGetTreatments = async (
290290
mvtId: number,
291291
should_show_legacy_gate_tmp: boolean,
292292
hasConsented: boolean,
293+
shouldNotServeNonDismissible: boolean,
293294
): Promise<AuxiaProxyGetTreatmentsResponse> => {
294295
// pageId example: 'money/2017/mar/10/ministers-to-criminalise-use-of-ticket-tout-harvesting-software'
295296
const articleIdentifier = `www.theguardian.com/${pageId}`;
@@ -312,6 +313,7 @@ const fetchProxyGetTreatments = async (
312313
mvtId,
313314
should_show_legacy_gate_tmp,
314315
hasConsented,
316+
shouldNotServeNonDismissible,
315317
};
316318
const params = {
317319
method: 'POST',
@@ -363,6 +365,8 @@ const buildAuxiaGateDisplayData = async (
363365
);
364366
}
365367

368+
const shouldNotServeNonDismissible = false; // todo get the value.
369+
366370
const response = await fetchProxyGetTreatments(
367371
contributionsServiceUrl,
368372
pageId,
@@ -378,6 +382,7 @@ const buildAuxiaGateDisplayData = async (
378382
readerPersonalData.mvtId,
379383
should_show_legacy_gate_tmp,
380384
readerPersonalData.hasConsented,
385+
shouldNotServeNonDismissible,
381386
);
382387

383388
if (response.status && response.data) {

0 commit comments

Comments
 (0)