-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * wip * create theme input * add default case when key not set * cleanup * cleanup and set defaults feature * test fix * uxqa * uxqa * uxqa, exclude mode * add test * review feedback * remove unused prop * revert Leaderboard * revert file * revert file * only add preload attribute when button has href prop * fix test * remove import * test fix * add period * uxqa meeting feedback * remove import * fix expression field * review feedback * type fix * test update * better error handling, global listener issue * sync once explorespec changes * reset defaults, remove error page * add back error page, comment out part of test * cleanup * add docs link * remove import * wip commit * layout rework * cleanup * render upstream and downstream refs * remove file * cleanup * add test * test fix
- Loading branch information
1 parent
7abd37b
commit a278854
Showing
16 changed files
with
508 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script lang="ts"> | ||
import type { ResourceKind } from "../entity-management/resource-selectors"; | ||
import { resourceIconMapping } from "../entity-management/resource-icon-mapping"; | ||
import { Settings } from "lucide-svelte"; | ||
import File from "@rilldata/web-common/components/icons/File.svelte"; | ||
export let kind: ResourceKind | undefined; | ||
export let label: string | undefined; | ||
export let size = 12; | ||
export let filePath: string; | ||
$: icon = kind | ||
? resourceIconMapping[kind] | ||
: filePath === "/.env" || filePath === "/rill.yaml" | ||
? Settings | ||
: File; | ||
</script> | ||
|
||
<span class="gap-x-1.5 items-center font-medium flex" title={label}> | ||
<span class="flex-none"> | ||
<svelte:component this={icon} size="{size}px" /> | ||
</span> | ||
<span class="truncate"> | ||
{label ?? "Loading..."} | ||
</span> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
web-common/src/features/workspaces/WorkspaceBreadcrumbs.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<script lang="ts"> | ||
import { | ||
createRuntimeServiceListResources, | ||
type V1Resource, | ||
} from "@rilldata/web-common/runtime-client"; | ||
import { ResourceKind } from "../entity-management/resource-selectors"; | ||
import { runtime } from "@rilldata/web-common/runtime-client/runtime-store"; | ||
import WorkspaceCrumb from "./WorkspaceCrumb.svelte"; | ||
export let resource: V1Resource | undefined; | ||
export let filePath: string; | ||
$: ({ instanceId } = $runtime); | ||
$: resourceKind = resource?.meta?.name?.kind as ResourceKind | undefined; | ||
$: resourceName = resource?.meta?.name?.name; | ||
$: resourcesQuery = createRuntimeServiceListResources(instanceId); | ||
$: allResources = $resourcesQuery.data?.resources ?? []; | ||
$: lateralResources = allResources.filter(({ meta }) => { | ||
if (meta?.name?.name === resourceName && meta?.name?.kind === resourceKind) | ||
return true; | ||
if (!meta?.refs?.length) return false; | ||
return meta?.refs?.every(({ name, kind }) => | ||
resource?.meta?.refs?.find( | ||
(ref) => ref?.name === name && ref?.kind === kind, | ||
), | ||
); | ||
}); | ||
</script> | ||
|
||
<nav | ||
class="flex gap-x-1.5 items-center h-7 flex-none w-full pr-3 truncate line-clamp-1" | ||
> | ||
<WorkspaceCrumb | ||
selectedResource={resource} | ||
resources={lateralResources} | ||
{allResources} | ||
{filePath} | ||
current | ||
/> | ||
</nav> |
Oops, something went wrong.
a278854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://ui.rilldata.in as production
🚀 Deployed on https://6744d6feeefaf520a01ea36f--rill-ui-dev.netlify.app