From 8265f9e2de5028580ec44887f8a383ef7176eb53 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sat, 11 Oct 2025 16:11:43 -0400 Subject: [PATCH] Add design system feature flag and runtime integration --- components/application-form.html | 2 +- components/bug-fix-form.html | 1 + components/content-appeals-form.html | 1 + components/disclaimer.html | 1 + components/edit-video-modal.html | 1 + components/feature-request-form.html | 1 + components/general-feedback-form.html | 1 + .../iframe_forms/iframe-application-form.html | 2 +- .../iframe_forms/iframe-bug-fix-form.html | 2 +- .../iframe-content-appeals-form.html | 2 +- .../iframe_forms/iframe-feedback-form.html | 2 +- .../iframe_forms/iframe-request-form.html | 2 +- components/login-modal.html | 1 + components/profile-modal.html | 1 + components/revert-video-modal.html | 1 + components/sidebar.html | 1 + components/upload-modal.html | 1 + components/video-modal.html | 8 +- docs/deployment-notes.md | 9 ++ docs/design-system.md | 8 ++ index.html | 2 +- js/app.js | 43 ++++++ js/constants.js | 77 ++++++++++ js/designSystem.js | 136 ++++++++++++++++++ js/index.js | 25 +++- js/ui/components/VideoCard.js | 7 +- js/ui/moreMenuController.js | 4 + js/ui/profileModalController.js | 3 + js/ui/views/VideoListView.js | 4 + js/ui/watchHistoryController.js | 3 + js/viewManager.js | 8 +- views/about.html | 2 +- views/channel-profile.html | 2 +- views/community-guidelines.html | 2 +- views/explore.html | 2 +- views/getting-started.html | 2 +- views/history.html | 2 +- views/ipns.html | 2 +- views/links.html | 2 +- views/most-recent-videos.html | 2 +- views/roadmap.html | 2 +- views/subscriptions.html | 2 +- 42 files changed, 359 insertions(+), 23 deletions(-) create mode 100644 docs/deployment-notes.md create mode 100644 js/designSystem.js diff --git a/components/application-form.html b/components/application-form.html index de0a6eda..285f1293 100644 --- a/components/application-form.html +++ b/components/application-form.html @@ -10,7 +10,7 @@ - +
diff --git a/components/content-appeals-form.html b/components/content-appeals-form.html index a454225e..f5566628 100644 --- a/components/content-appeals-form.html +++ b/components/content-appeals-form.html @@ -8,6 +8,7 @@ aria-modal="true" aria-labelledby="contentAppealsModalTitle" aria-describedby="contentAppealsModalDescription" + data-ds="legacy" >
diff --git a/components/disclaimer.html b/components/disclaimer.html index be55bfe5..6143c34b 100644 --- a/components/disclaimer.html +++ b/components/disclaimer.html @@ -6,6 +6,7 @@ aria-modal="true" aria-labelledby="disclaimerModalTitle" aria-describedby="disclaimerModalDescription" + data-ds="legacy" >
diff --git a/components/edit-video-modal.html b/components/edit-video-modal.html index 822fe30a..93f7994f 100644 --- a/components/edit-video-modal.html +++ b/components/edit-video-modal.html @@ -5,6 +5,7 @@ role="dialog" aria-modal="true" tabindex="-1" + data-ds="legacy" >
diff --git a/components/feature-request-form.html b/components/feature-request-form.html index 71b3a73b..40b1bdc7 100644 --- a/components/feature-request-form.html +++ b/components/feature-request-form.html @@ -8,6 +8,7 @@ aria-modal="true" aria-labelledby="featureRequestModalTitle" aria-describedby="featureRequestModalDescription" + data-ds="legacy" >
diff --git a/components/general-feedback-form.html b/components/general-feedback-form.html index 61bcdef6..8febe3c9 100644 --- a/components/general-feedback-form.html +++ b/components/general-feedback-form.html @@ -12,6 +12,7 @@ aria-modal="true" aria-labelledby="generalFeedbackModalTitle" aria-describedby="generalFeedbackModalDescription" + data-ds="legacy" >
diff --git a/components/iframe_forms/iframe-application-form.html b/components/iframe_forms/iframe-application-form.html index 20156016..54f6e38c 100644 --- a/components/iframe_forms/iframe-application-form.html +++ b/components/iframe_forms/iframe-application-form.html @@ -11,7 +11,7 @@ - +

diff --git a/components/iframe_forms/iframe-bug-fix-form.html b/components/iframe_forms/iframe-bug-fix-form.html index 044180df..55ee49c4 100644 --- a/components/iframe_forms/iframe-bug-fix-form.html +++ b/components/iframe_forms/iframe-bug-fix-form.html @@ -11,7 +11,7 @@ - +

diff --git a/components/iframe_forms/iframe-content-appeals-form.html b/components/iframe_forms/iframe-content-appeals-form.html index 87baa67f..4786b901 100644 --- a/components/iframe_forms/iframe-content-appeals-form.html +++ b/components/iframe_forms/iframe-content-appeals-form.html @@ -11,7 +11,7 @@ - +

diff --git a/components/iframe_forms/iframe-feedback-form.html b/components/iframe_forms/iframe-feedback-form.html index 0b1e2dff..97c38d96 100644 --- a/components/iframe_forms/iframe-feedback-form.html +++ b/components/iframe_forms/iframe-feedback-form.html @@ -11,7 +11,7 @@ - +

diff --git a/components/iframe_forms/iframe-request-form.html b/components/iframe_forms/iframe-request-form.html index f4f1e331..81f52767 100644 --- a/components/iframe_forms/iframe-request-form.html +++ b/components/iframe_forms/iframe-request-form.html @@ -10,7 +10,7 @@ - +

diff --git a/components/login-modal.html b/components/login-modal.html index 336c016c..ee6cb14f 100644 --- a/components/login-modal.html +++ b/components/login-modal.html @@ -5,6 +5,7 @@ aria-modal="true" aria-labelledby="loginModalTitle" aria-describedby="loginModalDescription" + data-ds="legacy" >

diff --git a/components/profile-modal.html b/components/profile-modal.html index 44ac2b13..a0aa98f9 100644 --- a/components/profile-modal.html +++ b/components/profile-modal.html @@ -6,6 +6,7 @@ aria-modal="true" aria-labelledby="profileModalTitle" tabindex="-1" + data-ds="legacy" >
diff --git a/components/revert-video-modal.html b/components/revert-video-modal.html index 818b9c07..f76ef200 100644 --- a/components/revert-video-modal.html +++ b/components/revert-video-modal.html @@ -6,6 +6,7 @@ aria-modal="true" aria-labelledby="revertModalTitle" aria-describedby="revertModalSubtitle" + data-ds="legacy" >