feat(admin): 마그넷 목록 접속 상태 배지·링크 게이트#2405
Merged
Merged
Conversation
어드민 마그넷 테이블에서 노출/접속 상태를 한눈에 보도록 정리. - 접속 상태 컬럼 추가: 노출 중(목록+링크) / 링크 전용(인플루언서) / 접속 차단(기간 안인데 접속 꺼짐) / 만료(종료일 지남) - 링크 복사 버튼을 실제 접속 가능(isAccessible AND 기간 안) 기준으로 게이트 (기존엔 isAccessible 만 봐서 만료건도 복사 버튼이 떴음) - 접속 불가(만료·차단) 행은 회색 처리 BE 게이트(접속=isAccessible AND 종료일)와 동일 기준. 시작일은 BE가 게이트하지 않으므로 "예정" 상태는 의도적으로 두지 않음(거짓 표시 방지). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Code Review
이번 풀요청(PR)에서는 어드민 마그넷 테이블에 '접속 상태' 컬럼을 추가하고, 접속 불가능한 행을 회색으로 표시하는 스타일과 함께 관련 상태 판단을 위한 헬퍼 함수들을 도입했습니다. 리뷰 피드백에서는 isMagnetExpired 함수에서 dayjs 비교 시 밀리초 단위 비교로 인해 당일 만료 여부가 오판정될 수 있는 문제를 지적하고, 안전하게 날짜 단위로 비교하도록 개선을 제안했습니다.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경
어드민 마그넷 테이블에서 노출/접속 상태를 한눈에 이해하도록 정리.
접속 상태 컬럼 추가 (4단계, 색으로 구분)
링크 복사 버튼 — 실제 접속 가능(
isAccessibleAND 종료일 안 지남) 기준으로 노출. 기존엔isAccessible만 봐서 만료된 건도 복사 버튼이 떴음.행 회색 처리 — 접속 불가(만료·차단) 행은 흐리게.
기준
BE 접속 게이트(접속 =
isAccessibleAND 종료일 ≥ 오늘)와 동일. 시작일은 현재 BE가 게이트하지 않으므로 "예정" 상태는 의도적으로 두지 않음(실제론 접속되는데 예정으로 표시되는 거짓 표시 방지).검증
npm run typecheck— magnet 파일 에러 없음.🤖 Generated with Claude Code