Skip to content

fix: show real created_at in trusted account attached general account table (CLO-1344) - #6147

Merged
seungyeoneeee merged 2 commits into
cloudforet-io:urgent-mfafrom
seungyeoneeee:fix/trusted-account-date-bug
Aug 3, 2026
Merged

fix: show real created_at in trusted account attached general account table (CLO-1344)#6147
seungyeoneeee merged 2 commits into
cloudforet-io:urgent-mfafrom
seungyeoneeee:fix/trusted-account-date-bug

Conversation

@seungyeoneeee

Copy link
Copy Markdown
Contributor

CLO-1344

Trusted Account 상세 페이지의 연결된 General Account 목록 데이터테이블에서 Created 컬럼이 모든 행에 현재 시각으로 표시되던 버그를 수정합니다.

원인

ServiceAccountAttachedGeneralAccounts.vue#col-created_at-format="{value}" 슬롯은 valuecreated_at 문자열(스칼라)을 직접 넘깁니다. 기존 코드는 존재하지 않는 value.data에 접근해 undefined가 되었고, dayjs(undefined)현재 시각을 반환해 모든 행이 동일한 현재 시간으로 표시되었습니다.

수정

  • dayjs(value.data)...iso8601Formatter(value, state.timezone)
  • iso8601Formatter는 동일한 YYYY-MM-DD HH:mm:ss 포맷을 사용하면서 falsy 값에 대해 ''를 반환(null-safe)합니다. 이 테이블은 created_at이 없을 수 있는 PENDING 계정도 노출하므로, dayjs(value) 단독보다 안전합니다.
  • 참조 컴포넌트 CollectorDetailAttachedServiceAccounts.vue와 동일한 패턴입니다.

검증

  • ESLint 통과 (import-order 포함)
  • 코드 리뷰 APPROVE (Critical/Major/Minor 0건)

🤖 Generated with Claude Code

seungyeoneeee and others added 2 commits August 3, 2026 11:11
… table (CLO-1344)

The Created column in the connected General Account list rendered
dayjs(value.data), but the PDataTable format slot passes the created_at
string directly as value. Accessing .data on a string yielded undefined,
so dayjs(undefined) produced the current time for every row.
Use dayjs(value) to format the actual created_at value.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: 이승연 <sylee1274@mz.co.kr>
…olumn (CLO-1344)

Follow-up hardening from code review. This table can list PENDING accounts
whose created_at may be absent; bare dayjs(value) would render 'Invalid Date'
or, if undefined, silently reintroduce the current-time bug. iso8601Formatter
null-guards (returns '') and uses the same 'YYYY-MM-DD HH:mm:ss' format,
matching the sibling CollectorDetailAttachedServiceAccounts component.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: 이승연 <sylee1274@mz.co.kr>
@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

@seungyeoneeee is attempting to deploy a commit to the cloudforet Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🎉 @yuda110 has been randomly selected as the reviewer! Please review. 🙏

@github-actions
github-actions Bot requested a review from yuda110 August 3, 2026 02:26
@seungyeoneeee
seungyeoneeee merged commit 2519749 into cloudforet-io:urgent-mfa Aug 3, 2026
2 of 3 checks passed
@seungyeoneeee
seungyeoneeee deleted the fix/trusted-account-date-bug branch August 3, 2026 04:25
seungyeoneeee added a commit that referenced this pull request Aug 3, 2026
… table (CLO-1344) (#6147)

* fix: show real created_at in trusted account attached general account table (CLO-1344)

The Created column in the connected General Account list rendered
dayjs(value.data), but the PDataTable format slot passes the created_at
string directly as value. Accessing .data on a string yielded undefined,
so dayjs(undefined) produced the current time for every row.
Use dayjs(value) to format the actual created_at value.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: 이승연 <sylee1274@mz.co.kr>

* refactor: use iso8601Formatter for attached general account Created column (CLO-1344)

Follow-up hardening from code review. This table can list PENDING accounts
whose created_at may be absent; bare dayjs(value) would render 'Invalid Date'
or, if undefined, silently reintroduce the current-time bug. iso8601Formatter
null-guards (returns '') and uses the same 'YYYY-MM-DD HH:mm:ss' format,
matching the sibling CollectorDetailAttachedServiceAccounts component.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: 이승연 <sylee1274@mz.co.kr>

---------

Signed-off-by: 이승연 <sylee1274@mz.co.kr>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
seungyeoneeee added a commit that referenced this pull request Aug 3, 2026
… table (CLO-1344) (#6147) (#6148)

* fix: show real created_at in trusted account attached general account table (CLO-1344)

The Created column in the connected General Account list rendered
dayjs(value.data), but the PDataTable format slot passes the created_at
string directly as value. Accessing .data on a string yielded undefined,
so dayjs(undefined) produced the current time for every row.
Use dayjs(value) to format the actual created_at value.




* refactor: use iso8601Formatter for attached general account Created column (CLO-1344)

Follow-up hardening from code review. This table can list PENDING accounts
whose created_at may be absent; bare dayjs(value) would render 'Invalid Date'
or, if undefined, silently reintroduce the current-time bug. iso8601Formatter
null-guards (returns '') and uses the same 'YYYY-MM-DD HH:mm:ss' format,
matching the sibling CollectorDetailAttachedServiceAccounts component.




---------

Signed-off-by: 이승연 <sylee1274@mz.co.kr>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant