-
Notifications
You must be signed in to change notification settings - Fork 0
[Fix/#107] 파티 디테일 업로드일 노출 로직 수정 #108
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| package com.poti.android.core.common.extension | ||
|
|
||
| import java.time.LocalDateTime | ||
| import java.time.format.DateTimeFormatter | ||
| import java.time.format.DateTimeParseException | ||
|
|
||
| fun String.toPartyUploadDate(): String? { | ||
| return try { | ||
| val dateTime = LocalDateTime.parse(this) | ||
| val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd") | ||
| dateTime.format(formatter) | ||
| } catch (_: DateTimeParseException) { | ||
| null | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -67,6 +67,7 @@ | |||||
| </string-array> | ||||||
| <string name="party_detail_join_party">분철팟 참여하기</string> | ||||||
| <string name="party_detail_join_party_closed">마감된 분철팟이에요</string> | ||||||
| <string name="party_detail_upload_date_label">"%s 등록"</string> | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 문자열 리소스에 따옴표가 그대로 노출됩니다. 현재 값이 🔧 수정 제안- <string name="party_detail_upload_date_label">"%s 등록"</string>
+ <string name="party_detail_upload_date_label">%s 등록</string>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. p2: " <- 이거 들어가도 잘 뜨는건가요?(진짜모름) |
||||||
|
|
||||||
| <!-- PartyJoin --> | ||||||
| <string name="party_join_option_member_label">멤버</string> | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
파싱 실패 시 ‘등록’만 노출되는 UI를 막아주세요.
현재
?: ""로 인해 날짜 파싱 실패 시 “등록”만 표시됩니다. null일 때는 해당 Text를 숨기거나 원본 문자열로 fallback하는 쪽이 안전합니다.🔧 숨김 처리 예시
📝 Committable suggestion
🤖 Prompt for AI Agents