Skip to content

Commit c833d34

Browse files
committed
add tooltip for publish
1 parent ee09946 commit c833d34

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

builder-frontend/src/components/project/Publish.tsx

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { createSignal } from "solid-js";
22
import { useParams } from "@solidjs/router";
33
import { publishScreener } from "../../api/screener";
4+
import Tooltip from "../shared/Tooltip";
45

56
export default function Publish({ project, refetchProject }) {
67
const [isLoading, setIsLoading] = createSignal(false);
@@ -72,14 +73,30 @@ export default function Publish({ project, refetchProject }) {
7273
</div>
7374
</div>
7475
<div class="mt-4 flex flex-col gap-2">
75-
<button
76-
id="publish-screener-button"
77-
onClick={handlePublish}
78-
class="w-80 bg-gray-800 font-bold text-gray-50 rounded px-4 py-2 hover:bg-gray-700 disabled:opacity-50"
79-
disabled={isLoading()}
80-
>
81-
Publish Screener
82-
</button>
76+
<div class="flex flex-row gap-2 items-center">
77+
<button
78+
id="publish-screener-button"
79+
onClick={handlePublish}
80+
class="w-80 bg-gray-800 font-bold text-gray-50 rounded px-4 py-2 hover:bg-gray-700 disabled:opacity-50"
81+
disabled={isLoading()}
82+
>
83+
Publish Screener
84+
</button>
85+
<Tooltip>
86+
<p>
87+
The Publish tab is where you deploy your screener to a publicly
88+
accessible URL that you can share with end users.
89+
</p>
90+
<p>
91+
<a
92+
href="https://bdt-docs.web.app/user-guide/#7-publishing-your-screener"
93+
target="_blank"
94+
>
95+
Read about publishing your screener in the docs
96+
</a>
97+
</p>
98+
</Tooltip>
99+
</div>
83100
{lastPublishDate() ? (
84101
<div>Publish current working version to your public screener</div>
85102
) : (

0 commit comments

Comments
 (0)