diff --git a/android/CHANGELOG.ko.md b/android/CHANGELOG.ko.md index 09fff791..a91f37c0 100644 --- a/android/CHANGELOG.ko.md +++ b/android/CHANGELOG.ko.md @@ -5,6 +5,23 @@ `kr.devslab:dds-android-tokens`, `kr.devslab:dds-compose`, 그리고 0.7.0부터 `kr.devslab:dds-compose-testing`은 한 버전을 쓰고, 웹 패키지와는 버전이 따로다(D-048). 릴리스는 `android-v<버전>` 태그로 낸다. +## 0.11.1 — 2026-11-18 + +**고침** + +- **`DdsBodyColumn`이 영역 어디서 끌어도 스크롤된다.** 넓은 창(펼친 폴드, 태블릿)에서는 본문 칸이 가운데 서고 양옆에 + 여백이 남는데, 지금까지는 칸 자체만 스크롤돼서 여백에서 시작한 끌기는 아무 일도 하지 않았다. 이제 영역 전체가 + 스크롤되고, 칸의 폭·위치·안쪽 여백·`DdsTestTags.Body` 태그는 그대로다. 짧은 본문도 여전히 영역만큼 높아서 가중치 + Spacer가 남은 자리를 채운다. 스크롤하는 노드가 태그 달린 칸이 아니라 영역으로 바뀌었다. +- **로그인 시트의 목록이 시트 전체 폭에서 스크롤된다.** 좁은 버튼 아래에서만 되던 것을 고쳤다. + +## 0.11.0 — 2026-11-16 + +**새 기능** + +- **OTA 번역** — `OtaLocalization`, `ProvideOtaLocalization`, `localizedString`, `localizedPlural`로 앱들이 무선으로 + 갱신되는 번역 카탈로그를 함께 쓴다. [README](README.md#ota-localization) 참고. + ## 0.10.1 — 2026-11-15 - `DdsSocialSignIn`에 시트 상태를 제어하고 로그인 버튼, ‘다른 로그인 방법’ 버튼, 시트를 앱에서 구성할 수 있는 오버로드를 추가했다. 앱 자체 버튼은 `DdsSocialProviderIcon`으로 DDS의 로그인 제공자 로고를 그릴 수 있다. diff --git a/android/CHANGELOG.md b/android/CHANGELOG.md index 40f7e7de..a6628980 100644 --- a/android/CHANGELOG.md +++ b/android/CHANGELOG.md @@ -5,6 +5,24 @@ `kr.devslab:dds-android-tokens`, `kr.devslab:dds-compose` and (from 0.7.0) `kr.devslab:dds-compose-testing` share one version, separate from the web packages (D-048). Releases are cut by an `android-v` tag. +## 0.11.1 — 2026-11-18 + +**Fixed** + +- **`DdsBodyColumn` scrolls from anywhere in its area.** On a wide window (an unfolded phone, a tablet) the column sits in + the middle with room at each side, and only the column itself scrolled: a drag that started in that room did nothing. + Now the whole area scrolls and the column keeps its width, place, padding and `DdsTestTags.Body` tag. A short body is + still as tall as the area, so a weighted spacer in it fills what is left. The scrolling node is now the area, not the + tagged column. +- **The sign-in sheet's list scrolls across the sheet's whole width**, not only under its narrower buttons. + +## 0.11.0 — 2026-11-16 + +**New** + +- **OTA localization** — `OtaLocalization`, `ProvideOtaLocalization`, `localizedString` and `localizedPlural` let apps + share translation catalogs updated over the air. See [OTA localization](README.md#ota-localization). + ## 0.10.1 — 2026-11-15 - Added controlled sheet state and optional button, overflow trigger, and sheet slots to `DdsSocialSignIn` through a compatible overload. `DdsSocialProviderIcon` renders the bundled mark for custom buttons. diff --git a/android/README.ko.md b/android/README.ko.md index 8b8addf6..5b7e2d0a 100644 --- a/android/README.ko.md +++ b/android/README.ko.md @@ -26,8 +26,8 @@ dependencies { ```kotlin dependencies { - implementation("kr.devslab:dds-compose:0.10.1") - androidTestImplementation("kr.devslab:dds-compose-testing:0.10.1") + implementation("kr.devslab:dds-compose:0.11.1") + androidTestImplementation("kr.devslab:dds-compose-testing:0.11.1") } ``` diff --git a/android/README.md b/android/README.md index 6cf57a67..734a2519 100644 --- a/android/README.md +++ b/android/README.md @@ -26,8 +26,8 @@ dependencies { ```kotlin dependencies { - implementation("kr.devslab:dds-compose:0.11.0") - androidTestImplementation("kr.devslab:dds-compose-testing:0.11.0") + implementation("kr.devslab:dds-compose:0.11.1") + androidTestImplementation("kr.devslab:dds-compose-testing:0.11.1") } ``` diff --git a/android/dds-compose/src/androidTest/kotlin/kr/devslab/dds/compose/FrameOnDeviceTest.kt b/android/dds-compose/src/androidTest/kotlin/kr/devslab/dds/compose/FrameOnDeviceTest.kt index 3a0c4598..0537c163 100644 --- a/android/dds-compose/src/androidTest/kotlin/kr/devslab/dds/compose/FrameOnDeviceTest.kt +++ b/android/dds-compose/src/androidTest/kotlin/kr/devslab/dds/compose/FrameOnDeviceTest.kt @@ -97,6 +97,9 @@ import androidx.compose.ui.semantics.SemanticsProperties import androidx.compose.ui.semantics.getOrNull import androidx.compose.ui.test.SemanticsMatcher import kr.devslab.dds.compose.layout.ddsBody +import androidx.compose.foundation.ScrollState +import androidx.compose.ui.test.swipe +import androidx.compose.foundation.layout.Spacer import kr.devslab.dds.compose.testing.DdsFrameCheck import kr.devslab.dds.compose.testing.DdsScreenKind import kr.devslab.dds.compose.theme.DdsBrand @@ -525,6 +528,49 @@ class FrameOnDeviceTest { @Test fun theTextInTheBodyStartsOnTheWideGutterBesideAList() = assertTextStartsOnTheGutter(DpSize(933.dp, 704.dp), list = true) + /** + * A wide window leaves room at each side of the body column. A drag that starts there moves the + * body as one that starts on its text does: the whole area the column is centered in scrolls, + * not only the column. + */ + @Test + fun aDragInTheRoomBesideTheBodyScrollsIt() { + val scroll = ScrollState(0) + shown { + DeviceConfigurationOverride(DeviceConfigurationOverride.ForcedSize(DpSize(933.dp, 704.dp))) { + DdsBodyColumn(scroll = scroll) { + repeat(40) { Text("줄 $it", Modifier.height(48.dp)) } + } + } + } + val body = bounds(DdsTestTags.Body) + assertTrue("the window leaves room beside the body: $body", body.left > 48.dp) + rule.onRoot().performTouchInput { + val x = with(density) { (body.left / 2).toPx() } + swipe(Offset(x, height * 0.8f), Offset(x, height * 0.2f), durationMillis = 300) + } + rule.waitForIdle() + assertTrue("a drag beside the body scrolled it (${scroll.value})", scroll.value > 0) + } + + /** A screen can still push its last block to the bottom of a short body with a weighted spacer. */ + @Test + fun aWeightedSpacerInTheBodyFillsTheRoomLeft() { + shown { + DeviceConfigurationOverride(DeviceConfigurationOverride.ForcedSize(DpSize(933.dp, 704.dp))) { + DdsBodyColumn { + Text("위") + Spacer(Modifier.weight(1f)) + Text("아래", Modifier.testTag("bottom-text")) + } + } + } + val body = bounds(DdsTestTags.Body) + val bottom = bounds("bottom-text") + val gutter = DdsScreen.gutterWide.dp + assertNear("the last block sits on the body's bottom gutter", body.bottom - gutter, bottom.bottom) + } + private fun assertABarOnTheBodysLinesLinesUpWithTheText(size: DpSize, list: Boolean) { frame(size, list = list, body = { padding -> Box(Modifier.fillMaxSize().padding(padding)) { diff --git a/android/dds-compose/src/main/kotlin/kr/devslab/dds/compose/component/Auth.kt b/android/dds-compose/src/main/kotlin/kr/devslab/dds/compose/component/Auth.kt index 42ba2ada..6d19e3c9 100644 --- a/android/dds-compose/src/main/kotlin/kr/devslab/dds/compose/component/Auth.kt +++ b/android/dds-compose/src/main/kotlin/kr/devslab/dds/compose/component/Auth.kt @@ -294,12 +294,18 @@ private fun SignInSheet( } DdsIconButton(DdsIcons.Close, closeLabel, onClick = onDismiss) } + // The sheet's whole width scrolls, so a drag beside the narrower buttons moves them too. Box( - Modifier.weight(1f, fill = false).verticalScroll(rememberScrollState()) - .padding(start = gutter, end = gutter, top = DdsSpace.s8.dp, bottom = DdsSpace.s16.dp) - .widthIn(max = buttonWidth).fillMaxWidth(), + Modifier.weight(1f, fill = false).fillMaxWidth().verticalScroll(rememberScrollState()), + contentAlignment = Alignment.TopCenter, ) { - content() + Box( + Modifier + .padding(start = gutter, end = gutter, top = DdsSpace.s8.dp, bottom = DdsSpace.s16.dp) + .widthIn(max = buttonWidth).fillMaxWidth(), + ) { + content() + } } } } diff --git a/android/dds-compose/src/main/kotlin/kr/devslab/dds/compose/layout/Body.kt b/android/dds-compose/src/main/kotlin/kr/devslab/dds/compose/layout/Body.kt index 5706cb9c..0ec7f0e2 100644 --- a/android/dds-compose/src/main/kotlin/kr/devslab/dds/compose/layout/Body.kt +++ b/android/dds-compose/src/main/kotlin/kr/devslab/dds/compose/layout/Body.kt @@ -5,11 +5,11 @@ import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.ColumnScope import androidx.compose.foundation.layout.PaddingValues -import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.widthIn +import androidx.compose.foundation.layout.wrapContentWidth import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.ScrollState import androidx.compose.foundation.verticalScroll @@ -55,7 +55,8 @@ public object DdsBodyDefaults { /** * The column every screen's content goes in. It is centered in the area the frame leaves for * the screen, no wider than [max], so on a wide window the text keeps one reading line and on a - * phone it fills the width. It scrolls, and it slides in when the screen arrives (it applies + * phone it fills the width. It scrolls, from anywhere in that area (also the room beside the + * column on a wide window), and it slides in when the screen arrives (it applies * [ddsScreenContent] itself, with [paneTitle]; do not add it again). * * The text starts [contentPadding] in from the column's edge, which is the window gutter. Items @@ -78,13 +79,20 @@ public fun DdsBodyColumn( paneTitle: String? = null, content: @Composable ColumnScope.() -> Unit, ) { - Box(modifier.fillMaxSize().ddsScreenContent(paneTitle), contentAlignment = Alignment.TopCenter) { + // The whole area scrolls, not only the column in its middle: on a wide window a drag that + // starts in the room beside the column moves the body too. The area passes its height down as + // the column's least, so a short body is as tall as the area and a weighted spacer in it fills + // what is left, as it did when the column itself scrolled. Only the height: the least width is + // let go of (wrapContentWidth), or it would override the column's [max]. + Box( + modifier.fillMaxSize().ddsScreenContent(paneTitle).verticalScroll(scroll), + propagateMinConstraints = true, + ) { Column( Modifier + .wrapContentWidth(Alignment.CenterHorizontally) .ddsBody(max) .fillMaxWidth() - .fillMaxHeight() - .verticalScroll(scroll) .padding(contentPadding), verticalArrangement = Arrangement.spacedBy(spacing), content = content, diff --git a/android/gradle.properties b/android/gradle.properties index 180deea1..0dba6850 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -8,4 +8,4 @@ kotlin.code.style=official # Android releases are versioned apart from the web packages (docs/decisions.md D-048). # The release workflow overrides VERSION_NAME from the android-v* tag. GROUP=kr.devslab -VERSION_NAME=0.11.0 +VERSION_NAME=0.11.1 diff --git a/packages/dds-auth/consumer/package.json b/packages/dds-auth/consumer/package.json index d15c8f5b..3c6b16a9 100644 --- a/packages/dds-auth/consumer/package.json +++ b/packages/dds-auth/consumer/package.json @@ -3,7 +3,7 @@ "private": true, "type": "module", "dependencies": { - "@devslab/dds-react": "0.29.2", + "@devslab/dds-react": "0.35.1", "react": "19.3.0", "react-dom": "19.3.0", "jsdom": "30.0.1",