Skip to content

Conversation

@japplin
Copy link
Contributor

@japplin japplin commented Aug 27, 2025

Adds new landing page:
Screenshot 2025-08-27 at 7 20 39 PM

Opening a trace file now launches a separate window using that trace file as the title, live view also opens a new window. This allows for comparing side by side traces.
Screenshot 2025-08-27 at 7 21 54 PM

@japplin japplin requested review from a team and zach-klippenstein as code owners August 27, 2025 23:22
@japplin japplin force-pushed the japplin/workflow-visualizer-title branch from c1b31f7 to 921017f Compare August 28, 2025 01:36
* Composable for live device trace viewing.
*/
@Composable
internal fun LiveApp(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THis is not used for file based? Is App used for that? We should modify the kdoc there to make that clear.

Is there much code duplication between these two composables that we can share?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a cleanup pass after claude, but looking at it again with fresh eyes I see alot of room to improve still. I'll have another pass at cleaning this up.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are now deduplicated.

@japplin japplin force-pushed the japplin/workflow-visualizer-title branch from a9c7a13 to 31acfe7 Compare September 2, 2025 22:20
@japplin japplin force-pushed the japplin/workflow-visualizer-title branch from 1003900 to b854808 Compare September 2, 2025 23:04
Copy link
Contributor

@steve-the-edwards steve-the-edwards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a cursory look over the Compose UI stuff. Best to have @zach-klippenstein or @handstandsam look!


java-diff-utils = { module = "io.github.java-diff-utils:java-diff-utils", version.ref = "java-diff-utils" }

telephoto = { module = "me.saket.telephoto:zoomable", version.ref = "telephoto" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this usage via @saket 's suggestion? :). If not, he should know!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, I was just struggling with the zooming code for hours and then remembered his library and gave it a shot. There is still room to improve our implementation by replacing the custom panning code with the zoomable library as well, I briefly tried doing that but it wasn't panning.... out, so I left the hybrid approach for now. Would be great if you were interested in contributed that improvement @saket.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay, love seeing more usage inside our codebase! 🎉

I briefly tried doing that but it wasn't panning

that might be because compose multiplatform has pretty limited support for zoom events on the JVM :/ last time I checked, I wasn't seeing any trackpad or mouse scroll events. I'll double-check this today. could you share instructions for opening the trace viewer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have the workflow kotlin repo cloned you can launch the trace viewer using ./gradlew :workflow-trace-viewer:run. I'm not sure if we have any sample traces in open source but you can download them from any failed test in ci I'll dm you a link.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

taking a look at this right now!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done! #1421

kotlin {
jvm()

jvmToolchain(11)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed now? Something about the published artifact?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was actually a byproduct of pulling in telescope.

implementation(libs.telephoto)

// Add explicit Skiko dependency for current platform
implementation("org.jetbrains.skiko:skiko-awt-runtime-macos-arm64:0.9.4")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets move this to libs.versions.toml otherwise we'll lose track of it.

Comment on lines 33 to 36
while (true) {
delay(3000L)
value = listDevices()
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱 . what is this about? we have to wait to get an adb connection or something?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If so, woudl be good to comment this delay and also use a constant on that magic 3000L

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously the adb list was fetched when toggling live mode on, now we show the list of devices while continuously refreshing.

@japplin japplin force-pushed the japplin/workflow-visualizer-title branch from 0a2acb4 to 84cffb0 Compare September 9, 2025 14:42
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@japplin japplin merged commit b9e854e into main Sep 9, 2025
138 of 140 checks passed
@japplin japplin deleted the japplin/workflow-visualizer-title branch September 9, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants