From e13959ae45b8b4d93bddf2aaa847d0cb388d8c91 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 28 Dec 2021 19:35:37 -0700 Subject: [PATCH 1/3] Update Timeline, add new ui promo in timelines that can be hidden using localstorage --- resources/assets/js/components/Timeline.vue | 24 ++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index c8d5b144a..b376f5de0 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -20,6 +20,18 @@
+
+
+
+

A New Experience Awaits

+

Try out an early release of our upcoming design

+

+ Try new UI + Hide +

+
+
+
@@ -509,7 +521,8 @@ recentFeedMax: null, reactionBar: true, emptyFeed: false, - filters: [] + filters: [], + showPromo: false, } }, @@ -527,6 +540,10 @@ el.setAttribute('data-stylesheet', 'dark'); }*/ + if(this.config.ab.spa === true) { + this.showPromo = localStorage.getItem('pf_metro_ui.exp.spa') == 'false' ? false : true; + } + if(localStorage.getItem('pf_metro_ui.exp.rec') == 'false') { this.showSuggestions = false; } else { @@ -1067,6 +1084,11 @@ return s; }); }, + + hidePromo() { + localStorage.setItem('pf_metro_ui.exp.spa', 'false'); + this.showPromo = false; + } }, beforeDestroy () { From f3a66fff618ad3e07a849302aefec94f11328a19 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 28 Dec 2021 19:37:30 -0700 Subject: [PATCH 2/3] Update experiment config, force enabled single page app --- config/exp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/exp.php b/config/exp.php index 823d3a201..c52614f96 100644 --- a/config/exp.php +++ b/config/exp.php @@ -9,5 +9,5 @@ return [ 'polls' => env('EXP_POLLS', false), 'cached_public_timeline' => env('EXP_CPT', false), 'gps' => env('EXP_GPS', false), - 'spa' => env('EXP_SPA', true), + 'spa' => true, ]; From 2b11205a2c77907382d1fdeb1554ba5132b34daa Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 28 Dec 2021 19:37:57 -0700 Subject: [PATCH 3/3] Update compiled assets --- public/js/timeline.js | Bin 170630 -> 171502 bytes public/mix-manifest.json | Bin 1983 -> 1983 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/public/js/timeline.js b/public/js/timeline.js index 6941a104e589eb0f8cc5577d91517fdfe66ab0b8..7834c89bb4d7a4134eb457e72ca074e545e47e57 100644 GIT binary patch delta 888 zcmZ8fT}V?=9Or-hKon~#I_Kxz71maFb2G&@x!JHJ)6&e0Fv~mdnfKznciwy5v^nTS zGf8@waUyz<9)v(d88s-1lpvyr9xAMtdP_vYo~pO*%v|;O`#S&M|C}>@mB@)Bv1xnUjMwK~(h)l3yHfa6X3`NMu0vO480SuYCkG9!} zTL4!gLx5Km*^D6aczXbGXi!s`bTB(f8}r|ZdWAQW(3C!S#_dlSufpxLeJ++&Ef%xp z2*?~SN&^;)=Gd*!C|PM<4AD%4EYCxE?64_^JbVoK`IJvqc&ykpIcRrM!7+OsS(=AR zVz>vH)%H4SNN4CM)1&7F7tQo&j!Pjc?WIoPFm-G+h!qh_{h0EGIZ=zPOcauiE!fKj zFvllTzujHR7$uKr6em%bQvzd@f^~z6DcP^{3N;e!mxuJm6pvMLK#F;bs)+M0WDsvI zGLaW|pqTVM00a5nfD9SQjxI7h1qF^F#a>G@oTe$NCn6}=@1d*3>M-`v(SK%3de^fp zBySa}$WtB}NZ%slk`p(eseJd&t+r??bXh(4###p1uUg<>?G(wru= zl0rXCXd;CsOVH~Sx=@O)r_fd@YE9VJ;2OLAKZt7$%zM=OIyY^LGW1~A0WVEf-a!d@ kUx;QB4P~fie|l2hCeu5UyIuJJ(+Q~=&DJHV$I-cpUk0NpBLDyZ delta 451 zcmaF2o2zXr*M{gREJofguG9JEGD)-K6a=J9*PYAMxjAae%pfHn+dRGG{G6QBzHJ>pFYm0AiVwX z1I7+pR;BC^ZAY+2rq7UL>V^2`p(K;pbd}qTirg@bu?p4G1p^tyrl;LzbVL}p{x+i< zg7^0};{ycm=^aKlPPqQ*bq^TDr+eRJOhKsFewXneg4b}5u@%ANz0Y_K!Fzn4u?N8` zf57O?qLi0tKAm?ilgxHkc_tyP?Mz-wQ%#wHzMt-Rno*ulLkSc^N}9Dgl|`A!ATg8e J=jxdh