Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(website): [playground] add types tab to playground#6843

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JoshuaKGoldberg merged 17 commits intomainfromchore/playground-type-inspector
Sep 11, 2023

Conversation

armano2
Copy link
Collaborator

@armano2armano2 commentedApr 4, 2023
edited
Loading

PR Checklist

Overview

extracted from#6656

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@armano2!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedApr 4, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commitf36c655
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/64fee8aa7679510008876d44
😎 Deploy Previewhttps://deploy-preview-6843--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 91 (🔴 down 8 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to yourNetlify site configuration.

@nx-cloud
Copy link

nx-cloudbot commentedApr 4, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commitf36c655. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 20 targets

Sent with 💌 fromNxCloud.

@armano2armano2 added the DO NOT MERGEPRs which should not be merged yet labelApr 4, 2023
Comment on lines +168 to +176
(state.showAST === 'types' && astModel?.storedTsAST && (
<TypesDetails
typeChecker={astModel.typeChecker}
value={astModel.storedTsAST}
onHoverNode={setSelectedRange}
cursorPosition={position}
/>
)) ||
(state.showAST && astModel && (
Copy link
CollaboratorAuthor

@armano2armano2Apr 4, 2023
edited
Loading

Choose a reason for hiding this comment

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

i have a feeling that i should extract this to separate component, thisand/or condition chain is getting complex

JoshuaKGoldberg reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

yeah this is probably getting to the point where we might want to extract the condition into a bit of state machine logic which outputs an enum value so that we can simplify the render logic.

Choose a reason for hiding this comment

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

Agreed. I don't personally think of it as a blocker but it would be a nice to have. Maybe a good follow-upgood first issue for a potential contributor?

Choose a reason for hiding this comment

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

Filed#7630. On second thought I think it's probably not agood first issue given it's touching a bunch of code.

@armano2armano2 removed the DO NOT MERGEPRs which should not be merged yet labelApr 8, 2023
@armano2armano2 requested a review frombradzacherMay 1, 2023 13:08
Base automatically changed fromv6 tomainJuly 10, 2023 17:52
@bradzacher
Copy link
Member

in terms of the UX itself - it looks good!
haven't eyeballed the code just yet.
Sorry it's taken me so long to get to it.

Comment on lines +168 to +176
(state.showAST === 'types' && astModel?.storedTsAST && (
<TypesDetails
typeChecker={astModel.typeChecker}
value={astModel.storedTsAST}
onHoverNode={setSelectedRange}
cursorPosition={position}
/>
)) ||
(state.showAST && astModel && (
Copy link
Member

Choose a reason for hiding this comment

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

yeah this is probably getting to the point where we might want to extract the condition into a bit of state machine logic which outputs an enum value so that we can simplify the render logic.

@armano2armano2 marked this pull request as ready for reviewAugust 16, 2023 09:58
JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesAug 17, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment
edited
Loading

Choose a reason for hiding this comment

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

🔥 this is great, thanks!

Just a couple of small questions or comments, nothing blocking.

Whenever you want to merge, I'm happy.

armano2 reacted with thumbs up emoji
Comment on lines +168 to +176
(state.showAST === 'types' && astModel?.storedTsAST && (
<TypesDetails
typeChecker={astModel.typeChecker}
value={astModel.storedTsAST}
onHoverNode={setSelectedRange}
cursorPosition={position}
/>
)) ||
(state.showAST && astModel && (

Choose a reason for hiding this comment

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

Agreed. I don't personally think of it as a blocker but it would be a nice to have. Maybe a good follow-upgood first issue for a potential contributor?

@JoshuaKGoldbergJoshuaKGoldberg added the 1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge labelAug 17, 2023
@JoshuaKGoldberg
Copy link
Member

I've sent the preview link for this to 3 separate people this month already so I'm going to try to get it merged now 😄

@codecov
Copy link

codecovbot commentedSep 11, 2023

Codecov Report

Merging#6843 (266f8d1) intomain (4f34d0b) willincrease coverage by0.00%.
Report is 40 commits behind head on main.
The diff coverage is100.00%.

❗ Current head266f8d1 differs from pull request most recent headf36c655. Consider uploading reports for the commitf36c655 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@##             main    #6843   +/-   ##=======================================  Coverage   87.23%   87.23%           =======================================  Files         387      387             Lines       13401    13404    +3       Branches     3962     3962           =======================================+ Hits        11690    11693    +3  Misses       1327     1327             Partials      384      384
FlagCoverage Δ
unittest87.23% <100.00%> (+<0.01%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Files ChangedCoverage Δ
packages/scope-manager/src/lib/base-config.ts100.00% <ø> (ø)
...ackages/scope-manager/src/lib/decorators.legacy.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/decorators.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/dom.iterable.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/dom.ts100.00% <ø> (ø)
...ackages/scope-manager/src/lib/es2015.collection.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/es2015.core.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/es2015.generator.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/es2015.iterable.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/es2015.promise.ts100.00% <ø> (ø)
... and84 more

Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

This is wonderful - super useful for testing out types, and will make for easier debugging & sending help playgrounds to devs! Thanks@armano2! 👏

Verified the playground works well even on fancy types:https://deploy-preview-6843--typescript-eslint.netlify.app/play#ts=5.2.2&showAST=types&fileType=.tsx&code=C4TwDgpgBAwhA28oF4oHJ1QD7oBoZzQHk0BuAKHNEigDUBLAY2AHsAnEAHgAV4BDEBDYAaKACEWfNgBMAfCnGSZUCAA9gEAHbSAzlADq9TZqMBzCVOk9%2BgtvID8UYGwCu0AFxQAZn3g6IFFTg0IbGZhYy1gJC8qgAIvR8piyavgzM7Fy80XbYUAAS7PQAXinAaUysHFG28ji0QsBMFRnV2bWB1NAJSSktVVk2MSjkUHkA3qNjUAAMnuOznu1CogCMnnyaIKIATBtbUAC%2BwlNj61ALc1Cb21DnyyJQe9cHx6dP84svt%2Bc3u0tDNhHE5jQ5THCTaZfS77H6w-5QB7A97nGHfNYAnIIm7IqHPNEPDHoj7fXFHShdApFUqacrwdIDGrDZDgi7vK4EwFEwkkpFvKGor5-O7wkk4-nTfFCrZE4XPcUg8ljCHsz5XYW-GVi16Ks5qzG2blc3mAsljKXqrWa27ynVTMHKtlQjnSuHE20gM0ii6u2Vaj1ei0GlbennPPmKsFBGgNNhNRj9TJM3Isx2Q6Yuq4863Yu0C-WI4057WeiXmgvZ0UBiUOiaqn2Wt1h2FewWNo1YkuBgsa4OPauR1npsaZ0XF8OmsvetG99197sNsdV%2Bc1inBAxGTRCTgROQjMY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iHXs1ORo82q0V9j3bBohyGUOcGYTg8isJ0ygJolgVCdHr2UTg-ulJ56L2ABIteUD-5SM3k-bRM8wb9UQDY1ek9Qbk0ctggh%2BA8hvngagJxj9VZw2DtY5gq8QLhKpvjSecd86F0RCnPOeDNCHCgPHROQI9GYRyXkguuszEDWySUtJ3AWCc0OBXaJlEF5LyHqvBJW8oSM2ZmzDmXN2mnyhCheuMSNDSFEBIhJMjNCKMwgoqA5Slqd3pig9QWSpnwPgZ4EZdj2kAK6cLXpuiHHPQGdMEZq96ZZKvtdKAABRbQRkdAuHgP5VAX074QE4A06YuB6ozHeEQPC-yoS-IIjwqEgLGLAp%2BfVHYAKgXkGjogoAA&eslintrc=N4KABGBEBOCuA2BTAzpAXGYBfEWg&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false

@JoshuaKGoldbergJoshuaKGoldberg merged commit7c3475c intomainSep 11, 2023
@JoshuaKGoldbergJoshuaKGoldberg deleted the chore/playground-type-inspector branchSeptember 11, 2023 10:32
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsSep 19, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

@bradzacherbradzacherbradzacher left review comments

Assignees
No one assigned
Labels
1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we mergewebsite: playground
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@armano2@bradzacher@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp