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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

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)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 2:30pm
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 2:30pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Feb 28, 2025 2:30pm

Copy link

codecov bot commented Feb 27, 2025

Bundle Report

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

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

Affected Assets, Files, and Routes:

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.04kB -0.0%
static/chunks/4028-*.js -3 bytes 393.29kB -0.0%
static/chunks/818-*.js 37 bytes 42.2kB 0.09%
static/Wau3mSY-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/Wau3mSY-*.js (New) 578 bytes 578 bytes 100.0% 🚀
static/h5fP_4keWRJZN6CMkfTDz/_buildManifest.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/h5fP_4keWRJZN6CMkfTDz/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.46MB -0.0%
../instrumentation.js -3 bytes 791.26kB -0.0%
9523.js -3 bytes 767.46kB -0.0%
../app/[[...path]]/page.js.nft.json 816 bytes 383.38kB 0.21%
../app/platform-redirect/page.js.nft.json 816 bytes 383.3kB 0.21%
../app/sitemap.xml/route.js.nft.json 816 bytes 381.27kB 0.21%
2065.js 50 bytes 81.53kB 0.06%
view changes for bundle: sentry-docs-edge-server-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
src/middleware.js 2.83kB 208.01kB 1.38%

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
Copy link
Member

Choose a reason for hiding this comment

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

we could instead add the following rule in redirects.js

{
    source: '/platforms/flutter/:path*',
    destination: '/platforms/dart/guides/flutter/:path*',
},

happy to push that change in this PR, lmk :)

to: '/platforms/dart/guides/flutter/tracing/trace-propagation/',
},
{
from: '/platforms/flutter/tracing/trace-propagation/custom-instrumentation/',
Copy link
Member

Choose a reason for hiding this comment

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

I picked this entry randomly to test my suggestion for using redirect.js - and found out that this path doesn't exist. the correct path is
/platforms/flutter/tracing/instrumentation/custom-instrumentation/

Copy link
Member

Choose a reason for hiding this comment

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

we can probably ignore this if we use the redirects.js approach

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.

2 participants