Skip to content

Conversation

@timfish
Copy link
Contributor

@timfish timfish commented Jan 11, 2025

Let me know if you want to retain the previous project check too...

@timfish timfish requested a review from a team January 11, 2025 14:40
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 11, 2025
@timfish timfish changed the title Use rendering_system to enable absolute positioning of view hierarchy layout Use rendering_system to enable absolute positioning of view hierarchy wireframe Jan 11, 2025
getHierarchyDimensions(
hierarchy,
['flutter', 'dart-flutter'].includes(project?.platform ?? '')
system === 'flutter' || system.includes('absolute')
Copy link
Member

Choose a reason for hiding this comment

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

Just want to make sure that flutter and dart-flutter projects stay absolutely positioned with this change, do they both have system set to flutter? I agree with removing the project platform check though, good call!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do they both have system set to flutter?

Yep, it looks like sentry-dart uses flutter for the rendering_system too.
https://github.com/getsentry/sentry-dart/blob/ec50b2159d85b69bbbb3619960b3f922ec5592f5/dart/test/protocol/sentry_view_hierarchy_test.dart#L25

who could we ping to triple check?

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for checking that out, I think the last step for this is to have in docs or mentioned somewhere that to use absolute rendering in the UI, the rendering_system must contain absolute, but obviously that is outside the scope of this PR. Approving!

Copy link
Contributor Author

@timfish timfish Jan 13, 2025

Choose a reason for hiding this comment

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

I will PR the original RFC because it doesn't look like this is documented elsewhere yet

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll also update the rendering system to absolute on flutter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So it would become something like flutter-absolute?

Copy link
Contributor Author

@timfish timfish Jan 20, 2025

Choose a reason for hiding this comment

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

I think we might need to be careful about changing existing rendering_system because the Sentry frontend uses for icons or something 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, it looks like platform is used for the icon:

However, the system does end up in the tooltip and we might want to hide the absolute detail from users:

<Tooltip title={t('Rendering System: %s', system ?? t('Unknown'))}>

Copy link
Contributor

@buenaflor buenaflor Jan 20, 2025

Choose a reason for hiding this comment

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

yup, I'll double check there, it's rather low prio so I won't change it immediately, just created an issue for it in the dart repo

@timfish
Copy link
Contributor Author

timfish commented Jan 20, 2025

Rather than adding absolute inside the rendering_system, it might be a better idea to add a new top level property:
getsentry/rfcs#144 (comment)

@getsantry
Copy link
Contributor

getsantry bot commented Feb 11, 2025

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added Stale and removed Stale labels Feb 11, 2025
@getsantry getsantry bot added Stale and removed Stale labels Jun 6, 2025
@getsantry
Copy link
Contributor

getsantry bot commented Jun 29, 2025

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added Stale and removed Stale labels Jun 29, 2025
@getsantry
Copy link
Contributor

getsantry bot commented Jul 22, 2025

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added Stale and removed Stale labels Jul 22, 2025
@getsantry getsantry bot added the Stale label Aug 14, 2025
@getsantry
Copy link
Contributor

getsantry bot commented Aug 14, 2025

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot removed the Stale label Aug 15, 2025
@getsantry
Copy link
Contributor

getsantry bot commented Sep 6, 2025

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added Stale and removed Stale labels Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

View Hierarchy absolute positioning should be dependent on rendering_system rather than project.platform

3 participants