Skip to content

[JEWEL-1302] Hide redundant VerticallyScrollableContainer/HorizontallyScrollableContainer API#3484

Closed
DanielSouzaBertoldi wants to merge 1 commit intoJetBrains:masterfrom
DanielSouzaBertoldi:dsb/JEWEL-1302
Closed

[JEWEL-1302] Hide redundant VerticallyScrollableContainer/HorizontallyScrollableContainer API#3484
DanielSouzaBertoldi wants to merge 1 commit intoJetBrains:masterfrom
DanielSouzaBertoldi:dsb/JEWEL-1302

Conversation

@DanielSouzaBertoldi
Copy link
Copy Markdown
Collaborator

@DanielSouzaBertoldi DanielSouzaBertoldi commented Apr 13, 2026

This API is redundant because the second overload with userScrollEnabled: Boolean = true as a default:

public fun VerticallyScrollableContainer(
    modifier: Modifier = Modifier,
    scrollbarModifier: Modifier = Modifier,
    scrollState: ScrollState = rememberScrollState(),
    style: ScrollbarStyle = JewelTheme.scrollbarStyle,
    reverseLayout: Boolean = false,
    userScrollEnabled: Boolean = true,
    scrollbarEnabled: Boolean = userScrollEnabled,
    scrollbarInteractionSource: MutableInteractionSource = remember { MutableInteractionSource() },
    content: @Composable BoxScope.() -> Unit,
)

Makes this overload a strict subset of it. Every possible call to the first overload is replicated identically by calling the second overload and simply omitting userScrollEnabled (which defaults to true).

The same is true for HorizontallyScrollableContainer

@DanielSouzaBertoldi
Copy link
Copy Markdown
Collaborator Author

image

Pretty sure there's not much I can do to stop this error from failing the CI code checks job 😬

@rock3r
Copy link
Copy Markdown
Collaborator

rock3r commented Apr 13, 2026

@DanielSouzaBertoldi https://plugins.gradle.org/plugin/com.gradle.develocity maybe try upgrading to the latest 4.4.0?

@DanielSouzaBertoldi DanielSouzaBertoldi changed the title [JEWEL-1302] Hide redundant VerticallyScrollableContainer API [JEWEL-1302] Hide redundant VerticallyScrollableContainer/HorizontallyScrollableContainer API Apr 13, 2026
@DanielSouzaBertoldi DanielSouzaBertoldi force-pushed the dsb/JEWEL-1302 branch 4 times, most recently from f34f7bf to 7e84132 Compare April 13, 2026 15:03
@DanielSouzaBertoldi
Copy link
Copy Markdown
Collaborator Author

DanielSouzaBertoldi commented Apr 13, 2026

Yeah JetBrains Space is down... https://status.jetbrains.space/

Even trying to delete mentions to develocity/foojay I still got 503:

image

I'm investigating it more, but it seems like the CI environment is bugged 🤔

Unless.... JetBrains Space got discontinued?

@rock3r
Copy link
Copy Markdown
Collaborator

rock3r commented Apr 13, 2026

I think it was supposed to eventually be, but I assume someone would have told us? Perhaps? XD

@DanielSouzaBertoldi
Copy link
Copy Markdown
Collaborator Author

Yeah that would've been nice 😭

Couldn't find anything though related to the discontinuation of this particular link. However, the CMP compatibility page now points to this URL for dev builds:

maven("https://redirector.kotlinlang.org/maven/compose-dev")

I just pushed the changes to all of our modules, just to see if the CI is finally going to be happy about it. Locally the old link was working, but I guess that's because it was cached locally. I don't like to mess with Gradle caches anyways so I'll leave it to the CI to give us a sign 🙏🏻

@DanielSouzaBertoldi
Copy link
Copy Markdown
Collaborator Author

DanielSouzaBertoldi commented Apr 13, 2026

Nice, that did it :) I'll update the maven links for real on JEWEL-1301 though. Then I can also update the documentation

(besides, that PR won't break the metalava job.... probably. Making it easier to merge quickly)

@rock3r
Copy link
Copy Markdown
Collaborator

rock3r commented Apr 14, 2026

@DanielSouzaBertoldi can you resolve conflicts?

@DanielSouzaBertoldi
Copy link
Copy Markdown
Collaborator Author

DanielSouzaBertoldi commented Apr 14, 2026

As we discussed yesterday, the annotate breaking changes job should not be treated as blocking, so we can ignore it

Previous comment

I can't make sense of what's being asked.

image

It claims the API was removed, while it was actually just hidden:

image

The API dump is correct, so I'm not sure what's wrong here. "IJP Dumps" to me seems like it's mentioning ApiCheckTest, which is passing 🤔


I think that maybe the script (annotate-api-dump-changes.main.kts) itself should check for modificarions? It currently just only checks if a line in the diff has -:

line.startsWith("-") && !line.startsWith("---") -> {
    reportBreakage(
        file,
        line,
        log,
        oldLineNum,
        newLineNum,
        experimental,
        annotate = !lastLineWasRemoval,
        jewelRoot,
    )
    foundBreakages = true
    oldLineNum++
    lastLineWasRemoval = true
}

Without checking if it is immediately followed by a +, so a modification, not a deletion 🤔

@rock3r
Copy link
Copy Markdown
Collaborator

rock3r commented Apr 28, 2026

@DanielSouzaBertoldi is the red check intended? Is this ready to go now?

intellij-monorepo-bot pushed a commit that referenced this pull request Apr 28, 2026
closes #3484

GitOrigin-RevId: ab39db845827ec30bb9ed2273132211c5a179a46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants