Commit 13436da
committed
feat: update UI to match screenshots — stat cards, bar chart, mapping cards
index.html:
- Added 4 dashboard stat cards (Overall Maturity, Controls Assessed,
Gaps Identified, Framework Maps) to results page
- Added side-by-side charts layout (radar + bar chart)
- Added chart titles to both chart containers
- Added 5 framework summary cards (ISO, NIST, CIS, PCI, NCA) with
mapping counts and bilingual descriptions to mappings page
- Added page subtitle to mappings page
- Updated version to v2.0.0 in footer
- Updated footer with GitHub link and @SiteQ8 attribution
- Updated page title
style.css:
- Added .stats-row grid (4-column, responsive to 2/1)
- Added .mini-stat-card with hover, label, value, bar, progress
- Added .charts-row side-by-side grid layout
- Added .chart-title styling
- Added .mapping-cards-row grid (5-column, responsive)
- Added .mapping-summary-card with accent bar, icon, count badge
- Added .page-subtitle styling
app.js:
- Added renderBarChart() — horizontal bar chart per domain with
Level 3 minimum annotation line
- Added renderStatCards() — populates stat card values from
assessment responses (maturity, controls assessed, gaps count)
- Updated radar chart colors to SAMA green (#00a651)
- Updated minimum required line to red dashed
- Connected new renderers to renderResults() flow1 parent 63bbcb7 commit 13436da
3 files changed
+350
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
646 | 652 | | |
647 | 653 | | |
648 | 654 | | |
| |||
668 | 674 | | |
669 | 675 | | |
670 | 676 | | |
671 | | - | |
672 | | - | |
673 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
674 | 680 | | |
675 | 681 | | |
676 | | - | |
| 682 | + | |
677 | 683 | | |
678 | 684 | | |
679 | 685 | | |
680 | | - | |
681 | | - | |
| 686 | + | |
| 687 | + | |
682 | 688 | | |
683 | | - | |
| 689 | + | |
684 | 690 | | |
685 | 691 | | |
686 | 692 | | |
| |||
705 | 711 | | |
706 | 712 | | |
707 | 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 | + | |
708 | 813 | | |
709 | 814 | | |
710 | 815 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
215 | 215 | | |
216 | 216 | | |
217 | 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 | + | |
218 | 244 | | |
219 | | - | |
220 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
221 | 254 | | |
222 | 255 | | |
223 | 256 | | |
| |||
241 | 274 | | |
242 | 275 | | |
243 | 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 | + | |
244 | 317 | | |
245 | 318 | | |
246 | 319 | | |
| |||
348 | 421 | | |
349 | 422 | | |
350 | 423 | | |
351 | | - | |
352 | | - | |
| 424 | + | |
| 425 | + | |
353 | 426 | | |
354 | 427 | | |
355 | 428 | | |
356 | 429 | | |
357 | 430 | | |
358 | 431 | | |
359 | 432 | | |
360 | | - | |
| 433 | + | |
361 | 434 | | |
362 | 435 | | |
363 | 436 | | |
| |||
0 commit comments