1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

update mock data

This commit is contained in:
Thomas Heartman 2025-09-10 15:49:42 +02:00
parent 244f103abd
commit 61a90a0950
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -18,65 +18,74 @@ import { HighlightCell } from 'component/common/Table/cells/HighlightCell/Highli
import { GlobalChangeRequestTitleCell } from './GlobalChangeRequestTitleCell.js';
import { FeaturesCell } from '../ProjectChangeRequests/ChangeRequestsTabs/FeaturesCell.js';
// Mock data based on the image
// Mock data with varied projects and change requests
const mockChangeRequests = [
{
id: 24,
title: 'change request #024',
project: 'auth-application',
projectName: 'Auth application',
features: [{ name: 'hubspotDebugLogging' }],
id: 101,
title: 'Activate harpoons',
project: 'payment-service',
projectName: 'Payment Service',
features: [{ name: 'securePaymentFlow' }],
segments: [],
createdBy: { username: 'bruce', name: 'Bruce Wayne', imageUrl: null },
createdBy: { username: 'alice', name: 'Alice Johnson', imageUrl: null },
createdAt: '2024-01-10T10:22:00Z',
environment: 'Production',
state: 'Review required',
},
{
id: 24,
title: 'change request #024',
project: 'auth-application',
projectName: 'Auth application',
features: [{ name: 'strictSchemaValidation' }],
id: 102,
title: 'change request #102',
project: 'user-management',
projectName: 'User Management',
features: [{ name: 'enhancedValidation' }],
segments: [],
createdBy: { username: 'bruce', name: 'Bruce Wayne', imageUrl: null },
createdAt: '2024-01-10T10:22:00Z',
createdBy: { username: 'bob', name: 'Bob Smith', imageUrl: null },
createdAt: '2024-01-10T08:15:00Z',
environment: 'Production',
state: 'Approved',
},
{
id: 24,
title: 'change request #024',
project: 'developer-experience',
projectName: 'Developer experience',
features: [{ name: 'debugFlag' }],
id: 103,
title: 'Enable new checkout flow',
project: 'e-commerce-platform',
projectName: 'E-commerce Platform',
features: [{ name: 'newCheckoutUX' }, { name: 'paymentOptionsV2' }],
segments: [],
createdBy: { username: 'bruce', name: 'Bruce Wayne', imageUrl: null },
createdAt: '2024-01-10T10:22:00Z',
environment: 'Production',
createdBy: { username: 'carol', name: 'Carol Davis', imageUrl: null },
createdAt: '2024-01-10T12:30:00Z',
environment: 'Testing',
state: 'Review required',
},
{
id: 24,
title: 'change request #024',
project: 'auth-application',
projectName: 'Auth application',
features: [{ name: 'consumptionSync' }],
id: 104,
title: 'Update user permissions',
project: 'user-management',
projectName: 'User Management',
features: [
{ name: 'roleBasedAccess' },
{ name: 'permissionMatrix' },
{ name: 'adminDashboard' },
],
segments: [],
createdBy: { username: 'bruce', name: 'Bruce Wayne', imageUrl: null },
createdAt: '2024-01-10T10:22:00Z',
createdBy: { username: 'david', name: 'David Wilson', imageUrl: null },
createdAt: '2024-01-09T16:45:00Z',
environment: 'Sandbox',
state: 'Review required',
},
{
id: 24,
title: 'change request #024',
project: 'platform',
projectName: 'Platform',
features: [{ name: 'etagByEnv' }],
id: 105,
title: 'Deploy feature rollback',
project: 'analytics-platform',
projectName: 'Analytics Platform',
features: [
{ name: 'performanceTracking' },
{ name: 'realTimeAnalytics' },
{ name: 'customDashboards' },
{ name: 'dataExport' },
],
segments: [],
createdBy: { username: 'bruce', name: 'Bruce Wayne', imageUrl: null },
createdAt: '2024-01-10T10:22:00Z',
createdBy: { username: 'eve', name: 'Eve Brown', imageUrl: null },
createdAt: '2024-01-09T14:20:00Z',
environment: 'Sandbox',
state: 'Scheduled',
schedule: {
@ -85,52 +94,52 @@ const mockChangeRequests = [
},
},
{
id: 24,
title: 'change request #024',
project: 'unleash-cloud',
projectName: 'Unleash Cloud',
features: [{ name: 'fetchMode' }],
id: 106,
title: 'change request #106',
project: 'notification-service',
projectName: 'Notification Service',
features: [{ name: 'emailTemplates' }],
segments: [],
createdBy: { username: 'jane', name: 'Jane Smith', imageUrl: null },
createdAt: '2024-01-09T14:30:00Z',
createdBy: { username: 'frank', name: 'Frank Miller', imageUrl: null },
createdAt: '2024-01-08T11:00:00Z',
environment: 'Testing',
state: 'Approved',
},
{
id: 24,
title: 'change request #024',
project: 'unleash-cloud',
projectName: 'Unleash Cloud',
features: [{ name: 'consumptionModelUI' }],
id: 107,
title: 'Optimize database queries',
project: 'data-warehouse',
projectName: 'Data Warehouse',
features: [{ name: 'queryOptimization' }],
segments: [],
createdBy: { username: 'jane', name: 'Jane Smith', imageUrl: null },
createdAt: '2024-01-09T14:30:00Z',
createdBy: { username: 'grace', name: 'Grace Lee', imageUrl: null },
createdAt: '2024-01-08T09:30:00Z',
environment: 'Testing',
state: 'Approved',
},
{
id: 24,
title: 'change request #024',
project: 'enterprise-frontend',
projectName: 'Enterprise Front End',
features: [{ name: 'sso-provider-error-details' }],
id: 108,
title: 'change request #108',
project: 'mobile-app',
projectName: 'Mobile App',
features: [{ name: 'pushNotifications' }],
segments: [],
createdBy: { username: 'bruce', name: 'Bruce Wayne', imageUrl: null },
createdAt: '2024-01-10T10:22:00Z',
createdBy: { username: 'henry', name: 'Henry Chen', imageUrl: null },
createdAt: '2024-01-07T15:20:00Z',
environment: 'Production',
state: 'Approved',
},
{
id: 24,
title: 'change request #024',
project: 'auth-application',
projectName: 'Auth application',
features: [{ name: 'filterFlagsToArchive' }],
id: 109,
title: 'Archive legacy features',
project: 'payment-service',
projectName: 'Payment Service',
features: [{ name: 'legacyPaymentGateway' }],
segments: [],
createdBy: { username: 'bruce', name: 'Bruce Wayne', imageUrl: null },
createdAt: '2024-01-10T10:22:00Z',
createdBy: { username: 'alice', name: 'Alice Johnson', imageUrl: null },
createdAt: '2024-01-07T13:10:00Z',
environment: 'Production',
state: 'Approved',
state: 'Rejected',
},
];