fix(ui): code-split markdown title + desc, fix row linking, etc #12580
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow-up to #10553 issues
Related / partial fix for to #12059, although the PR was merged after that issue was created
Motivation
react-markdownandremark-gfmare large deps, so we should code-split / lazy load themCSS had several issues
overlaywas not sufficiently unique (as we currently use global CSS and not something like CSS Modules)WorkflowsRowmessage is not too long #11908)fix nested link issues
remove
Linkfor the entire row as it was unintuitive, especially with the drawerModifications
react-markdownandremark-gfmworkflows-row-name.tsxfile and merge it back to where it wasworkflows-row.tsx, notworkflows-row-name.tsxoverlayanchor element was a workaround for nested linking (which could optionally be used with the markdown feature), remove it and use JS to handle nested links insteadnamecolumn and not the entire row (which included the drawer before, both open and closed)Verification
Rendered UI itself
Manually tested the UI:
Before had several issues (as listed in #10553 (review)):
Misplaced columns; row does not flex all the way to the right:

Details drawer has empty space on both left and right:


Overflow that was fixed in #11908 was re-broken:

After:

UI deps code-split
Shaved off ~575KB / ~140KB minified / ~41KB gzipped from the main entrypoint:

