Skip to content
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

feat: 웹 푸시 구현 #429

Merged
merged 52 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d125759
chore: manifest 수정
hozzijeong Oct 2, 2023
98b08eb
feat: Toggle Component 구현
hozzijeong Oct 2, 2023
43ebb99
refactor: serviceWorker 등록 코드 변경
hozzijeong Oct 2, 2023
c17ac6b
feat: myPage에서 서비스 구독 알림 설정
hozzijeong Oct 2, 2023
5164610
chore: firebase 설치
hozzijeong Oct 3, 2023
66e21d8
chore: serviceWorker 배포파일 추가
hozzijeong Oct 4, 2023
7896d87
chore: firebase 위치 이동
hozzijeong Oct 4, 2023
0b1f781
chore: firebase 이동
hozzijeong Oct 4, 2023
f82b552
feat: 구독 정보 객체 선언
hozzijeong Oct 4, 2023
0ffaa97
feat: webpush 관련 api 작성
hozzijeong Oct 4, 2023
91eca30
feat: 구동 설정/해제 구현
hozzijeong Oct 4, 2023
8981226
refactor: serviceWorker refactor
hozzijeong Oct 4, 2023
6406224
refactor: 로그인 하지 않았을 경우 Prompt 나타나지 않게 설정 및 prompt 조건부 렌더링으로 변경
hozzijeong Oct 6, 2023
e80a855
refactor: disabled인 경우 디자인 변경 및 toggle 초기값 설정
hozzijeong Oct 6, 2023
e6ae428
chore: icon maskable로 변경
hozzijeong Oct 6, 2023
f3b402f
refactor: deferredPrompt 상태로 저장
hozzijeong Oct 6, 2023
02289b2
chore: serviceWorker에서 firebase-messaging으로 변경
hozzijeong Oct 8, 2023
0811e61
design: prompt z-index 설정
hozzijeong Oct 8, 2023
d850fda
refactor: 로그인 시에 firebase 토큰 전달하도록 설정
hozzijeong Oct 8, 2023
eb85ab1
chore: firebase 알림 수정
hozzijeong Oct 9, 2023
105f875
refactor: 토큰 등록 관련 API 수정
hozzijeong Oct 9, 2023
9109a5b
refactor: webpush 훅 분리
hozzijeong Oct 11, 2023
1fae02f
feat: 토큰 조회 API 구현
hozzijeong Oct 11, 2023
21c3df5
refactor: 사용하지 않는 객체 삭제
hozzijeong Oct 11, 2023
1f96de7
feat: 브라우저에서 알림을 지원하지 않는 경우 옵션 추가
hozzijeong Oct 11, 2023
3e8c040
refactor: 로그인 기능 롤백
hozzijeong Oct 11, 2023
a74e803
refactor: 현재 구독중인지 확인하는 훅 추가
hozzijeong Oct 11, 2023
1d17e08
chore: web push 관련 handler 생성
hozzijeong Oct 11, 2023
910d7a4
refactor: webpush 관련 훅 업데이트
hozzijeong Oct 11, 2023
8940be2
refactor: 개발 환경에서 development 생성
hozzijeong Oct 11, 2023
a7d802b
refactor: toggle 낙관적 업데이트 적용
hozzijeong Oct 12, 2023
8df5750
chore: 불필요한 콘솔 제거
hozzijeong Oct 12, 2023
c8de474
chore: sitemap 변경
hozzijeong Oct 12, 2023
cf601d8
feat: 코드가 200번대가 아닌 경우에 일단 에러 발생
hozzijeong Oct 12, 2023
3fc8f01
refactor: 미지원 브라우저 알림 토글 차단
hozzijeong Oct 12, 2023
42c8e5f
refactor: 로그인 msw 롤백
hozzijeong Oct 12, 2023
80d98dc
chore: 사용하지 않는 파일 제거
hozzijeong Oct 12, 2023
bf057f4
chore: submodule update 추가
hozzijeong Oct 12, 2023
9d8ad24
chore: build를 위한 주석 테스트
hozzijeong Oct 12, 2023
e194d77
refactor: build 문제 해결을 위한 문제 코드 삭제
hozzijeong Oct 12, 2023
c2ca821
chore: 주석 제거
hozzijeong Oct 12, 2023
54071b9
refactor: merge from develop
hozzijeong Oct 12, 2023
6824609
refactor: toast 변경
hozzijeong Oct 12, 2023
c483151
chore: pushManager관련 주석 추가
hozzijeong Oct 12, 2023
4fa0251
refactor: login 코드 수정
hozzijeong Oct 12, 2023
5661c6f
refactor: 반환값 명시
hozzijeong Oct 12, 2023
fd83073
design: disable인 경우에 cursor 제거
hozzijeong Oct 12, 2023
0fb58af
refactor: cookie 값 없는 경우 반환 식 변경
hozzijeong Oct 12, 2023
31f7c38
refactor: 아이콘 이미지 변경
hozzijeong Oct 12, 2023
5047dad
refactor: serviceWorker 병형 가능하도록 설정
hozzijeong Oct 12, 2023
f9f0f8a
refactor: 의존성 업데이트
hozzijeong Oct 13, 2023
057c7f6
test: main에 테스트 수정
hozzijeong Oct 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions .github/workflows/frontend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,46 @@ on:
defaults:
run:
working-directory: frontend

permissions:
pull-requests: write
checks: write
pull-requests: write
checks: write

jobs:
build:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Repository
uses: actions/checkout@v3

- name : Set up Node 18.16.0
- name: Set up Node 18.16.0
uses: actions/setup-node@v3
with:
node-version: 18.16.0

- name: Cache node_modules
id: cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: npm clean install
run: npm ci
if: steps.cache.outputs.cache-hit != 'true'

- name: submodule update
run: git submodule update --remote --merge

- name: npm build dev
run: npm run build-dev

- name: storyBook build
run: npm run build-storybook
if: always()

- name: notificate on slack if build failed
uses: 8398a7/action-slack@v3
with:
Expand Down
11 changes: 11 additions & 0 deletions frontend/cypress/e2e/main.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ describe('검색창', () => {
.type('아카시')
.wait(500)

.get('ul > li')
.contains('아카시')
.should('be.visible')

.get('button[aria-label="이동하기"]')
.click()

Expand All @@ -110,6 +114,13 @@ describe('검색창', () => {
cy.get('input')
.type('참')
.wait(500)

.get('ul > li')
.should('be.visible')

.get('input')
.focus()

.type('{enter}')

.location('pathname')
Expand Down
Loading