-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1423 lines (1336 loc) Β· 76.6 KB
/
Copy pathindex.html
File metadata and controls
1423 lines (1336 loc) Β· 76.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Open Banking β Data Sharing & Consent | Meridian Bank</title>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--navy: #0B2447;
--navy-mid: #19376D;
--blue: #0052CC;
--blue-lt: #E6F0FF;
--teal: #0077A8;
--green: #1A7A4A;
--green-lt: #E6F7EE;
--red: #C0392B;
--red-lt: #FDECEA;
--amber: #B7690A;
--amber-lt: #FFF3E0;
--purple: #5A1A8B;
--purple-lt: #F0E8FF;
--gray-50: #F8F9FB;
--gray-100: #F0F2F5;
--gray-200: #E2E6EA;
--gray-400: #A0AABA;
--gray-600: #5C6878;
--gray-800: #2D3748;
--white: #FFFFFF;
--radius: 10px;
--shadow-sm: 0 1px 3px rgba(0,0,0,.08);
--shadow-md: 0 4px 16px rgba(0,0,0,.10);
--shadow-lg: 0 8px 32px rgba(0,0,0,.14);
--font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
body { font-family: var(--font); background: var(--gray-50); color: var(--gray-800); min-height: 100vh; }
/* ββ Top Nav ββ */
.top-nav {
background: var(--navy); padding: 0 32px;
display: flex; align-items: center; justify-content: space-between;
height: 64px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
position: sticky; top: 0; z-index: 200;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon {
width: 36px; height: 36px; background: linear-gradient(135deg,#0052CC,#00A3E0);
border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 20px; height: 20px; fill: white; }
.brand-name { color: white; font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.brand-name span { color: #60AEFF; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { color: #A8C4E8; font-size: 13px; text-decoration: none; transition: color .2s; }
.nav-link:hover { color: white; }
.nav-link.active-nav { color: white; border-bottom: 2px solid #60AEFF; padding-bottom: 2px; }
.nav-avatar {
width: 36px; height: 36px; border-radius: 50%;
background: linear-gradient(135deg,#0052CC,#0077A8);
display: flex; align-items: center; justify-content: center;
color: white; font-size: 13px; font-weight: 600; cursor: pointer;
border: 2px solid rgba(255,255,255,.2);
}
/* ββ Page Shell ββ */
.page-wrapper { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
.page-header { margin-bottom: 28px; }
.breadcrumb { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-header h1 { font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -.4px; }
.page-header p { margin-top: 6px; font-size: 14px; color: var(--gray-600); max-width: 640px; line-height: 1.6; }
.compliance-banner {
background: var(--blue-lt); border: 1px solid #B3D1FF; border-radius: var(--radius);
padding: 12px 18px; display: flex; align-items: flex-start; gap: 12px;
margin-bottom: 24px; font-size: 13px; color: #1A3A6B; line-height: 1.55;
}
.compliance-banner svg { flex-shrink: 0; margin-top: 1px; }
/* ββ Stats Bar ββ */
.stats-bar { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-bottom: 28px; }
.stat-card {
background: var(--white); border: 1px solid var(--gray-200);
border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--gray-400); margin-bottom: 5px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -.5px; }
.stat-sub { font-size: 11px; color: var(--gray-600); margin-top: 2px; }
.stat-card.green .stat-value { color: var(--green); }
.stat-card.red .stat-value { color: var(--red); }
.stat-card.amber .stat-value { color: var(--amber); }
.stat-card.purple .stat-value { color: var(--purple); }
/* ββ Tabs ββ */
.tab-bar { display: flex; gap: 2px; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; }
.tab-btn {
padding: 10px 22px; font-size: 14px; font-weight: 600;
background: none; border: none; cursor: pointer; color: var(--gray-600);
border-bottom: 3px solid transparent; margin-bottom: -2px;
transition: color .15s, border-color .15s;
display: flex; align-items: center; gap: 7px; border-radius: 4px 4px 0 0;
}
.tab-btn:hover { color: var(--blue); background: var(--blue-lt); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-badge {
background: var(--blue); color: white; font-size: 11px; font-weight: 700;
padding: 1px 7px; border-radius: 20px; min-width: 20px; text-align: center;
}
.tab-badge.gray { background: var(--gray-200); color: var(--gray-600); }
.tab-badge.amber { background: var(--amber); color: white; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
/* ββ Buttons ββ */
.btn {
display: inline-flex; align-items: center; gap: 6px;
padding: 0 16px; height: 38px; border-radius: 8px;
font-size: 13px; font-weight: 600; cursor: pointer;
border: none; transition: all .15s; white-space: nowrap;
}
.btn-sm { height: 32px; padding: 0 13px; font-size: 12px; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #003FA3; }
.btn-primary:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: #145C35; }
.btn-danger { background: var(--red-lt); color: var(--red); border: 1px solid #F5C0BB; }
.btn-danger:hover { background: #F9D5D2; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
.btn-outline { background: white; color: var(--gray-600); border: 1px solid var(--gray-200); }
.btn-outline:hover { background: var(--gray-100); }
.btn-ghost { background: none; border: none; color: var(--gray-600); padding: 0 8px; }
.btn-ghost:hover { color: var(--blue); }
/* ββ Toolbar / Filters ββ */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; }
.search-box { position: relative; min-width: 230px; }
.search-box input {
width: 100%; height: 38px; padding: 0 12px 0 36px;
border: 1px solid var(--gray-200); border-radius: 8px;
font-size: 13px; color: var(--gray-800); background: var(--white);
outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,82,204,.1); }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.filter-select {
height: 38px; padding: 0 32px 0 12px;
border: 1px solid var(--gray-200); border-radius: 8px;
font-size: 13px; color: var(--gray-800); background: var(--white);
appearance: none; outline: none; cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6878' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: right 10px center;
transition: border-color .2s;
}
.filter-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,82,204,.1); }
.date-input {
height: 38px; padding: 0 12px;
border: 1px solid var(--gray-200); border-radius: 8px;
font-size: 13px; color: var(--gray-800); background: var(--white);
outline: none; cursor: pointer;
transition: border-color .2s;
}
.date-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,82,204,.1); }
/* ββ Bulk Bar ββ */
.bulk-bar {
background: var(--navy-mid); color: white; border-radius: var(--radius);
padding: 12px 18px; display: none; align-items: center; gap: 16px;
margin-bottom: 16px; font-size: 13px; font-weight: 600;
}
.bulk-bar.visible { display: flex; }
.bulk-bar-actions { margin-left: auto; display: flex; gap: 10px; }
/* ββ App Cards ββ */
.apps-grid { display: flex; flex-direction: column; gap: 12px; }
.app-card {
background: var(--white); border: 1px solid var(--gray-200);
border-radius: var(--radius); padding: 20px 22px;
display: flex; align-items: center; gap: 18px;
box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s;
}
.app-card:hover { box-shadow: var(--shadow-md); border-color: #C5D5F0; }
.app-card.selected { border-color: var(--blue); background: #F5F9FF; }
.app-card.revoked { opacity: .6; }
.app-checkbox { width: 18px; height: 18px; cursor: pointer; accent-color: var(--blue); flex-shrink: 0; }
.app-icon {
width: 52px; height: 52px; border-radius: 12px;
display: flex; align-items: center; justify-content: center;
font-size: 24px; flex-shrink: 0; border: 1px solid var(--gray-200); background: var(--white);
}
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 1px; }
.app-provider { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.app-perms { display: flex; gap: 6px; flex-wrap: wrap; }
.perm-badge {
font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
display: inline-flex; align-items: center; gap: 4px;
}
.perm-read { background: #E6F0FF; color: #1A4DA0; }
.perm-write { background: #FFF3E0; color: #8B5000; }
.perm-tx { background: #FCE8F3; color: #7B1A54; }
.perm-profile { background: var(--green-lt); color: #145C35; }
.perm-invest { background: var(--purple-lt); color: var(--purple); }
.app-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; min-width: 210px; }
.app-dates { text-align: right; }
.app-date-item { font-size: 11px; color: var(--gray-400); line-height: 1.75; }
.app-date-item span { color: var(--gray-600); font-weight: 600; }
.app-status {
display: inline-flex; align-items: center; gap: 5px;
font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
text-transform: uppercase; letter-spacing: .4px;
}
.status-active { background: var(--green-lt); color: var(--green); }
.status-revoked { background: var(--gray-100); color: var(--gray-400); }
.status-pending { background: var(--amber-lt); color: var(--amber); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.app-actions { display: flex; gap: 8px; align-items: center; }
.btn-revoke {
height: 32px; padding: 0 14px;
background: var(--red-lt); color: var(--red);
border: 1px solid #F5C0BB; border-radius: 6px;
font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.btn-revoke:hover { background: #F9D5D2; }
.btn-reauth {
height: 32px; padding: 0 14px;
background: var(--blue-lt); color: var(--blue);
border: 1px solid #B3D1FF; border-radius: 6px;
font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.btn-reauth:hover { background: #D4E8FF; }
.btn-card-disabled {
height: 32px; padding: 0 14px;
background: var(--gray-100); color: var(--gray-400);
border: 1px solid var(--gray-200); border-radius: 6px;
font-size: 12px; font-weight: 600; cursor: not-allowed;
}
.btn-details {
height: 32px; width: 32px; padding: 0;
background: var(--gray-100); color: var(--gray-600);
border: 1px solid var(--gray-200); border-radius: 6px;
font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
transition: all .15s;
}
.btn-details:hover { background: var(--blue-lt); color: var(--blue); border-color: #B3D1FF; }
/* ββ Pending Requests ββ */
.pending-grid { display: flex; flex-direction: column; gap: 14px; }
.pending-card {
background: var(--white); border: 1px solid #F5D79E;
border-left: 4px solid var(--amber);
border-radius: var(--radius); padding: 20px 22px;
display: flex; align-items: flex-start; gap: 18px;
box-shadow: var(--shadow-sm);
}
.pending-card .app-icon { border-color: #F5D79E; }
.pending-body { flex: 1; min-width: 0; }
.pending-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.pending-provider { font-size: 12px; color: var(--gray-400); margin-bottom: 10px; }
.pending-purpose {
font-size: 13px; color: var(--gray-600); line-height: 1.55;
background: var(--gray-50); border-radius: 6px; padding: 8px 12px;
margin-bottom: 12px;
}
.pending-perms { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pending-accounts { font-size: 12px; color: var(--gray-600); }
.pending-accounts strong { color: var(--gray-800); }
.pending-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; min-width: 180px; }
.pending-requested { font-size: 11px; color: var(--gray-400); text-align: right; line-height: 1.7; }
.pending-requested span { color: var(--amber); font-weight: 600; }
.pending-actions { display: flex; gap: 8px; }
.pending-expires {
font-size: 11px; color: var(--gray-400); text-align: right;
background: var(--amber-lt); padding: 4px 10px; border-radius: 6px;
color: #8B5000; font-weight: 600;
}
/* ββ Activity Log ββ */
.log-toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.log-toolbar-right { margin-left: auto; display: flex; gap: 10px; }
.date-range-label { font-size: 12px; color: var(--gray-400); align-self: center; white-space: nowrap; }
.log-table-wrap {
background: var(--white); border: 1px solid var(--gray-200);
border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--gray-50); border-bottom: 2px solid var(--gray-200); }
th {
padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700;
text-transform: uppercase; letter-spacing: .6px; color: var(--gray-400); white-space: nowrap;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--blue); }
tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }
td { padding: 13px 16px; font-size: 13px; color: var(--gray-800); vertical-align: middle; }
.log-app { display: flex; align-items: center; gap: 10px; }
.log-app-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 15px; border: 1px solid var(--gray-200); background: var(--white); }
.log-app-name { font-weight: 600; font-size: 13px; }
.log-action-badge {
display: inline-flex; align-items: center; gap: 4px;
font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
text-transform: uppercase; letter-spacing: .3px;
}
.action-read { background: var(--blue-lt); color: #1A4DA0; }
.action-tx { background: #FCE8F3; color: #7B1A54; }
.action-profile { background: var(--green-lt); color: #145C35; }
.action-auth { background: var(--amber-lt); color: var(--amber); }
.log-data-scope { font-size: 12px; color: var(--gray-600); }
.log-time { font-size: 12px; color: var(--gray-600); }
.log-time-date { font-weight: 600; color: var(--gray-800); }
.log-ip { font-size: 11px; color: var(--gray-400); font-family: 'Courier New', monospace; }
/* ββ Pagination ββ */
.pagination {
display: flex; align-items: center; justify-content: space-between;
padding: 14px 18px; border-top: 1px solid var(--gray-100);
font-size: 13px; color: var(--gray-600);
}
.pagination-pages { display: flex; align-items: center; gap: 6px; }
.page-btn {
width: 32px; height: 32px; border-radius: 6px;
display: flex; align-items: center; justify-content: center;
border: 1px solid var(--gray-200); background: var(--white);
font-size: 13px; font-weight: 600; cursor: pointer; color: var(--gray-600);
transition: all .15s;
}
.page-btn:hover:not(:disabled) { background: var(--blue-lt); color: var(--blue); border-color: #B3D1FF; }
.page-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
/* ββ Notification Preferences ββ */
.notif-section { margin-top: 36px; }
.section-heading {
font-size: 16px; font-weight: 700; color: var(--navy);
margin-bottom: 4px; padding-bottom: 12px;
border-bottom: 1px solid var(--gray-200);
}
.section-sub { font-size: 13px; color: var(--gray-600); margin-bottom: 18px; }
.notif-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.notif-card {
background: var(--white); border: 1px solid var(--gray-200);
border-radius: var(--radius); padding: 16px 18px;
display: flex; align-items: flex-start; gap: 14px;
box-shadow: var(--shadow-sm);
}
.notif-icon {
width: 38px; height: 38px; border-radius: 9px;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0; font-size: 18px;
}
.notif-info { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.notif-desc { font-size: 12px; color: var(--gray-600); line-height: 1.5; }
.toggle-wrap { flex-shrink: 0; margin-top: 2px; }
.toggle {
position: relative; width: 42px; height: 24px; cursor: pointer;
display: inline-block;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
position: absolute; inset: 0;
background: var(--gray-200); border-radius: 24px;
transition: background .25s;
}
.slider::before {
content:''; position: absolute;
width: 18px; height: 18px; border-radius: 50%;
background: white; left: 3px; top: 3px;
transition: transform .25s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .slider { background: var(--blue); }
.toggle input:checked + .slider::before { transform: translateX(18px); }
/* ββ Empty State ββ */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-state svg { color: var(--gray-200); margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; color: var(--gray-600); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--gray-400); }
/* ββ Modals ββ */
.modal-overlay {
position: fixed; inset: 0; background: rgba(11,36,71,.55);
display: none; align-items: center; justify-content: center;
z-index: 999; padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
background: var(--white); border-radius: 14px;
width: 100%; max-width: 520px;
box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-lg { max-width: 640px; }
.modal-header {
padding: 22px 26px 18px;
border-bottom: 1px solid var(--gray-100);
display: flex; align-items: center; gap: 14px;
}
.modal-header-icon {
width: 42px; height: 42px; border-radius: 10px;
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-red { background: var(--red-lt); }
.icon-blue { background: var(--blue-lt); }
.icon-green { background: var(--green-lt); }
.icon-amber { background: var(--amber-lt); }
.modal-header h2 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.modal-header p { font-size: 13px; color: var(--gray-600); }
.modal-header-close {
margin-left: auto; background: none; border: none; cursor: pointer;
color: var(--gray-400); font-size: 20px; padding: 4px; border-radius: 6px;
transition: color .15s, background .15s;
}
.modal-header-close:hover { color: var(--gray-800); background: var(--gray-100); }
.modal-body { padding: 20px 26px; max-height: 70vh; overflow-y: auto; }
.modal-body p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.warn-box {
background: var(--amber-lt); border: 1px solid #F5D79E;
border-radius: 8px; padding: 12px 14px; margin-top: 16px;
font-size: 13px; color: #6B4000; line-height: 1.6;
display: flex; gap: 10px;
}
.warn-box svg { flex-shrink: 0; margin-top: 1px; }
.modal-footer {
padding: 16px 26px 22px; display: flex; gap: 10px; justify-content: flex-end;
border-top: 1px solid var(--gray-100);
}
/* Detail modal specifics */
.detail-app-hero {
display: flex; align-items: center; gap: 16px;
padding: 16px 0 20px;
border-bottom: 1px solid var(--gray-100); margin-bottom: 20px;
}
.detail-app-icon { width: 60px; height: 60px; border-radius: 14px; font-size: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); background: var(--white); }
.detail-app-name { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.detail-app-provider { font-size: 13px; color: var(--gray-400); margin-bottom: 8px; }
.detail-consent-id { font-size: 11px; color: var(--gray-400); font-family: 'Courier New', monospace; background: var(--gray-100); padding: 3px 8px; border-radius: 5px; display: inline-block; }
.detail-section { margin-bottom: 20px; }
.detail-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gray-400); margin-bottom: 10px; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-row-label { color: var(--gray-600); }
.detail-row-value { font-weight: 600; color: var(--gray-800); text-align: right; }
.detail-row-value.green { color: var(--green); }
.detail-row-value.red { color: var(--red); }
.detail-row-value.amber { color: var(--amber); }
.perm-detail-list { display: flex; flex-direction: column; gap: 8px; }
.perm-detail-row {
display: flex; align-items: flex-start; gap: 12px;
padding: 10px 12px; background: var(--gray-50);
border-radius: 8px; border: 1px solid var(--gray-100);
}
.perm-detail-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.perm-detail-body { flex: 1; }
.perm-detail-name { font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 2px; }
.perm-detail-desc { font-size: 12px; color: var(--gray-600); line-height: 1.45; }
.perm-detail-toggle { margin-left: auto; align-self: center; }
.accounts-list { display: flex; flex-direction: column; gap: 6px; }
.account-item {
display: flex; align-items: center; gap: 10px;
padding: 10px 12px; background: var(--gray-50);
border-radius: 8px; border: 1px solid var(--gray-100);
font-size: 13px; font-weight: 600; color: var(--gray-800);
}
.account-item svg { color: var(--blue); flex-shrink: 0; }
/* ββ Toast ββ */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
background: var(--navy); color: white;
padding: 13px 18px; border-radius: 10px;
font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg);
display: flex; align-items: center; gap: 10px;
animation: slideUp .3s ease; max-width: 340px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.amber { background: var(--amber); }
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
/* ββ Responsive ββ */
@media (max-width: 1000px) { .stats-bar { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 800px) {
.stats-bar { grid-template-columns: repeat(2,1fr); }
.app-meta { min-width: 0; }
.notif-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
.top-nav { padding: 0 16px; }
.page-wrapper { padding: 20px 16px 48px; }
.stats-bar { grid-template-columns: repeat(2,1fr); gap: 10px; }
.app-card { flex-wrap: wrap; }
.app-meta { align-items: flex-start; }
.pending-card { flex-wrap: wrap; }
.pending-meta { align-items: flex-start; min-width: 0; }
.nav-right .nav-link { display: none; }
}
</style>
</head>
<body>
<!-- ββ TOP NAV ββ -->
<nav class="top-nav">
<a class="brand" href="#">
<div class="brand-icon">
<svg viewBox="0 0 24 24"><path d="M2 9.5L12 3l10 6.5V21H2V9.5z"/><rect x="9" y="14" width="6" height="7" fill="rgba(255,255,255,.4)"/></svg>
</div>
<span class="brand-name">Meridian <span>Bank</span></span>
</a>
<div class="nav-right">
<a class="nav-link" href="#">Dashboard</a>
<a class="nav-link" href="#">Accounts</a>
<a class="nav-link" href="#">Transfers</a>
<a class="nav-link active-nav" href="#">Data Sharing</a>
<a class="nav-link" href="#">Support</a>
<div class="nav-avatar" title="James Davidson">JD</div>
</div>
</nav>
<!-- ββ PAGE ββ -->
<div class="page-wrapper">
<!-- Header -->
<div class="page-header">
<div class="breadcrumb"><a href="#">Home</a> › <a href="#">Settings</a> › Data Sharing & Consent</div>
<h1>Data Sharing & Consent</h1>
<p>Manage which third-party applications can access your Meridian Bank accounts. You control your data β authorize, review, and revoke access at any time.</p>
</div>
<!-- Compliance Banner -->
<div class="compliance-banner">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#1A4DA0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
<span>Your data sharing rights are protected under the <strong>Consumer Financial Protection Bureau (CFPB)</strong> Open Banking Rule and <strong>Section 1033</strong> of the Dodd-Frank Act. You may authorize or revoke third-party access to your financial data at any time without affecting your account relationship. Meridian Bank is FDIC-insured and will never share your data without explicit consent.</span>
</div>
<!-- Stats -->
<div class="stats-bar">
<div class="stat-card">
<div class="stat-label">Connected Apps</div>
<div class="stat-value" id="stat-total">6</div>
<div class="stat-sub">all time</div>
</div>
<div class="stat-card green">
<div class="stat-label">Active Consents</div>
<div class="stat-value" id="stat-active">5</div>
<div class="stat-sub">currently authorized</div>
</div>
<div class="stat-card red">
<div class="stat-label">Revoked</div>
<div class="stat-value" id="stat-revoked">1</div>
<div class="stat-sub">access removed</div>
</div>
<div class="stat-card amber">
<div class="stat-label">Pending Requests</div>
<div class="stat-value" id="stat-pending">3</div>
<div class="stat-sub">awaiting your approval</div>
</div>
<div class="stat-card purple">
<div class="stat-label">Access Events</div>
<div class="stat-value">48</div>
<div class="stat-sub">last 30 days</div>
</div>
</div>
<!-- Tabs -->
<div class="tab-bar">
<button class="tab-btn active" onclick="switchTab('consents',this)">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"/></svg>
Connected Apps <span class="tab-badge" id="badge-apps">6</span>
</button>
<button class="tab-btn" onclick="switchTab('pending',this)">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
Pending Requests <span class="tab-badge amber" id="badge-pending">3</span>
</button>
<button class="tab-btn" onclick="switchTab('activity',this)">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
Activity Log <span class="tab-badge gray" id="badge-log">15</span>
</button>
<button class="tab-btn" onclick="switchTab('settings',this)">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-4 0v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83-2.83l.06-.06A1.65 1.65 0 004.68 15a1.65 1.65 0 00-1.51-1H3a2 2 0 010-4h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 012.83-2.83l.06.06A1.65 1.65 0 009 4.68a1.65 1.65 0 001-1.51V3a2 2 0 014 0v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 2.83l-.06.06A1.65 1.65 0 0019.4 9a1.65 1.65 0 001.51 1H21a2 2 0 010 4h-.09a1.65 1.65 0 00-1.51 1z"/></svg>
Notification Preferences
</button>
</div>
<!-- ββ CONNECTED APPS TAB ββ -->
<div class="tab-panel active" id="tab-consents">
<div class="toolbar">
<div class="toolbar-left">
<div class="search-box">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
<input type="text" placeholder="Search appsβ¦" oninput="filterApps()" id="app-search"/>
</div>
<select class="filter-select" onchange="filterApps()" id="status-filter">
<option value="">All Status</option>
<option value="active">Active</option>
<option value="revoked">Revoked</option>
</select>
<select class="filter-select" onchange="filterApps()" id="perm-filter">
<option value="">All Permissions</option>
<option value="read">Account Read</option>
<option value="transactions">Transactions</option>
<option value="profile">Profile</option>
<option value="investments">Investments</option>
</select>
</div>
<button class="btn btn-danger" onclick="openRevokeModal('bulk')">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
Revoke Selected
</button>
</div>
<div class="bulk-bar" id="bulk-bar">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 11 12 14 22 4"/><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"/></svg>
<span id="bulk-count">0 apps selected</span>
<div class="bulk-bar-actions">
<button class="btn btn-outline btn-sm" onclick="clearSelection()">Clear selection</button>
<button class="btn btn-danger btn-sm" onclick="openRevokeModal('bulk')">Revoke All Selected</button>
</div>
</div>
<div class="apps-grid" id="apps-grid"></div>
</div>
<!-- ββ PENDING REQUESTS TAB ββ -->
<div class="tab-panel" id="tab-pending">
<div style="background:var(--amber-lt);border:1px solid #F5D79E;border-radius:var(--radius);padding:14px 18px;display:flex;align-items:flex-start;gap:12px;margin-bottom:22px;font-size:13px;color:#6B4000;line-height:1.55;">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#B7690A" stroke-width="2" style="flex-shrink:0;margin-top:1px"><path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>
<span><strong>Review these access requests carefully.</strong> These applications are requesting access to your Meridian Bank data. Approving will grant them access to the permissions listed. You can revoke at any time from the Connected Apps tab.</span>
</div>
<div class="pending-grid" id="pending-grid"></div>
</div>
<!-- ββ ACTIVITY LOG TAB ββ -->
<div class="tab-panel" id="tab-activity">
<div class="log-toolbar">
<div class="search-box">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
<input type="text" placeholder="Search logsβ¦" oninput="logSearchChange(this.value)" id="log-search"/>
</div>
<select class="filter-select" onchange="logTypeChange(this.value)" id="log-type-filter">
<option value="">All Actions</option>
<option value="READ">Account Read</option>
<option value="TRANSACTION">Transaction</option>
<option value="PROFILE">Profile Access</option>
<option value="AUTH">Authorization</option>
</select>
<select class="filter-select" id="log-app-filter" onchange="logAppChange(this.value)">
<option value="">All Apps</option>
</select>
<span class="date-range-label">From</span>
<input type="date" class="date-input" id="log-date-from" onchange="applyLogFilter()" style="width:148px"/>
<span class="date-range-label">To</span>
<input type="date" class="date-input" id="log-date-to" onchange="applyLogFilter()" style="width:148px"/>
<div class="log-toolbar-right">
<button class="btn btn-outline btn-sm" onclick="clearLogFilters()">Clear</button>
<button class="btn btn-outline btn-sm" onclick="exportLogs()">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
Export CSV
</button>
</div>
</div>
<div class="log-table-wrap">
<table>
<thead>
<tr>
<th>Application</th>
<th class="sortable" onclick="sortLog('action')">Action Type <span id="sort-action">β</span></th>
<th>Data Accessed</th>
<th>Account</th>
<th class="sortable" onclick="sortLog('date')">Date & Time <span id="sort-date">β</span></th>
<th>IP Address</th>
</tr>
</thead>
<tbody id="log-tbody"></tbody>
</table>
<div class="pagination" id="log-pagination"></div>
</div>
</div>
<!-- ββ NOTIFICATION PREFERENCES TAB ββ -->
<div class="tab-panel" id="tab-settings">
<div class="notif-section">
<div class="section-heading">Notification Preferences</div>
<p class="section-sub">Choose which events trigger alerts to your email (jdavidson@email.com) and in-app notifications.</p>
<div class="notif-grid" id="notif-grid"></div>
</div>
</div>
</div><!-- /page-wrapper -->
<!-- ββ REVOKE CONFIRMATION MODAL ββ -->
<div class="modal-overlay" id="revoke-overlay" onclick="if(event.target===this)closeRevokeModal()">
<div class="modal">
<div class="modal-header">
<div class="modal-header-icon icon-red">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#C0392B" stroke-width="2"><path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>
</div>
<div>
<h2 id="revoke-title">Revoke Access</h2>
<p id="revoke-subtitle">This action will remove authorization immediately.</p>
</div>
<button class="modal-header-close" onclick="closeRevokeModal()">✕</button>
</div>
<div class="modal-body">
<p id="revoke-body"></p>
<div class="warn-box">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#8B5000" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
<span>The app will immediately lose access to your accounts. Any active sessions or scheduled operations will be terminated. You can re-authorize the app later if needed.</span>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-outline" onclick="closeRevokeModal()">Cancel</button>
<button class="btn btn-danger" onclick="confirmRevoke()">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
Confirm Revoke
</button>
</div>
</div>
</div>
<!-- ββ APP DETAIL MODAL ββ -->
<div class="modal-overlay" id="detail-overlay" onclick="if(event.target===this)closeDetailModal()">
<div class="modal modal-lg">
<div class="modal-header" id="detail-modal-header">
<div class="modal-header-icon icon-blue">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#0052CC" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
</div>
<div>
<h2>App Details & Permissions</h2>
<p>Review what this app can access and manage permissions.</p>
</div>
<button class="modal-header-close" onclick="closeDetailModal()">✕</button>
</div>
<div class="modal-body" id="detail-modal-body"></div>
<div class="modal-footer" id="detail-modal-footer"></div>
</div>
</div>
<!-- ββ RE-AUTHORIZE MODAL ββ -->
<div class="modal-overlay" id="reauth-overlay" onclick="if(event.target===this)closeReauthModal()">
<div class="modal">
<div class="modal-header">
<div class="modal-header-icon icon-green">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#1A7A4A" stroke-width="2"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"/></svg>
</div>
<div>
<h2 id="reauth-title">Re-authorize App</h2>
<p id="reauth-subtitle">Restore access for this application.</p>
</div>
<button class="modal-header-close" onclick="closeReauthModal()">✕</button>
</div>
<div class="modal-body">
<p id="reauth-body"></p>
<div class="warn-box" style="background:var(--blue-lt);border-color:#B3D1FF;color:#1A3A6B;margin-top:16px;">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#1A4DA0" stroke-width="2" style="flex-shrink:0;margin-top:1px"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
<span>Re-authorizing will restore this app's access to your linked accounts with the same permissions as before. A new consent record will be created. You can review and revoke at any time.</span>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-outline" onclick="closeReauthModal()">Cancel</button>
<button class="btn btn-success" onclick="confirmReauth()">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
Confirm Re-authorization
</button>
</div>
</div>
</div>
<!-- ββ APPROVE PENDING MODAL ββ -->
<div class="modal-overlay" id="approve-overlay" onclick="if(event.target===this)closeApproveModal()">
<div class="modal">
<div class="modal-header">
<div class="modal-header-icon icon-green">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#1A7A4A" stroke-width="2"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"/></svg>
</div>
<div>
<h2 id="approve-title">Approve Access Request</h2>
<p id="approve-subtitle"></p>
</div>
<button class="modal-header-close" onclick="closeApproveModal()">✕</button>
</div>
<div class="modal-body">
<p id="approve-body"></p>
</div>
<div class="modal-footer">
<button class="btn btn-outline" onclick="closeApproveModal()">Cancel</button>
<button class="btn btn-success" onclick="confirmApprove()">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="20 6 9 17 4 12"/></svg>
Approve Access
</button>
</div>
</div>
</div>
<div class="toast-container" id="toast-container"></div>
<script>
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// DATA
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
const APPS_RAW = [
{
id:1, name:'Mint by Intuit', provider:'Intuit Inc.', icon:'π’', status:'active',
perms:['read','profile'], connected:'Jan 12, 2024', expires:'Jan 12, 2026',
lastAccess:'Today, 9:41 AM', consentId:'MRD-2024-001247',
accounts:['Checking β’β’4521','Savings β’β’8830'],
purpose:'Personal budgeting & expense tracking',
dataRetention:'90 days after revocation',
accessFreq:'Daily sync'
},
{
id:2, name:'Robinhood', provider:'Robinhood Markets, Inc.', icon:'π¦', status:'active',
perms:['read','investments','transactions'], connected:'Mar 3, 2024', expires:'Mar 3, 2025',
lastAccess:'Yesterday, 3:12 PM', consentId:'MRD-2024-003801',
accounts:['Brokerage Linked β’β’2210'],
purpose:'Investment portfolio aggregation & analytics',
dataRetention:'30 days after revocation',
accessFreq:'Real-time on trade events'
},
{
id:3, name:'Venmo', provider:'PayPal Holdings, Inc.', icon:'π', status:'active',
perms:['read','transactions'], connected:'Nov 5, 2023', expires:'Nov 5, 2025',
lastAccess:'Apr 20, 2025', consentId:'MRD-2023-009122',
accounts:['Checking β’β’4521'],
purpose:'Peer-to-peer payment transfers',
dataRetention:'60 days after revocation',
accessFreq:'On transaction initiation'
},
{
id:4, name:'TurboTax', provider:'Intuit Inc.', icon:'π§Ύ', status:'active',
perms:['read','profile'], connected:'Feb 1, 2025', expires:'Oct 15, 2025',
lastAccess:'Apr 15, 2025', consentId:'MRD-2025-000598',
accounts:['Checking β’β’4521','Savings β’β’8830'],
purpose:'Tax return preparation & filing',
dataRetention:'7 years (IRS compliance requirement)',
accessFreq:'Annual tax season'
},
{
id:5, name:'Acorns', provider:'Acorns Grow Incorporated', icon:'π°', status:'active',
perms:['read','transactions','investments'], connected:'Jul 19, 2024', expires:'Jul 19, 2026',
lastAccess:'Apr 18, 2025', consentId:'MRD-2024-007734',
accounts:['Checking β’β’4521'],
purpose:'Micro-investment & round-up savings automation',
dataRetention:'90 days after revocation',
accessFreq:'On each debit transaction'
},
{
id:6, name:'CreditKarma', provider:'Intuit Inc.', icon:'π', status:'revoked',
perms:['read','profile'], connected:'Aug 30, 2023', expires:'Revoked Jan 9, 2025',
lastAccess:'Jan 8, 2025', consentId:'MRD-2023-008814',
accounts:['Checking β’β’4521'],
purpose:'Credit score monitoring & financial insights',
dataRetention:'Purged upon revocation',
accessFreq:'Weekly'
}
];
const PENDING_RAW = [
{
id:101, name:'QuickBooks Online', provider:'Intuit Inc.', icon:'π',
perms:['read','transactions','profile'],
accounts:['Checking β’β’4521','Savings β’β’8830','Business β’β’3310'],
purpose:'Small business accounting, expense categorization, and invoicing reconciliation with your bank transactions.',
requested:'Apr 19, 2025', expires:'Apr 26, 2025',
dataRetention:'1 year after revocation'
},
{
id:102, name:'Wealthfront', provider:'Wealthfront Corporation', icon:'π',
perms:['read','investments'],
accounts:['Savings β’β’8830'],
purpose:'Automated investment planning and cash account optimization based on your current savings balance.',
requested:'Apr 20, 2025', expires:'Apr 27, 2025',
dataRetention:'90 days after revocation'
},
{
id:103, name:'Chime', provider:'Chime Financial, Inc.', icon:'π',
perms:['read','transactions'],
accounts:['Checking β’β’4521'],
purpose:'Balance sync for instant payment notifications and overdraft protection alerts.',
requested:'Apr 21, 2025', expires:'Apr 28, 2025',
dataRetention:'30 days after revocation'
}
];
const LOG_RAW = [
{app:'Mint by Intuit', icon:'π’', action:'READ', data:'Account Balance, Transaction History (90 days)', account:'Checking β’β’4521', rawDate:'2025-04-21', time:'9:41 AM', ip:'34.120.45.12'},
{app:'Mint by Intuit', icon:'π’', action:'PROFILE', data:'Name, Email, Address', account:'Profile', rawDate:'2025-04-21', time:'9:40 AM', ip:'34.120.45.12'},
{app:'Robinhood', icon:'π¦', action:'READ', data:'Account Balance, Portfolio Holdings', account:'Brokerage β’β’2210', rawDate:'2025-04-20', time:'3:12 PM', ip:'52.86.12.201'},
{app:'Venmo', icon:'π', action:'TRANSACTION', data:'Transfer $120.00 to @james_carter', account:'Checking β’β’4521', rawDate:'2025-04-20', time:'11:05 AM', ip:'192.30.14.88'},
{app:'Acorns', icon:'π°', action:'TRANSACTION', data:'Round-up investment $3.47', account:'Checking β’β’4521', rawDate:'2025-04-20', time:'10:12 AM', ip:'18.204.55.9'},
{app:'TurboTax', icon:'π§Ύ', action:'READ', data:'Interest Income, Dividend Statements', account:'Savings β’β’8830', rawDate:'2025-04-18', time:'2:30 PM', ip:'54.239.28.15'},
{app:'Acorns', icon:'π°', action:'READ', data:'Transaction History (30 days)', account:'Checking β’β’4521', rawDate:'2025-04-18', time:'8:00 AM', ip:'18.204.55.9'},
{app:'Robinhood', icon:'π¦', action:'READ', data:'Account Balance', account:'Brokerage β’β’2210', rawDate:'2025-04-17', time:'4:01 PM', ip:'52.86.12.201'},
{app:'Mint by Intuit', icon:'π’', action:'READ', data:'Transaction History (90 days)', account:'Savings β’β’8830', rawDate:'2025-04-17', time:'12:00 PM', ip:'34.120.45.12'},
{app:'Venmo', icon:'π', action:'AUTH', data:'Re-authorization of account access', account:'Checking β’β’4521', rawDate:'2025-04-15', time:'9:00 AM', ip:'192.30.14.88'},
{app:'TurboTax', icon:'π§Ύ', action:'PROFILE', data:'SSN (last 4), Filing Status', account:'Profile', rawDate:'2025-04-15', time:'7:45 AM', ip:'54.239.28.15'},
{app:'Acorns', icon:'π°', action:'TRANSACTION', data:'Round-up investment $1.82', account:'Checking β’β’4521', rawDate:'2025-04-14', time:'3:22 PM', ip:'18.204.55.9'},
{app:'Robinhood', icon:'π¦', action:'TRANSACTION', data:'Dividend reinvestment $22.50', account:'Brokerage β’β’2210', rawDate:'2025-04-13', time:'10:00 AM', ip:'52.86.12.201'},
{app:'Mint by Intuit', icon:'π’', action:'READ', data:'Account Balance, Transaction History', account:'Checking β’β’4521', rawDate:'2025-04-12', time:'9:00 AM', ip:'34.120.45.12'},
{app:'CreditKarma', icon:'π', action:'PROFILE', data:'Credit Report, Account Summary', account:'Profile', rawDate:'2025-01-08', time:'2:15 PM', ip:'35.71.100.44'}
];
const NOTIFS = [
{id:'n1', icon:'π', bg:'#E6F0FF', title:'New App Authorization', desc:'Notify me when a new app is granted access to my accounts.', on:true},
{id:'n2', icon:'π«', bg:'#FDECEA', title:'Access Revocation', desc:'Notify me when access is revoked for an app.', on:true},
{id:'n3', icon:'β οΈ', bg:'#FFF3E0', title:'Pending Access Requests', desc:'Alert me when a third-party app requests access to my data.', on:true},
{id:'n4', icon:'π³', bg:'#FCE8F3', title:'Transaction Access Events', desc:'Notify me each time an app initiates or reads a transaction.', on:false},
{id:'n5', icon:'π', bg:'#E6F7EE', title:'Account Balance Reads', desc:'Notify me when an app reads my account balance.', on:false},
{id:'n6', icon:'π', bg:'#F0E8FF', title:'Consent Expiry Reminder', desc:'Remind me 30 days before a consent authorization expires.', on:true},
{id:'n7', icon:'π‘οΈ', bg:'#E6F0FF', title:'Unusual Access Pattern Detected', desc:'Alert me if an app accesses my data outside of its normal schedule.', on:true},
{id:'n8', icon:'π', bg:'#F8F9FB', title:'Monthly Consent Summary', desc:'Send me a monthly digest summarizing all data access activity.', on:false}
];
const PERM_META = {
read: {label:'Account Read', icon:'π¦', bg:'#E6F0FF', desc:'Read-only access to account balances and transaction history up to 90 days.'},
transactions: {label:'Transactions', icon:'πΈ', bg:'#FCE8F3', desc:'Ability to view, initiate, or confirm transfers and payment transactions.'},
profile: {label:'Profile Data', icon:'π€', bg:'#E6F7EE', desc:'Access to personal info including name, email, phone, and mailing address.'},
investments: {label:'Investments', icon:'π', bg:'#F0E8FF', desc:'View holdings, portfolio value, dividends, and brokerage account details.'},
write: {label:'Write Access', icon:'βοΈ', bg:'#FFF3E0', desc:'Modify account settings or submit data on your behalf.'}
};
const ACTION_BADGE = {
READ: {label:'Account Read', cls:'action-read'},
TRANSACTION: {label:'Transaction', cls:'action-tx'},
PROFILE: {label:'Profile', cls:'action-profile'},
AUTH: {label:'Authorization',cls:'action-auth'}
};
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// STATE
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
let appData = APPS_RAW.map(a=>({...a, perms:[...a.perms]}));
let pendingData = PENDING_RAW.map(p=>({...p, perms:[...p.perms]}));
let logData = LOG_RAW.map(l=>({...l}));
let selectedIds = new Set();
let pendingRevoke = null;
let pendingReauthId = null;
let pendingApproveId = null;
let pendingDetailId = null;
const LOG_PAGE_SIZE = 8;
let logPage = 1;
let logFiltered = [...logData];
let logSortField = 'date';
let logSortDir = -1;
let logFilters = {q:'', type:'', app:'', from:'', to:''};
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// RENDER: CONNECTED APPS
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
function renderApps(list) {
const g = document.getElementById('apps-grid');
if (!list.length) {
g.innerHTML = `<div class="empty-state">
<svg width="52" height="52" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.3"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
<h3>No apps found</h3><p>Adjust your filters to see results.</p></div>`;
return;
}
g.innerHTML = list.map(app => {
const isActive = app.status === 'active';
const isRevoked = app.status === 'revoked';
const actions = isActive
? `<button class="btn-revoke" onclick="openRevokeModal(${app.id})">Revoke</button>
<button class="btn-details" title="View details" onclick="openDetailModal(${app.id})">⋯</button>`
: `<button class="btn-reauth" onclick="openReauthModal(${app.id})">Re-authorize</button>
<button class="btn-details" title="View details" onclick="openDetailModal(${app.id})">⋯</button>`;
return `<div class="app-card ${isRevoked?'revoked':''} ${selectedIds.has(app.id)?'selected':''}" id="card-${app.id}">
<input type="checkbox" class="app-checkbox" ${isRevoked?'disabled':''} ${selectedIds.has(app.id)?'checked':''} onchange="toggleSelect(${app.id},this.checked)"/>
<div class="app-icon">${app.icon}</div>
<div class="app-info">
<div class="app-name">${app.name}</div>
<div class="app-provider">${app.provider}</div>
<div class="app-perms">${app.perms.map(p=>`<span class="perm-badge perm-${p==='transactions'?'tx':p==='investments'?'invest':p}">${PERM_META[p]?.label||p}</span>`).join('')}</div>
</div>
<div class="app-meta">
<span class="app-status ${isActive?'status-active':'status-revoked'}"><span class="status-dot"></span>${isActive?'Active':'Revoked'}</span>
<div class="app-dates">
<div class="app-date-item">Connected: <span>${app.connected}</span></div>
<div class="app-date-item">Last access: <span>${app.lastAccess}</span></div>
<div class="app-date-item">Expires: <span>${app.expires}</span></div>
</div>
<div class="app-actions">${actions}</div>
</div>
</div>`;
}).join('');
}