-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.ts
More file actions
1036 lines (1018 loc) · 38.8 KB
/
variables.ts
File metadata and controls
1036 lines (1018 loc) · 38.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
export const Y_LOGO_URL =
'https://yapperdev.blob.core.windows.net/profile-images/25a3ccdd-0437-4e88-9bcb-028f1de2d7c4-1763920269595-Y_Logo.jpg';
export const Y_LOGO_HOST_URL = 'https://yapperdev.blob.core.windows.net/profile-images/';
export const STRING_MAX_LENGTH = 100;
export const USERNAME_MAX_LENGTH = 20;
export const NAME_MAX_LENGTH = 25;
export const LARGE_MAX_LENGTH = 3000;
export const POST_CONTENT_LENGTH = 280;
export const MESSAGE_CONTENT_LENGTH = 300;
export const OTP_LENGTH = 6;
// File upload constants
export const ALLOWED_IMAGE_MIME_TYPES = [
'image/jpeg',
'image/png',
'image/webp',
'image/gif',
'image/bmp',
'image/tiff',
'image/svg+xml',
'image/x-icon',
'image/heic',
] as const;
export const MAX_IMAGE_FILE_SIZE = 5 * 1024 * 1024; // 5MB
// Voice note constants
export const ALLOWED_VOICE_MIME_TYPES = [
'audio/mpeg',
'audio/wav',
'audio/ogg',
'audio/mp4',
'audio/m4a',
'audio/x-m4a',
'audio/webm',
] as const;
export const MAX_VOICE_FILE_SIZE = 5 * 1024 * 1024; // 5MB
export const MAX_VOICE_DURATION = 300; // 5 minutes
export const MIN_VOICE_DURATION = 1; // 1 second
// ------------------------- Email Templates ------------------------- //
export const verification_email_object = (otp: string, link: string) => ({
subject: `${otp} is your Y verification code`,
title: 'Confirm your email address',
description: 'Please enter this verification code to get started on Yapper:',
subtitle: 'Getting a lot of emails?',
subtitle_description: `
If you feel this is not your account or you didn't request this, you can let us know by clicking
<a href=${link}
title="click here to report it"
style="color: #1d9bf0; text-decoration: none;"
target="_blank">Not my account</a>.
`,
});
export const reset_password_email_object = (username: string) => ({
subject: 'Password reset request',
title: 'Reset your password?',
description: `If you requested a password reset for @${username}, use the confirmation code below to complete the process. If you didn't make this request, ignore this email.`,
subtitle: '',
subtitle_description: ``,
});
export const update_email_email_object = (username: string, otp: string) => ({
subject: `${otp} is your Y verification code`,
title: 'Confirm your email address',
description: `There's one quick step before you need to complete in order to confirm your new email address for @${username}.<br><br>Please enter this verification code on Yapper:`,
subtitle: '',
subtitle_description: ``,
});
// ------------------------- Test Data for Testing Team ------------------------- //
export class TestDataConstants {
static readonly TEST_USERS = [
{
email: 'mario@yapper.test',
password: 'Mario123#',
name: 'Mario Raafat',
username: 'mario_rafat12956014',
birth_date: new Date('2004-05-22'),
language: 'en' as const,
avatar_url:
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764833843259-2.jpg',
},
{
email: 'mohsen@yapper.test',
password: 'Mohsen123#',
name: 'Kero Mohsen',
username: 'kero_mohsen239609562',
birth_date: new Date('2005-03-03'),
language: 'en' as const,
avatar_url:
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764833909851-1.jpg',
},
{
email: 'esraa@yapper.test',
password: 'Esraa123#',
name: 'Esraa Hassan',
username: 'esraa_hassan7890560',
birth_date: new Date('2004-09-10'),
language: 'en' as const,
avatar_url:
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764833566699-esraa.jpg',
},
{
email: 'salah@yapper.test',
password: 'Test123#',
name: 'Mo Salah',
username: 'mo_salah4567890',
birth_date: new Date('1992-06-15'),
language: 'en' as const,
avatar_url:
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837060155-salah.jpg',
},
{
email: 'messi@yapper.test',
password: 'Test123#',
name: 'Lionel Messi',
username: 'lionel_messi8901234',
birth_date: new Date('1987-06-24'),
language: 'en' as const,
avatar_url:
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837077268-messi.jpg',
},
{
email: 'afsha@yapper.test',
password: 'Test123#',
name: 'Magdy Afsha',
username: 'magdy_afsha2345678',
birth_date: new Date('1996-03-06'),
language: 'en' as const,
avatar_url:
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837092750-afsha.jpg',
},
{
email: '7amada@yapper.test',
password: 'Test123#',
name: '7amada ElSawy',
username: '7amada_elsawy6789012',
birth_date: new Date('2004-02-14'),
language: 'en' as const,
avatar_url:
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837119558-7amada.jpg',
},
{
email: '3m_3abdo@yapper.test',
password: 'Test123#',
name: '3m 3abdo',
username: '3m_3abdo3456789',
birth_date: new Date('2003-08-19'),
language: 'en' as const,
avatar_url:
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837138612-3abdo.jpg',
},
{
email: 'liverpool@yapper.test',
password: 'Test123#',
name: 'Liverpool FC',
username: 'liverpool_fc9012345',
birth_date: new Date('2002-12-30'),
language: 'en' as const,
avatar_url:
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837164100-liverpool.jpg',
},
{
email: 'yapper@yapper.test',
password: 'Test123#',
name: 'yapper Dev',
username: 'yapper_dev7890123',
birth_date: new Date('2001-04-22'),
language: 'en' as const,
avatar_url: Y_LOGO_URL,
},
];
static readonly TEST_TWEETS = [
{
user_index: 0, // Mario - 20 tweets (5 with images)
tweets: [
{
content:
'Building the backend for our new social platform! 🚀 #development #coding',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832739993-code.jpg',
],
},
{
content:
'Just finished implementing the authentication system 💻 #nodejs #nestjs',
images: [],
},
{
content:
'Working on optimizing database queries today #postgresql #performance',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832769559-postgres.png',
],
},
{ content: 'Coffee and code - the perfect combination ☕ #developer', images: [] },
{
content: 'Debugging is like being a detective in a crime movie 🔍 #debugging',
images: [],
},
{
content: 'Finally got the WebSocket implementation working! #realtime #chat',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832792587-chat.png',
],
},
{
content: 'Testing team is doing an amazing job finding edge cases 🎯 #testing',
images: [],
},
{
content: 'Learning new TypeScript patterns every day 📚 #typescript',
images: [],
},
{
content: 'Code review time! Love seeing clean code 👌 #cleancode',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832811767-clean%20code.jpg',
],
},
{
content: 'Docker containers make deployment so much easier 🐳 #docker',
images: [],
},
{
content: 'Working late tonight to meet the sprint deadline 🌙 #agile',
images: [],
},
{
content: 'Redis caching improved our API response time by 60%! 🚀 #redis',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832827804-redis.png',
],
},
{
content: 'Pair programming session was very productive today 👥 #teamwork',
images: [],
},
{ content: 'Writing unit tests for the new features #tdd #testing', images: [] },
{ content: 'API documentation is finally complete 📖 #swagger', images: [] },
{ content: 'Refactored the entire user module today #refactoring', images: [] },
{ content: 'CI/CD pipeline is running smoothly now ✅ #devops', images: [] },
{
content:
'Microservices architecture is challenging but rewarding 🏗️ #microservices',
images: [],
},
{ content: 'Backend development is my passion 💙 #backend', images: [] },
{ content: 'Looking forward to the next sprint planning 📊 #scrum', images: [] },
],
},
{
user_index: 1, // Mohsen - 20 tweets (5 with images)
tweets: [
{
content: 'Frontend development is so exciting! 🎨 #frontend #react',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832864027-react.png',
],
},
{
content: 'Just created an awesome UI component library 🔥 #components',
images: [],
},
{ content: 'CSS Grid and Flexbox make layouts so easy #css #webdev', images: [] },
{
content: 'Responsive design is not optional anymore 📱 #responsive',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832878177-responsive.jpg',
],
},
{ content: 'State management with Redux is powerful 💪 #redux', images: [] },
{ content: 'Animations bring life to the UI ✨ #animations', images: [] },
{
content: 'Testing React components with Jest #testing #jest',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832943690-jest.png',
],
},
{ content: 'Dark mode implementation complete 🌙 #darkmode', images: [] },
{ content: 'Performance optimization is crucial for UX #performance', images: [] },
{
content: 'Accessibility matters! Making the web for everyone ♿ #a11y',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832959642-a11y.png',
],
},
{ content: 'Working on the mobile version of our app 📱 #mobile', images: [] },
{
content: 'TypeScript makes React development much better 🎯 #typescript',
images: [],
},
{
content: 'Figma designs are pixel perfect today! 🎨 #figma',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832974452-figma.jpg',
],
},
{ content: 'Learning Next.js for SSR capabilities #nextjs #ssr', images: [] },
{ content: 'Web performance audits show great results 📊 #lighthouse', images: [] },
{ content: 'Custom hooks make code so reusable ♻️ #hooks', images: [] },
{ content: 'Styled components vs CSS modules debate 🤔 #styling', images: [] },
{ content: 'Progressive Web Apps are the future 🚀 #pwa', images: [] },
{ content: 'Browser compatibility testing is done ✅ #compatibility', images: [] },
{ content: 'Love working with this amazing team! 💙 #teamwork', images: [] },
],
},
{
user_index: 2, // Esraa - 20 tweets (5 with images)
tweets: [
{
content: 'Quality assurance is the backbone of great software 🛡️ #qa #testing',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764832998278-qa.jpg',
],
},
{ content: 'Found and reported 15 bugs today 🐛 #bugbounty', images: [] },
{ content: 'Automation testing saves so much time ⏰ #automation', images: [] },
{
content: 'Test cases are ready for the new sprint 📝 #testcases',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764833041278-testcases.png',
],
},
{
content: 'Performance testing shows excellent results 📈 #performance',
images: [],
},
{ content: 'Security testing is critical for user trust 🔒 #security', images: [] },
{
content: 'Regression testing complete, all green! ✅ #regression',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764833087283-regression.png',
],
},
{
content: 'Creating comprehensive test documentation 📚 #documentation',
images: [],
},
{ content: 'API testing with Postman is so efficient 🚀 #postman', images: [] },
{
content: 'Load testing revealed some bottlenecks ⚠️ #loadtesting',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764833059049-loadtesting.png',
],
},
{ content: 'User acceptance testing phase begins tomorrow 👥 #uat', images: [] },
{ content: 'Cross-browser testing is essential #browsers', images: [] },
{
content: 'Mobile app testing on different devices 📱 #mobiletesting',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764833074880-mobiletesting.jpg',
],
},
{
content: 'Writing detailed bug reports for the dev team 📋 #bugreports',
images: [],
},
{ content: 'Test automation framework is ready 🤖 #framework', images: [] },
{ content: 'Edge case testing reveals the best bugs 🔍 #edgecases', images: [] },
{
content: 'Integration testing between modules complete ✅ #integration',
images: [],
},
{ content: 'Quality metrics looking great this sprint 📊 #metrics', images: [] },
{ content: 'Continuous testing in the CI/CD pipeline 🔄 #cicd', images: [] },
{
content: "Testing is not just finding bugs, it's ensuring quality 🎯 #quality",
images: [],
},
],
},
{
user_index: 3, // Salah
tweets: [
{
content: 'Proud to represent Egypt 🇪🇬❤️ #Egypt #MoSalah',
images: [],
},
{ content: 'What a night at Anfield! YNWA ❤️ #Liverpool #LFC', images: [] },
{ content: 'Training hard for the next match 💪⚽ #Football', images: [] },
{
content: 'Thank you to all the Egyptian fans for your support! 🇪🇬 #Pharaohs',
images: [],
},
{
content: "Liverpool family forever! You'll Never Walk Alone 🔴 #YNWA",
images: [],
},
],
},
{
user_index: 4, // Messi
tweets: [
{
content:
'The greatest moment of my career! Lifting the World Cup trophy for Argentina 🏆🇦🇷 #WorldCup #Qatar2022 #Champion',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837204715-world%20cup.jpg',
],
},
{
content:
'Another Golden Boot added to the collection! 👢✨ Hard work pays off #GoldenBoot #Topscorer',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837304076-golden%20boots.jpg',
],
},
{
content:
"Proud to receive another Ballon d'Or! Thank you to everyone who believed in me 🏅⚽ #BallonDor #GoldenBall",
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837319026-golden%20ball.jpg',
],
},
{
content:
'Champions League 2009 - What a night in Rome! First of many trophies with the best team 🏆⚽ #UCL #Champions #Barcelona',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837348076-champ.jpg',
],
},
{
content:
'El Clásico 5-0! Historic night at Camp Nou 🔵🔴 Could they score even half of them? 😏⚽⚽⚽⚽⚽ #ElClasico #Barca #Historic',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837368024-5-0.jpg',
],
},
{
content:
'Copa América champions! For my country, for my people 🇦🇷🏆 #CopaAmerica #VamosArgentina',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837383609-copa.jpg',
],
},
{
content:
'Dreams do come true! World Cup winner! This is for all of Argentina 🌟🏆🇦🇷 #WorldCup2022 #GOAT #Argentina',
images: [
'https://yapperdev.blob.core.windows.net/profile-images/test-team-1764837398822-world%20cup2.jpg',
],
},
],
},
{
user_index: 5, // Afsha
tweets: [
{ content: 'يلا يا أهلي! ❤️🦅 #الاهلي', images: [] },
{ content: 'شرف ليا إني ألعب مع القلعة الحمرا 🏰❤️ #Ahly', images: [] },
{ content: 'القاضية ممكن 85:45', images: [] },
{
content: `
تماس للمعلول، كورة لـ على، ٨٦ دقيقة، الاكسترا تايم قريب ولكن احذروا الـK.O احذروا الـK.O، ترجع الكورة بالراس، القاضية ممكن، القاضية ممكن.. شاط الكورة وجوووووووووووووول والقاضية ممممممكن، القاضية مممممممكن، القاضية ممممممكن.. سجلها ولد معلول، سجلها علي معلول.. ملك الحلول
Oui يا علي Oui , Oui يا علي Oui , Oui يا علي Oui , Oui يا علي Oui
علي Oui , معلول Oui .. والكورة Yes ، الكورة Sí.
هل هو معلول أم لا؟
أي قذيفة جاءت؟ أي قذيفة جاءت يا باتشيكو؟
التاسعة يا الأهلي، التاسعة يا الأهلي، لا هو 19، هو قفشة، هو ولدنا قفشة..
هو الولد قفشة، هو قفشة، هو قفشة..
هو قفشة ما لها من عبسة، حط الكورة ثاني ويا لها من صرخة..
كي جولاثو يا قفشة، كي جولاثو يا قفشة..
`,
images: [],
},
{
content: 'مباراة القمة قدام و إن شاء الله هنكسب 🔴🦅 #ديربي',
images: [],
},
],
},
{
user_index: 6, // 7amada
tweets: [
{ content: 'انا سبونج بوب', images: [] },
{ content: 'بوب بوب', images: [] },
{ content: 'انا سبونج بوب بوب بوب', images: [] },
{ content: 'انا سبونج بوب', images: [] },
{ content: 'اصفر لمونييييييييييييييي', images: [] },
],
},
{
user_index: 7, // 3m 3abdo
tweets: [
{ content: 'فول و طعمية الصبح أحسن حاجة 😋🥙 #فول', images: [] },
{ content: 'عربية الفول النهاردة كانت زحمة جداً 🚶♂️', images: [] },
{ content: 'الفول بالزبدة و الطماطم 👌 #فطار', images: [] },
{ content: 'مفيش أحسن من ريحة الفول الصبح ☀️🥙', images: [] },
{ content: 'فول و عيش سخن = سعادة 😊🍞', images: [] },
],
},
{
user_index: 8, // Liverpool FC
tweets: [
{
content: "You'll Never Walk Alone 🔴 #LFC #YNWA",
images: [],
},
{ content: 'This is Anfield. 🏟️❤️ #Liverpool', images: [] },
{ content: 'Match day at Anfield! Come on you Reds! 🔴⚽ #LFC', images: [] },
{ content: 'We are Liverpool, this means more. ❤️ #YNWA', images: [] },
{ content: "The Kop is ready! Let's go Reds! 🔴🎵 #Anfield", images: [] },
],
},
{
user_index: 9,
tweets: [
{ content: 'الباك تيم طرش الطرش', images: [] },
{
content: 'تحية من الباك لاي راجل جدع هيكبس عالتويتة دي 👍',
images: [],
},
{ content: 'تبا ل ايلون ماسك', images: [] },
{ content: 'و حبيبنا مييين Yapper 😍😍', images: [] },
{ content: 'يارب السيرفر يشتغل قدام م خالد', images: [] },
],
},
];
// Replies data structure for main 3 users
static readonly TEST_REPLIES = [
{
replier_index: 0,
original_user_index: 1,
original_tweet_index: 0,
reply: 'Awesome work on the frontend! The UI looks amazing! 🎉',
},
{
replier_index: 1,
original_user_index: 0,
original_tweet_index: 0,
reply: 'Thanks! Backend APIs are super fast, great job! 💪',
},
{
replier_index: 2,
original_user_index: 0,
original_tweet_index: 1,
reply: 'Tested the auth system thoroughly, works perfectly! ✅',
},
{
replier_index: 0,
original_user_index: 2,
original_tweet_index: 0,
reply: 'Your testing found some critical bugs, really appreciate it! 🙏',
},
{
replier_index: 1,
original_user_index: 2,
original_tweet_index: 3,
reply: 'Those bug reports were so detailed and helpful! 📝',
},
{
replier_index: 2,
original_user_index: 1,
original_tweet_index: 2,
reply: 'CSS Grid implementation is flawless on all browsers! 🎯',
},
{
replier_index: 0,
original_user_index: 1,
original_tweet_index: 4,
reply: 'Redux setup is clean and maintainable! 👌',
},
{
replier_index: 1,
original_user_index: 0,
original_tweet_index: 5,
reply: 'WebSocket performance is incredible! 🚀',
},
{
replier_index: 2,
original_user_index: 0,
original_tweet_index: 11,
reply: 'Redis caching test results are impressive! 📊',
},
{
replier_index: 0,
original_user_index: 2,
original_tweet_index: 6,
reply: 'All regression tests passed, great work! ✨',
},
{
replier_index: 1,
original_user_index: 2,
original_tweet_index: 8,
reply: 'Postman collections make API testing so easy! 🎯',
},
{
replier_index: 2,
original_user_index: 1,
original_tweet_index: 9,
reply: 'Accessibility audit passed with flying colors! ♿',
},
{
replier_index: 0,
original_user_index: 1,
original_tweet_index: 6,
reply: 'The testing coverage for these animations is super important! 👍',
},
{
replier_index: 1,
original_user_index: 0,
original_tweet_index: 8,
reply: 'Clean code review comments are always appreciated! 😊',
},
{
replier_index: 2,
original_user_index: 1,
original_tweet_index: 12,
reply: 'Figma to code conversion was spot on! 🎨',
},
{
replier_index: 0,
original_user_index: 2,
original_tweet_index: 12,
reply: 'Mobile testing on different devices is crucial, thanks! 📱',
},
{
replier_index: 1,
original_user_index: 0,
original_tweet_index: 12,
reply: 'Pair programming sessions are always productive with you! 🤝',
},
{
replier_index: 2,
original_user_index: 0,
original_tweet_index: 16,
reply: 'CI/CD integration testing went smoothly! 🔄',
},
{
replier_index: 0,
original_user_index: 1,
original_tweet_index: 11,
reply: 'TypeScript really does make React better! 💯',
},
{
replier_index: 1,
original_user_index: 2,
original_tweet_index: 15,
reply: 'Edge cases are where the real bugs hide! 🔍',
},
{
replier_index: 2,
original_user_index: 1,
original_tweet_index: 17,
reply: 'PWA features tested across all platforms! ✅',
},
{
replier_index: 0,
original_user_index: 2,
original_tweet_index: 17,
reply: 'Quality metrics are looking fantastic this sprint! 📈',
},
{
replier_index: 1,
original_user_index: 0,
original_tweet_index: 17,
reply: 'Microservices communication is seamless now! 🎯',
},
{
replier_index: 2,
original_user_index: 1,
original_tweet_index: 15,
reply: 'Web performance audit shows great improvements! 🚀',
},
];
// Likes data structure for main 3 users liking each other's tweets
static readonly TEST_LIKES = [
{ liker_index: 0, liked_user_index: 1, tweet_index: 0 },
{ liker_index: 0, liked_user_index: 1, tweet_index: 2 },
{ liker_index: 0, liked_user_index: 1, tweet_index: 4 },
{ liker_index: 0, liked_user_index: 2, tweet_index: 0 },
{ liker_index: 0, liked_user_index: 2, tweet_index: 3 },
{ liker_index: 1, liked_user_index: 0, tweet_index: 0 },
{ liker_index: 1, liked_user_index: 0, tweet_index: 1 },
{ liker_index: 1, liked_user_index: 0, tweet_index: 5 },
{ liker_index: 1, liked_user_index: 2, tweet_index: 6 },
{ liker_index: 1, liked_user_index: 2, tweet_index: 8 },
{ liker_index: 2, liked_user_index: 0, tweet_index: 2 },
{ liker_index: 2, liked_user_index: 0, tweet_index: 11 },
{ liker_index: 2, liked_user_index: 1, tweet_index: 3 },
{ liker_index: 2, liked_user_index: 1, tweet_index: 9 },
{ liker_index: 0, liked_user_index: 1, tweet_index: 6 },
{ liker_index: 0, liked_user_index: 1, tweet_index: 8 },
{ liker_index: 0, liked_user_index: 1, tweet_index: 11 },
{ liker_index: 0, liked_user_index: 1, tweet_index: 12 },
{ liker_index: 0, liked_user_index: 2, tweet_index: 6 },
{ liker_index: 0, liked_user_index: 2, tweet_index: 9 },
{ liker_index: 0, liked_user_index: 2, tweet_index: 12 },
{ liker_index: 0, liked_user_index: 2, tweet_index: 15 },
{ liker_index: 1, liked_user_index: 0, tweet_index: 8 },
{ liker_index: 1, liked_user_index: 0, tweet_index: 9 },
{ liker_index: 1, liked_user_index: 0, tweet_index: 12 },
{ liker_index: 1, liked_user_index: 0, tweet_index: 16 },
{ liker_index: 1, liked_user_index: 0, tweet_index: 17 },
{ liker_index: 1, liked_user_index: 2, tweet_index: 2 },
{ liker_index: 1, liked_user_index: 2, tweet_index: 12 },
{ liker_index: 1, liked_user_index: 2, tweet_index: 15 },
{ liker_index: 1, liked_user_index: 2, tweet_index: 17 },
{ liker_index: 2, liked_user_index: 0, tweet_index: 6 },
{ liker_index: 2, liked_user_index: 0, tweet_index: 8 },
{ liker_index: 2, liked_user_index: 0, tweet_index: 13 },
{ liker_index: 2, liked_user_index: 0, tweet_index: 16 },
{ liker_index: 2, liked_user_index: 0, tweet_index: 18 },
{ liker_index: 2, liked_user_index: 1, tweet_index: 6 },
{ liker_index: 2, liked_user_index: 1, tweet_index: 11 },
{ liker_index: 2, liked_user_index: 1, tweet_index: 15 },
{ liker_index: 2, liked_user_index: 1, tweet_index: 17 },
{ liker_index: 2, liked_user_index: 1, tweet_index: 18 },
];
}
// ------------------------- Fake Data for Testing Trends ------------------------- //
export class TrendDataConstants {
static readonly TREND_BOT = {
email: 'trend@yapper.com',
password: 'Test#242',
name: 'Trend Bot',
username: 'trendbot_',
birth_date: new Date('2004-09-22'),
language: 'en' as const,
};
static readonly SPORTS_TRENDS = [
'#football',
'#soccer',
'#messi',
'#ronaldo',
'#cr7',
'#fifa',
'#worldcup',
'#worldcup2026',
'#premierleague',
'#laliga',
'#seriea',
'#bundesliga',
'#ucl',
'#championsleague',
'#mbappe',
'#neymar',
'#haaland',
'#salah',
'#manutd',
'#mancity',
'#liverpool',
'#realmadrid',
'#barcelona',
'#bayern',
'#psg',
'#juventus',
'#alhilal',
'#alnassr',
'#goat',
'#ballondor',
'#leomessi',
'#cristiano',
'#argentina',
'#portugal',
'#brazil',
'#england',
'#spain',
'#germany',
'#elclasico',
'#derby',
'#goals',
'#highlights',
'#matchday',
'#hattrick',
'#skills',
'#freekick',
'#var',
'#ynwa',
'#halamadrid',
'#forcabarca',
'#miasanmia',
'#forzajuve',
'#topbins',
'#rabona',
'#bicyclekick',
'#panenka',
'#tikitaka',
'#ultras',
'#gameday',
'#comeback',
'#transfernews',
'#transferwindow',
'#epl',
'#sports',
'#euro2024',
'#copaamerica',
'#afcon',
'#كرة_القدم',
'#كورة',
'#ميسي',
'#رونالدو',
'#كريستيانو',
'#فيفا',
'#كأس_العالم',
'#الدوري_الإنجليزي',
'#الليغا',
'#دوري_أبطال_أوروبا',
'#مبابي',
'#نيمار',
'#هالاند',
'#محمد_صلاح',
'#مانشستر_يونايتد',
'#مانشستر_سيتي',
'#ليفربول',
'#ريال_مدريد',
'#برشلونة',
'#الهلال',
'#النصر',
'#الكرة_الذهبية',
'#أهداف',
'#ملخص_المباراة',
'#الكلاسيكو',
'#هاتريك',
'#التراس',
'#يوم_المباراة',
'#فار',
'#مهارات',
];
static readonly NEWS_TRENDS = [
'#news',
'#breaking',
'#breakingnews',
'#latestnews',
'#worldnews',
'#politics',
'#trending',
'#viral',
'#update',
'#live',
'#cnn',
'#aljazeera',
'#skynews',
'#foxnews',
'#reuters',
'#ap',
'#bloomberg',
'#cnbc',
'#economy',
'#war',
'#ukraine',
'#russia',
'#israel',
'#gaza',
'#palestine',
'#lebanon',
'#syria',
'#iran',
'#usa',
'#america',
'#election',
'#trump',
'#b ',
'#biden',
'#bitcoin',
'#crypto',
'#ai',
'#technology',
'#iphone',
'#tesla',
'#elonmusk',
'#climatechange',
'#weather',
'#earthquake',
'#flood',
'#protest',
'#riot',
'#terrorism',
'#attack',
'#shooting',
'#crime',
'#justice',
'#court',
'#celebrity',
'#hollywood',
'#royalfamily',
'#meghanmarkle',
'#taylorswift',
'#health',
'#covid',
'#vaccine',
'#pandemic',
'#science',
'#space',
'#nasa',
'#mars',
'#business',
'#stocks',
'#finance',
'#أخبار',
'#عاجل',
'#آخر_الأخبار',
'#الأخبار',
'#سياسة',
'#ترند',
'#فيروس_كورونا',
'#الحرب',
'#أوكرانيا',
'#روسيا',
'#إسرائيل',
'#غزة',
'#فلسطين',
'#لبنان',
'#إيران',
'#أمريكا',
'#ترامب',
'#بايدن',
'#بيتكوين',
'#العملات_الرقمية',
'#الذكاء_الاصطناعي',
'#تكنولوجيا',
'#تغير_المناخ',
'#زلزال',
'#احتجاجات',
'#اقتصاد',
'#بورصة',
'#جريمة',
'#محكمة',
'#مشاهير',
];
static readonly ENTERTAINMENT_TRENDS = [
// 70 English – Entertainment (Music, Movies, Series, Celebs)
'#entertainment',
'#music',
'#movies',
'#netflix',
'#hollywood',
'#bollywood',
'#kpop',
'#bts',
'#blackpink',
'#taylorswift',
'#billieeilish',
'#arianagrande',
'#badbunny',
'#theweeknd',
'#drake',
'#beyonce',
'#rihanna',
'#eminem',
'#oscars',
'#grammys',
'#goldenglobes',
'#cannes',
'#metgala',
'#marvel',
'#mcu',
'#dc',
'#strangerthings',
'#thelastofus',
'#houseofthedragon',
'#wednesday',
'#squidgame',
'#barbie',
'#oppenheimer',
'#dune',
'#avatar',
'#johnwick',
'#missionimpossible',
'#topgun',
'#celebrity',
'#redcarpet',
'#trailer',
'#premiere',
'#boxoffice',
'#concert',
'#tour',
'#album',
'#newmusic',
'#spotify',
'#applemusic',
'#tiktok',
'#viral',
'#dance',
'#remix',
'#liveperformance',
'#awardshow',
'#selenagomez',
'#justinbieber',
'#zendaya',
'#tomholland',
'#timothee',
'#dualipa',
'#oliviarodrigo',
'#harrypotter',
'#starwars',
'#onepiece',
'#joker',