Skip to content

Commit 2e12fdf

Browse files
authored
Merge pull request #241 from Zac-HD/next
Add "start using hypofuzz" link to demo dashboard
2 parents 4de09ed + ba37b59 commit 2e12fdf

File tree

7 files changed

+37
-16
lines changed

7 files changed

+37
-16
lines changed

docs/assets/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ html {
302302
}
303303

304304
.button--cta {
305-
font-weight: 500;
306305
background-color: hsl(var(--primary-h), var(--primary-s), 50%);
307306
}
308307

@@ -648,6 +647,7 @@ html {
648647
border: 1px solid var(--secondary);
649648
border-radius: 8px;
650649
padding: 1rem;
650+
margin-bottom: -1rem;
651651
max-width: 800px;
652652
text-align: center;
653653
line-height: 1.4;

docs/pricing/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,12 @@
9999
<p>
100100
<em>Unlimited use for the whole team.</em>
101101
</p>
102-
<div class="pricing-important-notice" style="margin-bottom: 1rem;">
103-
While we work on getting the HypoFuzz paperwork together, we'd love to hand out exploratory licenses to interested companies, <strong>at no cost</strong>. Get in touch!
102+
<div class="pricing-important-notice">
103+
<div style="padding-bottom: 1rem;">
104+
While we work on getting the HypoFuzz paperwork together, we'd love to hand out exploratory licenses to interested companies, <strong>at no cost</strong>. Get in touch!
105+
</div>
106+
<a href="mailto:sales@hypofuzz.com?subject=Exploratory%20HypoFuzz%20licence" class="button button--cta pricing-card__button">Get in touch</a>
104107
</div>
105-
<a href="mailto:sales@hypofuzz.com?subject=Per-seat%20HypoFuzz%20licence" class="button button--cta pricing-card__button">Get in touch</a>
106108
</div>
107109
</div>
108110
</div>

src/hypofuzz/docs/manual/cli.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Example usage
1414

1515
* ``hypothesis fuzz`` starts the dashboard and fuzz workers, using all available cores.
1616
* ``hypothesis fuzz -n 2`` starts the dashboard and fuzz workers, using 2 cores.
17-
* ``hypothesis fuzz --dashboard-only`` starts just the dashboard. The dashboard works even if no fuzz workers are running.
18-
* ``hypothesis fuzz --no-dashboard -n 4`` starts just the fuzz workers, using 4 cores.
17+
* ``hypothesis fuzz --dashboard-only`` starts only the dashboard. The dashboard works even if no fuzz workers are running.
18+
* ``hypothesis fuzz --no-dashboard -n 4`` starts only the fuzz workers, using 4 cores.
1919
* ``hypothesis fuzz -- -k parse`` starts the dashboard and fuzz workers only for test names with the string ``parse`` in them.

src/hypofuzz/docs/quickstart.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ Running HypoFuzz
2222

2323
The main entrypoint to HypoFuzz is ``hypothesis fuzz``. Installing HypoFuzz automatically adds this ``fuzz`` sub-command to the existing :ref:`Hypothesis CLI <hypothesis:hypothesis-cli>`.
2424

25-
The no-argument command ``hypothesis fuzz`` does two things:
25+
Running ``hypothesis fuzz`` does two things:
2626

27-
* Starts a local dashboard webserver, and
28-
* Executes your Hypothesis tests using all available cores
27+
* Starts a local dashboard webserver.
28+
* Discovers and executes your Hypothesis tests with all available cores.
2929

30-
These behaviors can be isolated with the ``--dashboard-only`` and ``--no-dashboard`` commands respectively. The number of cores used can be controlled with ``-n/--num-processes``.
30+
These behaviors can be isolated with the ``--dashboard-only`` and ``--no-dashboard`` commands, respectively. The number of cores used can be controlled with ``-n/--num-processes``.
3131

32-
HypoFuzz uses :pypi:`pytest` to collect available tests. ``hypothesis fuzz`` should therefore be run in a directory where pytest can discover your tests.
33-
34-
Any arguments after ``hypothesis fuzz --`` are passed through to pytest. See :doc:`/manual/collection` for how to use this to control which tests are collected.
32+
HypoFuzz uses :pypi:`pytest` to collect Hypothesis tests. ``hypothesis fuzz`` should therefore be run in a directory where pytest can discover your tests. To control how HypoFuzz collects tests, see :doc:`/manual/collection`.
3533

3634
.. seealso::
3735

src/hypofuzz/frontend/src/Layout.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
faBox,
66
faCode,
77
faCodeCompare,
8+
faExternalLink,
89
faUser,
910
} from "@fortawesome/free-solid-svg-icons"
1011
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
@@ -115,6 +116,19 @@ export function Layout() {
115116
Docs
116117
</div>
117118
</a>
119+
{import.meta.env.VITE_USE_DASHBOARD_STATE === "1" && (
120+
<>
121+
<div className="sidebar__separator"></div>
122+
<a href={"http://hypofuzz.com/pricing"} className="sidebar__link__text">
123+
<div className={`sidebar__link sidebar__link--cta`}>
124+
<span className="sidebar__link__icon">
125+
<FontAwesomeIcon icon={faExternalLink} />
126+
</span>
127+
Start using HypoFuzz
128+
</div>
129+
</a>
130+
</>
131+
)}
118132
</nav>
119133
</div>
120134
<div className="content">

src/hypofuzz/frontend/src/styles/styles.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,20 @@ $mobile-breakpoint: 768px;
358358
&--active {
359359
background: rgba(255, 255, 255, 0.2);
360360
}
361+
362+
&--cta {
363+
background: hsl($primary-h, $primary-s, 45%);
364+
365+
&:hover {
366+
background: hsl($primary-h, $primary-s, 40%);
367+
}
368+
}
361369
}
362370

363371
&__separator {
364372
border-top: 1px solid #dee2e6;
365-
margin-top: 1rem;
366-
margin-bottom: 1rem;
373+
margin-top: 0.8rem;
374+
margin-bottom: 0.8rem;
367375
}
368376
}
369377

src/hypofuzz/frontend/src/styles/theme.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ $primary-h: 205;
22
$primary-s: 75%;
33
$primary-l: 30%;
44
$color-primary: hsl($primary-h, $primary-s, $primary-l);
5-
65
$color-primary-hover: hsl($primary-h, $primary-s, 40%);
76

87
$secondary-h: 24;

0 commit comments

Comments
 (0)