Skip to content

Commit d0b61b8

Browse files
jnunemakerclaude
andauthored
Add "I deploy on Fridays" merch callout to UI and README (#1024)
* Add "I deploy on Fridays" merch callout to UI and README Adds a small, muted tee callout in the Flipper UI footer (gated behind the existing `fun` config) and a short Merch section in the README, with specs covering the fun-mode toggle. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Move merch link to nav, keep Cloud as sole footer CTA Per feedback, two footer CTAs side-by-side diluted the Flipper Cloud callout. Move the tee to a small "Shirt" nav link (Docs • Shirt • Version), leaving Cloud uncontested in the footer. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 5892ba0 commit d0b61b8

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Or install it yourself with:
3737

3838
[💌 &nbsp;Subscribe](https://blog.flippercloud.io/#/portal/signup) - we'll send you short and sweet emails when we release new versions ([examples](https://blog.flippercloud.io/tag/releases/)).
3939

40+
## Merch
41+
42+
Do you deploy on Fridays? [👕 Get the tee](https://shop.verygoodsoftware.company/product/i-deploy-on-fridays-tee?utm_source=oss&utm_medium=readme&utm_campaign=merch).
43+
4044
## Getting Started
4145

4246
Use `Flipper#enabled?` in your app to check if a feature is enabled.

lib/flipper/ui/views/layout.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
<li class="nav-item ms-auto text-muted small">
5858
<a href="https://www.flippercloud.io/docs/ui?utm_source=oss&utm_medium=ui&utm_campaign=docs">Docs</a>
5959
&bull;
60+
<% if Flipper::UI.configuration.fun %>
61+
<a href="https://shop.verygoodsoftware.company/product/i-deploy-on-fridays-tee?utm_source=oss&utm_medium=ui&utm_campaign=merch" title="Do you deploy on Fridays?">Shirt</a>
62+
&bull;
63+
<% end %>
6064
Version: <%= Flipper::VERSION %>
6165
</li>
6266
</ul>

spec/flipper/ui/actions/features_spec.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,36 @@
8686
end
8787
end
8888

89+
context "merch callout" do
90+
before do
91+
@original_fun_enabled = Flipper::UI.configuration.fun
92+
Flipper::UI.configuration.fun = fun_mode
93+
get '/features'
94+
end
95+
96+
after do
97+
Flipper::UI.configuration.fun = @original_fun_enabled
98+
end
99+
100+
context "when fun mode is enabled" do
101+
let(:fun_mode) { true }
102+
103+
it 'renders the shirt link' do
104+
expect(last_response.body).to include('>Shirt</a>')
105+
expect(last_response.body).to include('i-deploy-on-fridays-tee')
106+
end
107+
end
108+
109+
context "when fun mode is disabled" do
110+
let(:fun_mode) { false }
111+
112+
it 'does not render the shirt link' do
113+
expect(last_response.body).not_to include('>Shirt</a>')
114+
expect(last_response.body).not_to include('i-deploy-on-fridays-tee')
115+
end
116+
end
117+
end
118+
89119
context "when in read-only mode" do
90120
before { allow(flipper).to receive(:read_only?) { true } }
91121

0 commit comments

Comments
 (0)