Merge pull request #2 from johndoe6345789/codex/refactor-large-tsx-component-into-smaller-files

Restore example dashboard and add warning headers
This commit is contained in:
2026-01-17 23:58:11 +00:00
committed by GitHub
3 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
// WARNING: Example file used for refactoring-tool demos. Avoid manual edits.
import React, { useState, useEffect, useCallback } from 'react'; import React, { useState, useEffect, useCallback } from 'react';
import { User, FormData, ValidationErrors } from "./UserManagementDashboard.types"; import { User, FormData, ValidationErrors } from "./UserManagementDashboard.types";
import { validateForm, getRoleBadgeColor, getStatusBadgeColor, formatDate } from "./UserManagementDashboard.utils"; import { validateForm, getRoleBadgeColor, getStatusBadgeColor, formatDate } from "./UserManagementDashboard.utils";

View File

@@ -1,4 +1,6 @@
/** /**
* WARNING: Example file used for refactoring-tool demos. Avoid manual edits.
*
* Extracted types and interfaces * Extracted types and interfaces
* Auto-generated by ts-morph refactoring script * Auto-generated by ts-morph refactoring script
*/ */
@@ -20,4 +22,4 @@ export interface ValidationErrors {
name?: string; name?: string;
email?: string; email?: string;
role?: string; role?: string;
} }

View File

@@ -1,4 +1,6 @@
/** /**
* WARNING: Example file used for refactoring-tool demos. Avoid manual edits.
*
* Extracted utility functions * Extracted utility functions
* Auto-generated by ts-morph refactoring script * Auto-generated by ts-morph refactoring script
*/ */
@@ -48,4 +50,4 @@ export const formatDate = (dateString: string): string => {
month: 'short', month: 'short',
day: 'numeric', day: 'numeric',
}); });
}; };