feat: Gateway 웹 알림 설정과 PWA 구독 화면을 추가한다
계정 화면에서 profile별 9개 알림을 기본 꺼짐으로 설정하고 Android, iPhone 홈 화면 앱, Windows 브라우저용 service worker 구독 흐름을 제공한다. 전송 비활성 상태와 모바일 Chromium 경계를 E2E로 검증한다.
This commit is contained in:
@@ -111,6 +111,26 @@ const installFixture = async (page: Page, options: FixtureOptions = {}) => {
|
||||
deleteAfter: null,
|
||||
});
|
||||
}
|
||||
if (operation === 'account.notifications.get') {
|
||||
return response({
|
||||
capability: { enabled: false, publicKey: null },
|
||||
eventTypes: [
|
||||
'TROOP_ANNIHILATED',
|
||||
'PRIVATE_MESSAGE_RECEIVED',
|
||||
'AUTONOMOUS_ACTION_ENDED',
|
||||
'RESERVED_TURNS_ENDED',
|
||||
'PROFILE_PREOPENED',
|
||||
'PROFILE_OPEN_SCHEDULED',
|
||||
'PROFILE_OPENED',
|
||||
'NATION_DESTROYED',
|
||||
'TARGET_DATE_REACHED',
|
||||
],
|
||||
profiles: [],
|
||||
preferences: [],
|
||||
subscriptionCount: 0,
|
||||
currentDeviceSubscribed: false,
|
||||
});
|
||||
}
|
||||
if (operation === 'account.changeIcon') {
|
||||
return response({
|
||||
ok: true,
|
||||
|
||||
Reference in New Issue
Block a user