Repository navigation
feat(citations): move Source Types into a sources-card tab, full-width card - #488
Merged
Merged
Conversation
…h card (#486) The Source Types donut lived in its own lg:col-span-2 card beside the sources card; at common widths the donut + legend overflowed and forced horizontal page scroll, while the page's main tables were squeezed into 3/5 of the content width. The donut is now a fourth tab (after Competitor Gaps) in the sources card, which spans the full content width. The panel is keepMounted like Domains/URLs since its data arrives with the same payload; Competitor Gaps keeps its lazy load. The donut is capped at max-w-md and centered so the full-width panel can't dwarf it or overflow. CitationsSkeleton now mirrors the single-card layout, and CSV export stays disabled on the non-table tabs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
On
/dashboard/citationsthe Source Types donut lived in its ownlg:col-span-2card beside the sources card. At common widths the donut + legend overflowed and forced horizontal page scroll, while the page's main content (Domains / URLs / Competitor Gaps tables) was squeezed into 3/5 of the width.SourceTypeDonutwith the samesourceTypeBreakdown/totals.domainsprops.lg:grid-cols-5wrapper are gone — the sources card spans the full content width.keepMountedlike Domains/URLs (its data arrives with the same payload, per the perf(citations): make Domains/URLs tab switching instant (keepMounted + memo, not a skeleton) #299 convention); Competitor Gaps keeps its lazy load on activation.max-w-mdand centered so the full-width panel can't dwarf it or introduce overflow at any viewport width.CitationsSkeletonmirrors the new single-card layout; CSV export stays disabled on the non-table tabs (Gaps and now Types).Related issue
Closes #486
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
/dashboard/citations— the sources card spans the full content width and shows four tabs: Domains / URLs / Competitor Gaps / Source Types.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)