Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: merged next in compare-entry-revision-poc
  • Loading branch information
swapnilmmane committed Dec 3, 2025
commit 46f9b3918e2f10098961186199162cacceeac1bc
2 changes: 1 addition & 1 deletion packages/api-headless-cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@webiny/project-utils": "0.0.0",
"@webiny/wcp": "0.0.0",
"apollo-graphql": "^0.9.7",
"graphql": "^16.11.0",
"graphql": "^16.12.0",
"openai": "^6.6.0",
"prettier": "^3.6.2",
"rimraf": "^6.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ export const CompareRevisionsTable = () => {
const status = revision.meta?.status;
return (
<span
className={`wby-capitalize wby-px-2 wby-py-1 wby-rounded wby-text-xs ${
className={`capitalize px-2 py-1 rounded text-xs ${
status === "published"
? "wby-bg-green-100 wby-text-green-800"
? "bg-green-100 text-green-800"
: revision.meta?.locked
? "wby-bg-yellow-100 wby-text-yellow-800"
: "wby-bg-gray-100 wby-text-gray-800"
? "bg-yellow-100 text-yellow-800"
: "bg-gray-100 text-gray-800"
}`}
>
{status ?? t`N/A`}
Expand Down Expand Up @@ -89,23 +89,23 @@ export const CompareRevisionsTable = () => {

if (!entry?.id || !revisions?.length) {
return (
<div className={"wby-p-lg wby-text-center"}>
<div className={"p-lg text-center"}>
{loading ? <OverlayLoader /> : t`No revisions to compare.`}
</div>
);
}

return (
<div className={"wby-relative"}>
<div className={"relative"}>
{loading && <OverlayLoader />}

<div className={"wby-p-lg wby-border-b wby-border-gray-200"}>
<div className={"wby-flex wby-items-center wby-justify-between"}>
<div className={"p-lg border-b border-gray-200"}>
<div className={"flex items-center justify-between"}>
<div>
<h3 className={"wby-text-lg wby-font-semibold wby-mb-1"}>
<h3 className={"text-lg font-semibold mb-1"}>
Select two revisions to compare
</h3>
<p className={"wby-text-sm wby-text-gray-600"}>
<p className={"text-sm text-gray-600"}>
{selectedRevisions?.length === 0 &&
"Choose two revisions to see their differences"}
{selectedRevisions?.length === 1 &&
Expand All @@ -126,7 +126,7 @@ export const CompareRevisionsTable = () => {
</div>
</div>

<div className={"wby-p-lg"}>
<div className={"p-lg"}>
<DataTable
columns={columns}
data={revisions}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/files/references.json

Large diffs are not rendered by default.

You are viewing a condensed version of this merge commit. You can view the full changes here.