Skip to content

Commit 3747169

Browse files
authored
Update Nexus empty state text with links and allow slot (#2478)
1 parent 22b37ea commit 3747169

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
lines changed

Diff for: src/lib/pages/nexus-empty-state.svelte

+30-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script lang="ts">
22
import Badge from '$lib/holocene/badge.svelte';
33
import Button from '$lib/holocene/button.svelte';
4+
import Link from '$lib/holocene/link.svelte';
45
import { translate } from '$lib/i18n/translate';
56
import { useDarkMode } from '$lib/utilities/dark-mode';
67
import { routeForNexusEndpointCreate } from '$lib/utilities/route-for';
@@ -19,24 +20,42 @@
1920
>
2021
{translate('nexus.endpoints')}
2122
</h1>
22-
<Badge type="primary">Pre-Release</Badge>
23+
<Badge type="primary">Public Preview</Badge>
2324
</div>
2425
<div class="flex w-full flex-col gap-4 pr-8 md:pr-24">
2526
<h2 class="text-4xl">Get Started</h2>
27+
28+
<p>
29+
<Link href="https://docs.temporal.io/evaluate/nexus" newTab
30+
>Temporal Nexus</Link
31+
> allows you to reliably connect Temporal Applications. It promotes a more
32+
modular architecture for sharing a subset of your team's capabilities with
33+
well-defined microservice contracts for other teams to use. Nexus was designed
34+
with Durable Execution in mind and enables each team to have their own
35+
Namespace for improved modularity, security, debugging, and fault isolation.
36+
</p>
2637
<p>
27-
Nexus RPC is a modern open-source service framework for
28-
arbitrary-length operations whose lifetime may extend beyond a
29-
traditional RPC. Nexus was designed with Durable Execution in mind, as
30-
an underpinning to connect durable executions within and across
31-
Namespaces, clusters, and regions – with a clean API contract to
32-
streamline multi-team collaboration.
38+
<Link href="https://docs.temporal.io/nexus/services" newTab
39+
>Nexus Services</Link
40+
> are exposed from a <Link
41+
href="https://docs.temporal.io/nexus/endpoints"
42+
newTab>Nexus Endpoint</Link
43+
> created in the <Link
44+
href="https://docs.temporal.io/nexus/registry"
45+
newTab>Nexus Registry</Link
46+
>. Adding a Nexus Endpoint to the Nexus Registry deploys the Endpoint,
47+
so it is available at runtime to serve Nexus requests.
3348
</p>
3449
<p>
35-
Any service can be exposed via a Nexus Endpoint as a set of sync or
36-
async Nexus operations – the latter provides an operation identity and
37-
a uniform interface to get the status of an operation or its result,
38-
receive a completion callback, or cancel the operation.
50+
A Nexus Endpoint is a reverse proxy that decouples the caller from the
51+
handler and routes requests to upstream targets. It currently supports
52+
routing to a single target Namespace and Task Queue. Nexus Services
53+
and <Link href="https://docs.temporal.io/nexus/operations" newTab
54+
>Nexus Operations</Link
55+
> are often registered in the same Worker as the underlying Temporal primitives
56+
they abstract.
3957
</p>
58+
<slot />
4059
<Button
4160
disabled={createDisabled}
4261
variant="primary"

Diff for: src/lib/pages/nexus-endpoints.svelte

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
</script>
4242

4343
{#if !endpoints?.length && !searchParam}
44-
<NexusEmptyState {createDisabled} />
44+
<NexusEmptyState {createDisabled}>
45+
<slot />
46+
</NexusEmptyState>
4547
{:else}
4648
<div class="mb-8 flex items-center justify-between">
4749
<h1 data-testid="namespace-selector-title">

0 commit comments

Comments
 (0)