fix: scheduleId not unset properly bug (#15993)

* fix: scheduleId not unset properly bug

* Refactor almost complete, couple of tests needed

* More testid fixes

* Add migration to fixup schedule id bug

* Remove migration

* fix: Refactor useLockedFieldManager for correct useState use

---------

Co-authored-by: zomars <[email protected]>
This commit is contained in:
Alex van Andelandzomars authored and GitHub committed 2024-08-13 16:44:16 +01:00
1 parent d5f7065fdb
commit b09b32b121
7 files changed
+155 -182

No files matched your search

+4 -4
View File
@@ -107,7 +107,7 @@ export interface BaseCardProps extends CVACardType {
href?: string;
child: ReactNode;
onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
"data-testId"?: string;
"data-testid"?: string;
};
learnMore?: {
href: string;
@@ -177,7 +177,7 @@ export function Card({
target="_blank"
rel="noreferrer"
href={mediaLink}
data-testId={actionButton?.["data-testId"]}
data-testid={actionButton?.["data-testid"]}
className="group relative my-3 flex aspect-video items-center overflow-hidden rounded">
<div className="absolute inset-0 bg-black bg-opacity-50 transition group-hover:bg-opacity-40" />
<svg
@@ -210,7 +210,7 @@ export function Card({
href={actionButton?.href}
className="mt-10"
EndIcon="arrow-right"
data-testId={actionButton["data-testId"]}>
data-testid={actionButton["data-testid"]}>
{actionButton?.child}
</Button>
</div>
@@ -232,7 +232,7 @@ export function Card({
<button
className="text-default hover:text-emphasis p-0 text-xs font-normal"
color="minimal"
data-testId={actionButton?.["data-testId"]}
data-testid={actionButton?.["data-testid"]}
onClick={actionButton?.onClick}>
{actionButton?.child}
</button>
+1 -1
View File
@@ -113,7 +113,7 @@ export function DataTable<TData, TValue>({
tableCTA={tableCTA}
/>
<div ref={tableContainerRef} onScroll={onScroll} data-testid={rest["data-testid"] ?? "data-table"}>
<Table data-testId="">
<Table data-testid="">
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (
<TableRow key={headerGroup.id}>