Repository navigation
Fixes #38372: split per-fetch loading flags in KnowledgePageVersionPage to eliminate torn version-history frame - #38408
Merged
sweta1308 merged 7 commits intoNov 23, 2026
Conversation
… eliminate torn version-history frame
Replaces on the version-data skeleton Box with the Tailwind utility. The PR moved the skeleton into a reusable const, which put the pre-existing inline style on a newly added line and tripped the Antd + Less Deprecation Guard. The width is unchanged.
…se fetch failure Addresses greptile review feedback on PR #38408: - Guard fetchActiveVersion state updates with a request id so a stale version-data response cannot overwrite a newer version's content when the user switches versions mid-flight. - Clear isVersionDataLoading in fetchKnowledgePage's catch, since a failed base lookup leaves no knowledgePage to drive the version-data request and would otherwise hang the content skeleton. - Add tests for both cases.
…fails to load Clear the selected version on a failed version-data fetch so the page no longer shows the previous version's content under the new version, or a blank content area on first load. Drop the KnowledgePageVersion loading prop, which its only caller always passed as false.
…t area NoDataPlaceholder is absolutely positioned and fills its nearest positioned ancestor. .version-data is not positioned, so the message centred across the whole card, including the version rail. Wrap it in a relative Box with a minimum height.
… Box Replace the flex divs with a Box row. SkeletonParagraph is already a full-width flex column, so it fills the space beside the avatar without a wrapper.
…oading-flags-in-knowl-518b29
sweta1308
approved these changes
Nov 23, 2026
Rohit0301
approved these changes
Nov 23, 2026
sweta1308
enabled auto-merge (squash)
November 23, 2026 06:46
sweta1308
disabled auto-merge
November 23, 2026 06:51
sweta1308
deleted the
detail/bug-fix/fixes-38372-split-per-fetch-loading-flags-in-knowl-518b29
branch
November 23, 2026 06:51
Merged
1 task done
sweta1308
added a commit
that referenced
this pull request
Nov 24, 2026
…ge to eliminate torn version-history frame (#38408) (#38508) * fix(ui): split per-fetch loading flags in KnowledgePageVersionPage to eliminate torn version-history frame * fix(ui): replace inline style with tw: utility to satisfy style guard Replaces on the version-data skeleton Box with the Tailwind utility. The PR moved the skeleton into a reusable const, which put the pre-existing inline style on a newly added line and tripped the Antd + Less Deprecation Guard. The width is unchanged. * fix(ui): guard stale version-data responses and clear data flag on base fetch failure Addresses greptile review feedback on PR #38408: - Guard fetchActiveVersion state updates with a request id so a stale version-data response cannot overwrite a newer version's content when the user switches versions mid-flight. - Clear isVersionDataLoading in fetchKnowledgePage's catch, since a failed base lookup leaves no knowledgePage to drive the version-data request and would otherwise hang the content skeleton. - Add tests for both cases. * fix(ui): show a no-data placeholder when knowledge page version data fails to load Clear the selected version on a failed version-data fetch so the page no longer shows the previous version's content under the new version, or a blank content area on first load. Drop the KnowledgePageVersion loading prop, which its only caller always passed as false. * fix(ui): contain the knowledge page version empty state in its content area NoDataPlaceholder is absolutely positioned and fills its nearest positioned ancestor. .version-data is not positioned, so the message centred across the whole card, including the version rail. Wrap it in a relative Box with a minimum height. * refactor(ui): build the knowledge page version skeleton row with core Box Replace the flex divs with a Box row. SkeletonParagraph is already a full-width flex column, so it fills the space beside the avatar without a wrapper. --------- (cherry picked from commit 38872db) Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
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.
Detail bug report: View on Detail
Describe your changes:
Fixes #38372
I worked on the Knowledge Center version-history page (
KnowledgePageVersionPage), which flashed a torn frame on every load, because three concurrent fetchers (fetchKnowledgePage,fetchVersionsInfo,fetchActiveVersion) shared a singleloadingboolean and each cleared it in its ownfinally. Whichever fetch resolved first tore down the full-page skeleton while the others were still in flight — producing either a blank content area (timeline visible, no content, no skeleton) when the version-list response won the race, or the inverse (content visible beside an empty timeline shell with zero versions) when the version-data response won. On slow/unequal responses the blank frame persisted for the whole slow request; if version-data errored, it stayed blank permanently.Type of change:
High-level design:
N/A — small change (one file plus its tests).
Tests:
Use cases covered
Unit tests
openmetadata-ui/src/main/resources/ui/src/pages/KnowledgePageVersionPage/KnowledgePageVersionPage.test.tsxshows a per-region skeleton in the content area instead of a blank frame when the version list resolves before the version data on mountkeeps the full-page skeleton until the version list resolves even when the version data resolves first on mountBackend integration tests
Ingestion integration tests
Playwright (UI) tests
openmetadata-ui/.../ui/playwright/for UI changes.Manual testing performed
KnowledgePageVersion.test.tsx, 3/3), the timeline suite (EntityVersionTimeline.test.tsx, 4/4), and a sibling page suite (DatabaseVersionPage.test.tsx, 3/3) — no regressions.organize-imports,lint:base --fix,pretty:base --write,license-header-fix— all clean; only the six pre-existingreact-hooks/exhaustive-depswarnings the original file already carried.yarn tsc:check; no type errors in the changed file (one pre-existing unrelated error insrc/utils/queryBuilderWidgets/OMSelectWidget.tsxis present on the unmodified baseline as well).UI screen recording:
Not applicable — standalone loading-state bug fix for a non-feature page; no new UI feature or task with UI impact.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.docs/decisions/(see itsREADME.md). This description is gone fromgit logafter the squash-merge.Automatic Fixes PRs can be configured here.


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues remain.Summary
Splits loading states in
KnowledgePageVersionPageso one completed request cannot hide another request's loading screen.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Fetch article] --> B{Article found?} B -->|No| C[Stop loading and show empty state] B -->|Yes| D[Fetch version list] B -->|Yes| E[Fetch selected version] D --> F[Show timeline] E --> G{Still the latest request?} G -->|No| H[Ignore response] G -->|Yes| I[Show version or empty state]Reviews (6) · Last reviewed commit: "Merge branch 'main' into detail/bug-fix/..." · Reviewed by Greptile