Skip to content

Commit e7e81aa

Browse files
Always show OSS contributor checkbox (revert progressive disclosure) (#776)
Removes the "show only when team-size = Just me" behavior added in PR #773. The checkbox + lifetime-free-access note are now visible to every visitor regardless of team size. Reverts the wrapper div, the setContributorVisibility() helper + its call site in the pill picker, and the .ws-contrib-block CSS. Generated with [Devin](https://cli.devin.ai/docs) Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent d90e4f8 commit e7e81aa

1 file changed

Lines changed: 19 additions & 59 deletions

File tree

apps/marketing/src/pages/workspaces/index.astro

Lines changed: 19 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -180,33 +180,26 @@ const teamSizes = [
180180
></textarea>
181181
</div>
182182

183-
<!-- Progressive disclosure: the OSS-contributor claim is
184-
personal-scope (one human attesting they contributed), so
185-
it only makes sense for individual signups. Hidden until
186-
"Just me" is selected on team size; reset on any other
187-
team-size choice. -->
188-
<div class="ws-contrib-block" id="contributor-block">
189-
<div
190-
class="ws-check-row"
191-
id="contributor-toggle"
192-
role="checkbox"
193-
aria-checked="false"
194-
tabindex="0"
195-
>
196-
<span class="ws-box" aria-hidden="true">
197-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
198-
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
199-
</svg>
200-
</span>
201-
<span>I've contributed to or maintain the Plannotator OSS core.</span>
202-
</div>
203-
204-
<p class="ws-contrib-note">
205-
↑ Early contributors and meaningful early supporters receive
206-
<span class="ws-accent">lifetime free access</span> to Workspaces.
207-
</p>
183+
<div
184+
class="ws-check-row"
185+
id="contributor-toggle"
186+
role="checkbox"
187+
aria-checked="false"
188+
tabindex="0"
189+
>
190+
<span class="ws-box" aria-hidden="true">
191+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3">
192+
<path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" />
193+
</svg>
194+
</span>
195+
<span>I've contributed to or maintain the Plannotator OSS core.</span>
208196
</div>
209197

198+
<p class="ws-contrib-note">
199+
↑ Early contributors and meaningful early supporters receive
200+
<span class="ws-accent">lifetime free access</span> to Workspaces.
201+
</p>
202+
210203
{turnstileSitekey && (
211204
<div
212205
id="ws-turnstile"
@@ -354,24 +347,6 @@ const teamSizes = [
354347
});
355348
}
356349

357-
// OSS-contributor block only matters for individual signups. Show
358-
// it when team size = "solo"; hide and reset state otherwise so a
359-
// team signup doesn't accidentally carry is_contributor=true.
360-
var contribBlock = document.getElementById('contributor-block');
361-
var contribEl = document.getElementById('contributor-toggle');
362-
363-
function setContributorVisibility(visible) {
364-
if (!contribBlock) return;
365-
contribBlock.classList.toggle('is-visible', visible);
366-
if (!visible && contributor) {
367-
contributor = false;
368-
if (contribEl) {
369-
contribEl.classList.remove('on');
370-
contribEl.setAttribute('aria-checked', 'false');
371-
}
372-
}
373-
}
374-
375350
// Pill picker
376351
document.querySelectorAll('.ws-pills').forEach(function (group) {
377352
var key = group.dataset.field;
@@ -388,13 +363,13 @@ const teamSizes = [
388363
p.classList.add('on');
389364
p.setAttribute('aria-pressed', 'true');
390365
fields[key] = v;
391-
if (key === 'teamSize') setContributorVisibility(v === 'solo');
392366
}
393367
clearErr(group);
394368
});
395369
});
396370

397371
// Contributor toggle (click + keyboard)
372+
var contribEl = document.getElementById('contributor-toggle');
398373
function toggleContributor() {
399374
contributor = !contributor;
400375
contribEl.classList.toggle('on', contributor);
@@ -1009,21 +984,6 @@ const teamSizes = [
1009984
margin: 0 0 14px;
1010985
}
1011986

1012-
/* Progressive-disclosure wrapper. Hidden by default; the JS toggles
1013-
`.is-visible` when team size flips to "solo". Small fade-in keeps
1014-
the reveal from feeling like a layout jolt. */
1015-
.ws-contrib-block {
1016-
display: none;
1017-
}
1018-
.ws-contrib-block.is-visible {
1019-
display: block;
1020-
animation: ws-disclose 0.22s cubic-bezier(0.23, 1, 0.32, 1);
1021-
}
1022-
@keyframes ws-disclose {
1023-
from { opacity: 0; transform: translateY(-4px); }
1024-
to { opacity: 1; transform: translateY(0); }
1025-
}
1026-
1027987
/* ── Turnstile slot (almost always invisible) ── */
1028988
.ws-turnstile {
1029989
margin-top: 10px;

0 commit comments

Comments
 (0)