Skip to content
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

Flutter as framework of Dart #12866

Merged
merged 14 commits into from
Mar 7, 2025
Merged

Conversation

smeubank
Copy link
Member

@smeubank smeubank commented Feb 27, 2025

This PR moves all the files of Flutter to be under Dart, same as JavaScript and Python and other language to framework relationships.

After this is merged. I will begin looking at first updating all the links in the following, to respect these new redirect links.

Functionally in the UI, this PR only really removes Flutter as a platform in the landing page and side bar. It is a subitem under Dart

image

image

But then importantly and functionally, I want to look at ensuring that features which the Flutter SDK inherits from the Dart SDK, and any examples in the other direction, are properly show in the docs. For example Dio integration is not seen in flutter.

This PR moves all the files of Flutter to be under Dart, same as JavaScript and Python and other language to framework relationships.

After this is merged. I will begin looking at first updating all the links in product and static-pages to respect these new redirect links.

Potentially blogs aswell.

But then importantly and funcitonally, I want to look at ensuring that feature which the Flutter SDK inherits from the Dart SDK and any example in the other direction, are properly show in the docs. For example Dio integration is not seen in flutter.
flutter icon should display for flutter on main page and side bar
Copy link

vercel bot commented Feb 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 10:01am
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 10:01am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 10:01am

Copy link

codecov bot commented Feb 27, 2025

Bundle Report

Changes will increase total bundle size by 2.52kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.55MB 2.49kB (0.02%) ⬆️
sentry-docs-client-array-push 9.39MB 31 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.57MB -0.0%
../instrumentation.js -3 bytes 904.32kB -0.0%
9523.js -3 bytes 880.37kB -0.0%
../app/[[...path]]/page.js.nft.json 816 bytes 384.72kB 0.21%
../app/platform-redirect/page.js.nft.json 816 bytes 384.63kB 0.21%
../app/sitemap.xml/route.js.nft.json 816 bytes 382.6kB 0.21%
2065.js 50 bytes 81.48kB 0.06%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 868.18kB -0.0%
static/chunks/3319-*.js -3 bytes 393.41kB -0.0%
static/chunks/818-*.js 37 bytes 42.16kB 0.09%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
server/middleware-*.js -5.55kB 1.0kB -84.74%
static/7jA0aaBdU_XXCcQ3FdHNX/_buildManifest.js (New) 578 bytes 578 bytes 100.0% 🚀
static/7jA0aaBdU_XXCcQ3FdHNX/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/f5OHjWZu3Uprz6EayvICC/_buildManifest.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/f5OHjWZu3Uprz6EayvICC/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

smeubank added a commit to getsentry/sentry that referenced this pull request Feb 27, 2025
getsentry/sentry-docs#12866

this PR is just to prepare for the changes we might apply on docs
would otherwise need to update types or some other strangeness, and the config as is, is rather extensive
should do dynamic fixes later
remove middleware redirects and put the wildcard impl in redirects
@smeubank
Copy link
Member Author

smeubank commented Mar 6, 2025

@chargome and @kahest can you check this out? and give a ✅ if good to go, I tested some redirects on the preview, looks good

Copy link
Member

@chargome chargome left a comment

Choose a reason for hiding this comment

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

Looks like your last merge broke the build somehow

@@ -12,7 +12,7 @@
# /src/wizard/android/ @getsentry/team-mobile-core
# /src/platforms/apple/ @getsentry/team-mobile-core
# /src/wizard/apple/ @getsentry/team-mobile-core
# /src/platforms/flutter/ @getsentry/team-mobile-cross-platform
# /src/platforms/dart/guides/flutter/ @getsentry/team-mobile-cross-platform
Copy link
Member

Choose a reason for hiding this comment

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

this actually has no effect since the path is not correct for any of these, but we'll fix that in a separate pr

Copy link
Member

@kahest kahest left a comment

Choose a reason for hiding this comment

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

overall lgtm, but I think the Mobile Vitals page was merged incorrectly, see comment (also fyi @markushi)

when I open this page locally, I also get the same error as the Vercel build

Error occurred prerendering page "/product/insights/mobile". Read more: https://nextjs.org/docs/messages/prerender-error
Error: Build failed with 1 error:
_mdx_bundler_entry_point-4b598cda-599a-4961-9447-0e9106cb4fe2.mdx:0:0: ERROR: [plugin: @mdx-js/esbuild] Cannot process MDX file with esbuild
    at failureErrorWithLog (/vercel/path0/node_modules/esbuild/lib/main.js:1477:15)

it is redirecting as if it is in flutter context, but it's not a more explicit link hopefully resolves this
@smeubank
Copy link
Member Author

smeubank commented Mar 7, 2025

@chargome and @kahest aight reverted and fixed this weird linting failure. 😆 some cursed changes along the way but should be good now

Copy link
Member

@kahest kahest left a comment

Choose a reason for hiding this comment

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

looks good, thank you @smeubank!

I clicked through dart+flutter docs, tested some redirects, and verified that the Mobile Insights/Vitals pages are correct

@smeubank smeubank merged commit 4d55b40 into master Mar 7, 2025
13 checks passed
@smeubank smeubank deleted the (feat)flutter-dart-framework-structure branch March 7, 2025 12:27
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.

3 participants