GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(web): Lazurio shell slot · Lazurio/t3code@8172ea6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web
    • index.html
    • src/components/sidebar
      • SidebarChrome.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/index.html‎

Copy file name to clipboardExpand all lines: apps/web/index.html
+48Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,15 +682,63 @@
682682
</script>
683683
<!-- vite.config.ts stamps the web build's channel into this title. -->
684684
<title>T3 Code</title>
685+
<!-- Lazurio shell (docs/operations/lazurio-fork-release.md "Lazurio shell"): served by the Environment's Launchpad; absent outside Lazurio. -->
686+
<script type="module" src="/.lazurio/shell.js" vite-ignore></script>
687+
<style>
688+
#root {
689+
box-sizing: border-box;
690+
padding-left: var(--lazurio-rail-width, 0px);
691+
}
692+
/* T3's sidebar and its toggle are position: fixed; contain them beside the rail, not under it. */
693+
lazurio-rail:defined ~ #root [data-slot="sidebar-wrapper"] {
694+
contain: layout paint;
695+
}
696+
/* The shell's colour roles, from T3's own sidebar tokens, so the shell follows every T3
697+
theme, light and dark. Declared where T3 recomputes its sidebar palette, so they resolve
698+
against the sidebar's own values; the rail joins that scope (data-app-sidebar) and reads
699+
as one surface with T3's sidebar. */
700+
:root,
701+
[data-app-sidebar] {
702+
--lazurio-surface: var(--sidebar);
703+
--lazurio-ink: var(--contrast-sidebar-foreground);
704+
--lazurio-ink-muted: var(--contrast-sidebar-muted-foreground);
705+
--lazurio-line: var(--contrast-sidebar-border);
706+
--lazurio-line-strong: color-mix(
707+
in oklab,
708+
var(--contrast-sidebar-foreground) 24%,
709+
var(--sidebar)
710+
);
711+
--lazurio-hover: var(--sidebar-row-hover);
712+
--lazurio-selected: var(--sidebar-row-selected);
713+
--lazurio-control: var(--sidebar-control-surface);
714+
--lazurio-raised: var(--sidebar-row-active);
715+
--lazurio-overlay: var(--popover);
716+
--lazurio-overlay-ink: var(--contrast-popover-foreground);
717+
--lazurio-focus: var(--ring);
718+
}
719+
/* The column head keeps the inset the Launchpad's column gives it (10 px each side), so the
720+
picker and the switch stand where they do in Apps and in the prototype. */
721+
#root lazurio-column-head {
722+
margin-inline: 10px;
723+
}
724+
/* T3 grains its chrome surfaces (surface-grain); without it the rail reads a shade apart. */
725+
lazurio-rail:defined {
726+
background-image: var(--surface-grain);
727+
background-repeat: repeat;
728+
background-size: var(--surface-grain-size);
729+
}
730+
</style>
685731
</head>
686732
<body>
733+
<lazurio-rail data-app-sidebar app="chat"></lazurio-rail>
687734
<div id="root">
688735
<div id="boot-shell">
689736
<div id="boot-shell-card" aria-label="T3 Code splash screen">
690737
<img id="boot-shell-logo" src="/apple-touch-icon.png" alt="T3 Code" />
691738
</div>
692739
</div>
693740
</div>
741+
<lazurio-buddy></lazurio-buddy>
694742
<script type="module" src="/src/bootstrap.ts"></script>
695743
</body>
696744
</html>
Collapse file

‎apps/web/src/components/sidebar/SidebarChrome.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/sidebar/SidebarChrome.tsx
+16-2Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ArrowLeftIcon, ArrowRightIcon, ChartNoAxesColumnIcon, SettingsIcon } from "lucide-react";
22
import type { ReactNode } from "react";
3-
import { memo } from "react";
3+
import { createElement, memo } from "react";
44
import { Link, useLocation, useNavigate } from "@tanstack/react-router";
55

66
import { useAtomValue } from "@effect/atom-react";
@@ -40,7 +40,7 @@ import { SidebarUpdateArchitectureWarning, SidebarUpdatePill } from "./SidebarUp
4040
import { PullRequestGlyph } from "~/components/pullRequest/pullRequestIcons";
4141
import { observeResize } from "~/lib/observeResize";
4242

43-
export const SidebarChromeHeader = memo(function SidebarChromeHeader({
43+
const SidebarChromeTitlebar = memo(function SidebarChromeTitlebar({
4444
isElectron,
4545
}: {
4646
isElectron: boolean;
@@ -93,6 +93,20 @@ export const SidebarChromeHeader = memo(function SidebarChromeHeader({
9393
);
9494
});
9595

96+
// Lazurio shell (docs/operations/lazurio-fork-release.md): every sidebar's top row, with its toggle
97+
// and the wordmark, has the column head under it: the Environment picker and the app switch.
98+
// Undefined, the element renders nothing.
99+
export const SidebarChromeHeader = memo(function SidebarChromeHeader(props: {
100+
isElectron: boolean;
101+
}) {
102+
return (
103+
<>
104+
<SidebarChromeTitlebar {...props} />
105+
{createElement("lazurio-column-head", { active: "chat" })}
106+
</>
107+
);
108+
});
109+
96110
export function SidebarBrandWidthProbe({
97111
isElectron,
98112
onWidthChange,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.