-
Notifications
You must be signed in to change notification settings - Fork 71
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
fix(github): improve formatting of issue template spoilers #311
fix(github): improve formatting of issue template spoilers #311
Conversation
- I originally made the spoilers and while they work (and I would say improve readability a good bit), there's also some issues with them - I've used them a ton more now so know how to workaround most of the issues with them now - fix: use HTML `code` tag inside of `summary` tag, can't use backticks - was mixing MD and HTML before, and this doesn't always work and didn't work on GitHub, they just had backticks - fix: don't duplicate the file name in the heading, just make the `summary` have a heading inside it instead - use an `h4` same as the `####` that it was before - feat: add syntax highlighting by adding code blocks for each code snippet - js for rollup.config.js, json5 for tsconfig (it has comments, trailing commas, etc (actually a custom parser, but json5 is close enough)), json for package.json, and text for verbose logs - also, a lot of people sometimes just paste the code with no code block and it formats terribly, so this should help defer that (as well as any potential issues that can crop up with unindented blocks) - the `envinfo` text code block seems to be working well, so hopefully this will improve issues too
Looks good, thanks |
@ezolenko unrelated, but would you want to give me "Triage" access to this repo? I occasionally go through the issues myself and respond myself, and figure as an experienced maintainer I can triage/format/edit/label/organize/etc a bunch of things as well as close out issues that I think are stale or have been resolved. Ones that I'm not sure of I'd leave to you of course -- we can work out what the specifics of that would look like as well. Not that I have a ton of time myself, but I figure two is better than one any day, and I'm an occasional contributor anyway already. And I know from my own experience and from this repo's issues too that a lot of time is spent on issues. Can see TSDX's labels for an example of what's probably the most organized repo I've maintained. |
@agilgur5 Sure! Invite sent. I have almost no time for this repo, just enough to check incoming PRs and such, so any help is welcome |
Thanks @ezolenko !
That makes sense. This plugin started as a simple fork and evolved to be the most popular TS plugin by a long margin so 😅 maintenance done so farYou've probably seen some of my work already if you have notifications turned on, but here's a quick summary/heads-up for your information:
I've gone through most of the open issues now and about 2-3 pages of closed issues as well (good for context, history, and patterns. as well as self-closed issues) -- will get to organizing the rest eventually. I think that's pretty good progress in a week! 🙂 Let me know if you have any constructive feedback -- can converse over email for privacy too. patterns in the issues to improve onSome patterns I've noticed so far:
Already have a few PRs in the works for some of these and some small refactors for simplification, so hopefully those add to stability / usability / DX in the long-run. |
maintenance updateAs of last week, I have officially gone through nearly 100% of all issues, open and closed, 250+ in total, as well as various PRs. Other notable things:
patterns
There are some one-off issues that aren't quite patterns but that I think are pretty important to fix, such as:
Think that'll be the last update/maintenance summary I'll give since I've gone through all the issues now and these patterns are much smaller now. The few issues leftover don't really need a summary or are already part of previous patterns listed. |
Awesome job, thanks a lot! |
Summary
Improve formatting of the issue template with code blocks and fixing some duplication
Details
I originally added the spoilers in github: add spoiler tags to issue template #244 and while they work (and I would say improve readability a good bit), there's also some issues with them
fix: use HTML
code
tag inside ofsummary
tag, can't use backticksfix: don't duplicate the file name in the heading, just make the
summary
have a heading inside it insteadh4
same as the####
that it was beforefeat: add syntax highlighting by adding code blocks for each code snippet
js
forrollup.config.js
,json5
fortsconfig
(it has comments, trailing commas, etc (actually a custom parser, but json5 is close enough)),json
forpackage.json
, andtext
for verbose logsenvinfo
text
code block that I added in github: use envinfo for getting versions in issue reports #245 seems to be working well and used in most issues, so hopefully this will improve issues tooReferences
I wrote #310 using this format as an example! Think it's a good bit cleaner
Type '{}' is not assignable to type 'ReactNode'
with Bitbucket pipelines cache (works locally) -- need to specify@types/react-dom
#309 shows an example with no syntax highlighting but use of code blocks, whereassemantic error TS2339: Property 'write' does not exist on type 'Clipboard'
-- can't repro #306 uses no code blocks at all and so isn't formatted well and GitHub/Markdown doesn't indent it either. Both are properly using spoilers as well.