refactor(frontend): remove backward compatibility regex and console.log

- Remove regex matching for old 'Review required for X execution' format
- Remove console.log debug statement
- Simplify code by removing unnecessary string parsing
This commit is contained in:
Zamil Majdy
2026-01-24 11:09:35 -06:00
parent 435e1d4975
commit 666f6d28f3
2 changed files with 1 additions and 16 deletions

View File

@@ -63,11 +63,6 @@ export function PendingReviewCard({
if (instructions && !isHITLBlock) {
instructions = undefined;
} else if (instructions) {
const match = instructions.match(/^Review required for (.+?) execution$/);
if (match) {
instructions = match[1];
}
}
const [currentData, setCurrentData] = useState(extractedData.data);

View File

@@ -236,17 +236,7 @@ export function PendingReviewsList({
const reviewCount = nodeReviews.length;
const firstReview = nodeReviews[0];
let blockName = firstReview?.instructions;
if (blockName) {
const match = blockName.match(
/^Review required for (.+?) execution$/,
);
if (match) {
blockName = match[1];
}
}
const blockName = firstReview?.instructions;
const reviewTitle = `Review required for ${blockName}`;
const getShortenedNodeId = (id: string) => {