@fungi.computer/tourtois 0.12.21 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -109,6 +109,7 @@ export declare function useAppDirectory(teamId: string, directoryReader: () => P
109
109
  installationId: string;
110
110
  displayName: string;
111
111
  state: "failed" | "installing" | "needs-runtime";
112
+ appId?: string | undefined;
112
113
  reason?: {
113
114
  code: "unknown" | "build_failed" | "network" | "unsupported";
114
115
  message: string;
@@ -195,6 +195,22 @@ function ArrangedDesktop({ owner, ...props }) {
195
195
  });
196
196
  const frames = [...binding.frames.values()];
197
197
  const height = Math.max(0, ...frames.map((frame) => frame.y + frame.height));
198
+ // Phones and arranging fit each card to its content. Otherwise cards that
199
+ // share a row reach the tallest neighbour's bottom, so Inbox matches Launcher.
200
+ const evenRows = !props.phone && !editing;
201
+ const evenRowHeight = (id) => {
202
+ const frame = binding.frames.get(id);
203
+ const cell = placements.find((entry) => entry.id === id);
204
+ if (!frame || !cell)
205
+ return 0;
206
+ const bottom = Math.max(frame.y + frame.height, ...placements
207
+ .filter((other) => other.row < cell.row + cell.h && cell.row < other.row + other.h)
208
+ .map((other) => {
209
+ const otherFrame = binding.frames.get(other.id);
210
+ return otherFrame ? otherFrame.y + otherFrame.height : 0;
211
+ }));
212
+ return bottom - frame.y;
213
+ };
198
214
  const warnings = [
199
215
  ...props.apps
200
216
  .filter((app) => app.availability !== "available" ||
@@ -313,7 +329,9 @@ function ArrangedDesktop({ owner, ...props }) {
313
329
  left: frame.x,
314
330
  top: frame.y,
315
331
  width: frame.width,
316
- height: Math.min(contentHeights.get(item.id) ?? frame.height, frame.height),
332
+ height: evenRows
333
+ ? evenRowHeight(item.id)
334
+ : Math.min(contentHeights.get(item.id) ?? frame.height, frame.height),
317
335
  }, onPointerDown: (event) => {
318
336
  // Touch has no menu to reach Arrange from: a long press enters it.
319
337
  if (editing || event.pointerType !== "touch")
@@ -48,11 +48,21 @@
48
48
  @media (max-width: 640px) {
49
49
  .tourtois-welcome {
50
50
  flex-wrap: wrap;
51
- gap: var(--spacing-md);
51
+ gap: var(--spacing-sm) var(--spacing-md);
52
+ padding-block: 0;
53
+ margin-block-end: var(--spacing-sm);
54
+ }
55
+ .tourtois-welcome-mascot {
56
+ inline-size: 2.5rem;
57
+ block-size: 2.5rem;
52
58
  }
53
59
  .tourtois-welcome-text {
54
60
  flex-basis: calc(100% - 4rem);
55
61
  }
62
+ /* The keyboard shortcut means nothing on a phone; the App grid is the way in. */
63
+ .tourtois-welcome-hint {
64
+ display: none;
65
+ }
56
66
  .tourtois-welcome-actions {
57
67
  flex: 1 1 100%;
58
68
  }
@@ -86,3 +96,28 @@
86
96
  .tourtois-install-notes .caps-failure-line > .caps-status {
87
97
  margin-block-start: 0;
88
98
  }
99
+
100
+ /* On a wide desktop the welcome is the Launcher's hero, not a thin banner. */
101
+ @media (min-width: 1100px) {
102
+ .tourtois-welcome {
103
+ flex-direction: column;
104
+ gap: var(--spacing-md);
105
+ padding-block: var(--spacing-lg);
106
+ margin-block-end: var(--spacing-lg);
107
+ text-align: center;
108
+ }
109
+ .tourtois-welcome-mascot {
110
+ inline-size: 5rem;
111
+ block-size: 5rem;
112
+ }
113
+ .tourtois-welcome-text h3 {
114
+ font-size: var(--text-xl);
115
+ }
116
+ .tourtois-welcome-text p {
117
+ font-size: var(--text-base);
118
+ }
119
+ .tourtois-welcome-text .tourtois-welcome-hint {
120
+ margin-block-start: var(--spacing-sm);
121
+ font-size: var(--text-sm);
122
+ }
123
+ }
package/dist/shell.css CHANGED
@@ -772,6 +772,12 @@
772
772
  .tourtois-desktop-stage {
773
773
  position: relative;
774
774
  }
775
+ @media (min-width: 1100px) {
776
+ .tourtois-desktop-stage {
777
+ max-inline-size: 76rem;
778
+ margin-inline: auto;
779
+ }
780
+ }
775
781
  .tourtois-desktop-tile {
776
782
  position: absolute;
777
783
  min-width: 0;
@@ -793,6 +799,16 @@
793
799
  flex: 1;
794
800
  overflow: auto;
795
801
  }
802
+ /* A lone empty state sits in the middle of a card that is taller than it. The
803
+ content box keeps its natural height, so the card still measures to fit. */
804
+ .tourtois-gill-body:has(> .tourtois-gill-content > .empty-state) {
805
+ display: flex;
806
+ flex-direction: column;
807
+ }
808
+ .tourtois-gill-body:has(> .tourtois-gill-content > .empty-state)
809
+ > .tourtois-gill-content {
810
+ margin-block: auto;
811
+ }
796
812
  .tourtois-gill-text-row {
797
813
  display: flex;
798
814
  flex-direction: column;
@@ -917,6 +933,35 @@
917
933
  width: 4rem;
918
934
  height: 4rem;
919
935
  }
936
+ @media (max-width: 640px) {
937
+ /* Two dense rows of keys on a phone keep the Inbox in the first screen. */
938
+ .tourtois-launcher-grid[data-size="lg"] {
939
+ row-gap: var(--spacing-xs);
940
+ }
941
+ .tourtois-launcher-grid[data-size="lg"] .caps-app-grid-icon {
942
+ width: 3.5rem;
943
+ height: 3.5rem;
944
+ }
945
+ .tourtois-launcher-more {
946
+ margin-block-start: 0;
947
+ }
948
+ .tourtois-desktop .tourtois-gill-frame > .caps-card-header {
949
+ padding-block-end: var(--spacing-sm);
950
+ }
951
+ }
952
+ /* Wide desktops give the Launcher full-size keys to fill its card. */
953
+ @media (min-width: 1100px) {
954
+ .tourtois-launcher-grid[data-size="lg"] {
955
+ grid-template-columns: repeat(auto-fit, 6rem);
956
+ justify-content: center;
957
+ row-gap: var(--spacing-md);
958
+ padding-block: var(--spacing-lg);
959
+ }
960
+ .tourtois-launcher-grid[data-size="lg"] .caps-app-grid-icon {
961
+ width: 5rem;
962
+ height: 5rem;
963
+ }
964
+ }
920
965
  .tourtois-gill-frame > .caps-card-header {
921
966
  padding: var(--spacing-lg);
922
967
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/tourtois",
3
- "version": "0.12.21",
3
+ "version": "0.13.0",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "description": "Tourtois: the trusted desktop shell for Oyster and Fungi, with host-supplied Settings sections",
6
6
  "type": "module",
@@ -79,11 +79,11 @@
79
79
  "dependencies": {
80
80
  "@fungi.computer/agar": "0.9.1",
81
81
  "@fungi.computer/cairn": "0.1.0",
82
- "@fungi.computer/caps": "0.10.5",
82
+ "@fungi.computer/caps": "0.10.6",
83
83
  "@fungi.computer/ear-tag": "0.1.0",
84
84
  "@fungi.computer/gills": "0.3.0",
85
85
  "@fungi.computer/maosaico": "0.1.2",
86
- "@fungi.computer/parakeet": "0.11.12",
86
+ "@fungi.computer/parakeet": "0.11.13",
87
87
  "@fungi.computer/puffball": "0.5.5",
88
88
  "@fungi.computer/shiitake": "0.13.0",
89
89
  "@fungi.computer/sigils": "0.3.1",
@@ -100,13 +100,13 @@
100
100
  "lucide-react": "0.460.0",
101
101
  "react-dom": "18.3.1",
102
102
  "zod": "4.4.3",
103
- "@fungi.computer/nacre": "0.4.5"
103
+ "@fungi.computer/nacre": "0.4.6"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "react": "^18.3.1 || ^19.2.0"
107
107
  },
108
108
  "devDependencies": {
109
- "@fungi.computer/oyster": "0.20.1",
109
+ "@fungi.computer/oyster": "0.20.4",
110
110
  "@cloudflare/workers-types": "5.20260828.1",
111
111
  "@fungi.computer/forage": "0.3.5",
112
112
  "@fungi.computer/mycelium": "0.3.8",
@@ -118,7 +118,7 @@
118
118
  "typescript": "5.9.3",
119
119
  "vite": "8.2.2",
120
120
  "vitest": "4.1.11",
121
- "wrangler": "4.156.2",
121
+ "wrangler": "4.159.0",
122
122
  "eslint": "10.9.1",
123
123
  "oxlint": "1.78.0",
124
124
  "tsx": "4.23.12",