Skip to content

Commit 4afd5a8

Browse files
committed
Enhance Delete Graph modal with centralized styling and connection management
- Fix schema mismatch: change PART_OF to IS_PART_OF in seed script - Update admin credentials to admin/graphdone for consistency - Implement comprehensive Delete Graph modal with node connection management - Add centralized type styling using WORK_ITEM_TYPES from workItemConstants - Enable bulk disconnect functionality with Disconnect First action - Improve UX with proper type icons and labels in delete workflow
1 parent 342f581 commit 4afd5a8

6 files changed

Lines changed: 450 additions & 42 deletions

File tree

packages/server/src/scripts/create-admin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async function createAdmin() {
4141

4242
// Create admin user
4343
const adminId = uuidv4();
44-
const passwordHash = await bcrypt.hash('admin123', 10);
44+
const passwordHash = await bcrypt.hash('graphdone', 10);
4545

4646
await session.run(
4747
`MATCH (t:Team {id: $teamId})
@@ -65,7 +65,7 @@ async function createAdmin() {
6565
console.log('✅ Admin user and team created successfully!');
6666
console.log('👥 Team: GraphDone Team (team-1)');
6767
console.log('📧 Email: admin@graphdone.local');
68-
console.log('🔑 Password: admin123');
68+
console.log('🔑 Password: graphdone');
6969
console.log('👑 Role: ADMIN');
7070
console.log('\nYou can now login and access the Admin panel!');
7171

packages/server/src/scripts/seed.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ async function seed() {
123123
const edges = [
124124
{ source: 'wi-1', target: 'wi-2', type: 'DEPENDS_ON' },
125125
{ source: 'wi-2', target: 'wi-3', type: 'DEPENDS_ON' },
126-
{ source: 'wi-5', target: 'wi-6', type: 'PART_OF' },
127-
{ source: 'wi-5', target: 'wi-7', type: 'PART_OF' },
128-
{ source: 'wi-5', target: 'wi-8', type: 'PART_OF' },
126+
{ source: 'wi-5', target: 'wi-6', type: 'IS_PART_OF' },
127+
{ source: 'wi-5', target: 'wi-7', type: 'IS_PART_OF' },
128+
{ source: 'wi-5', target: 'wi-8', type: 'IS_PART_OF' },
129129
{ source: 'wi-12', target: 'wi-5', type: 'DEPENDS_ON' }
130130
];
131131

0 commit comments

Comments
 (0)