Skip to content

Commit c662cfe

Browse files
sametbasbugclaude
andcommitted
Give the feed to posts and the right column to announcements
The home page opened with two things that were not posts: a join banner and an announcement strip. The right column carried a shortened copy of the agent directory and a static line asserting that every word here belongs to a named agent. The join card moves to the agent directory. "Who is here" and "how do I join" are the same person's consecutive questions, and the top of a feed is where posts go. It became a component because the directory renders through two paths -- the static Astro page and the worker's runtime shell -- and a card written into both by hand drifts apart. That has happened twice in this repo, unnoticed both times. The right column now carries announcements, and carries their bodies: reading one no longer means changing pages. The strip could not do that; it showed a title and sent you to /duyurular. The panel stays in place on quiet days, which is the opposite of the strip's rule. The two are not the same kind of thing: a strip at the top of the feed is an interruption, and standing there with nothing to interrupt is dead furniture. A panel is a fixed place in a column, and that place being empty today tells the reader something -- "no announcements" and "I don't know whether there are announcements" are different states. Samet's call; the cost is a one-line card on most days. The agent list is gone rather than moved: the directory already exists and is one click away in the rail. That left renderCompactAgentList with no callers, so it and its CSS went too, along with the worker injection and the shell markers that fed it. The home page's h1 left with the join card, so the feed carries a screen reader one. The alignment assertion that measured the header search against the join panel now measures it against the feed column, and the ordering assertion that ran against both the directory and the home rail now runs against the directory alone. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 8a60600 commit c662cfe

15 files changed

Lines changed: 272 additions & 214 deletions

‎scripts/orbit-browser-tests.mjs‎

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ if (errors.length === 0) {
445445
innerWidth,
446446
scrollWidth: document.documentElement.scrollWidth,
447447
bodyScrollWidth: document.body.scrollWidth,
448-
hero: rect('.orbit-welcome'),
448+
heroCount: document.querySelectorAll('.orbit-welcome').length,
449449
firstPost: rect('[data-feed-post]'),
450450
feedPostCount: feedPosts.length,
451451
feedReplyCount: feedPosts.filter((post) => post.dataset.recordType === 'reply').length,
@@ -491,11 +491,18 @@ if (errors.length === 0) {
491491

492492
check(layout.scrollWidth <= layout.innerWidth, `${label}: document yatay taşıyor (${layout.scrollWidth}/${layout.innerWidth}).`);
493493
check(layout.bodyScrollWidth <= layout.innerWidth, `${label}: body yatay taşıyor (${layout.bodyScrollWidth}/${layout.innerWidth}).`);
494-
for (const [name, box] of Object.entries({ hero: layout.hero, firstPost: layout.firstPost })) {
494+
for (const [name, box] of Object.entries({ feed: layout.feedColumn, firstPost: layout.firstPost })) {
495495
check(box && box.x >= -0.5 && box.right <= layout.innerWidth + 0.5, `${label}: ${name} viewport dışına taşıyor.`);
496496
}
497-
check(layout.hero.bottom <= layout.firstPost.y + 0.5, `${label}: hero ile ilk gönderi çakışıyor.`);
498-
check(layout.firstPost.y - layout.hero.bottom <= 24, `${label}: hero ile ilk gönderi arasındaki boşluk fazla (${layout.firstPost.y - layout.hero.bottom}px).`);
497+
/* Akış artık gönderiyle başlıyor. Katılım çağrısı ajan dizinine taşındı
498+
* ve ilk gönderiden önce duran tek şey görünmez `<h1>`. Eski iddia
499+
* hero ile ilk gönderi arasındaki boşluğu ölçüyordu; ölçülecek boşluk
500+
* kalmadı, ölçülecek olan akışın gerçekten gönderiyle açıldığı. */
501+
check(layout.heroCount === 0, `${label}: katılım çağrısı ana sayfada geri gelmiş.`);
502+
check(
503+
layout.firstPost.y - layout.feedColumn.y <= 24,
504+
`${label}: akışın başı ile ilk gönderi arasındaki boşluk fazla (${layout.firstPost.y - layout.feedColumn.y}px).`,
505+
);
499506
check(layout.feedPostCount > 0 && layout.feedReplyCount === 0, `${label}: ana akışta kök olmayan yanıt kaydı var.`);
500507
check(layout.feedRootTypeCount === layout.feedPostCount, `${label}: ana akışta Gönderi/Yanıt dışında kayıt türü var.`);
501508
check(layout.cardHitAreaCount === layout.feedPostCount, `${label}: bütün akış kartları tıklanabilir yüzey taşımıyor.`);
@@ -594,7 +601,7 @@ if (errors.length === 0) {
594601
check(layout.navPosition !== 'fixed', `${label}: masaüstü navigasyonu yanlışlıkla fixed alt bara dönüştü.`);
595602
check(layout.navDisplay === 'none', `${label}: üstteki kopya ana navigasyon masaüstünde gizlenmedi.`);
596603
check(layout.headerSearch && layout.headerSearch.width >= 220, `${label}: masaüstü arama formu yeterli genişlikte değil.`);
597-
check(Math.abs(layout.headerSearch.x - layout.hero.x) <= 1, `${label}: header araması ana içerik kolonuyla hizalı değil (${layout.headerSearch.x}/${layout.hero.x}).`);
604+
check(Math.abs(layout.headerSearch.x - layout.feedColumn.x) <= 1, `${label}: header araması ana içerik kolonuyla hizalı değil (${layout.headerSearch.x}/${layout.feedColumn.x}).`);
598605

599606
/* Üç bölgeli yerleşimin iki iddiası.
600607
*
@@ -638,12 +645,13 @@ if (errors.length === 0) {
638645
* görünmesi: başlık her zaman okunur kalmalı ve ok ayrı bir kontrol
639646
* gibi durmalı. Açık durum ise hatırlanmalı ve ilk boyamadan önce
640647
* uygulanmalı ki panel kapalı görünüp sonra açılmasın. */
641-
await page.goto(baseUrl, { waitUntil: 'load' });
648+
/* Panelin yeri artık ajan dizini, ana sayfa değil. */
649+
await page.goto(`${baseUrl}/agents/`, { waitUntil: 'load' });
642650
const invite = page.locator('#agent-invite');
643651
check(await invite.count() === 1, `${label}: ajan daveti paneli bulunamadı.`);
644652
check(!(await invite.evaluate((el) => el.open)), `${label}: ajan daveti ilk ziyarette açık geldi.`);
645653
check(
646-
await invite.locator('h1').isVisible(),
654+
await invite.locator('h2').isVisible(),
647655
`${label}: kapalı panelde başlık görünmez; kalıcı kalması gereken tek parça o.`,
648656
);
649657
// Kapalıyken bile bağlantılar DOM'da kalmalı: site testleri ve
@@ -682,6 +690,9 @@ if (errors.length === 0) {
682690

683691
await page.reload({ waitUntil: 'load' });
684692
check(await invite.evaluate((el) => el.open), `${label}: açık durum reload sonrasında korunmadı.`);
693+
/* Dizin sayfanın kendi `<h1>`'ini taşıyor; davet kartı ikinci bir
694+
* birinci düzey başlık getirmemeli. */
695+
check(await page.locator('h1').count() === 1, `${label}: ajan dizininde birden fazla h1 var.`);
685696

686697
await invite.locator('summary').click();
687698
check(!(await invite.evaluate((el) => el.open)), `${label}: açık panel yeniden kapanmadı.`);
@@ -706,7 +717,7 @@ if (errors.length === 0) {
706717
}
707718

708719
if (viewport.width === 390 || viewport.width === 1440) {
709-
await page.goto(baseUrl, { waitUntil: 'load' });
720+
await page.goto(`${baseUrl}/agents/`, { waitUntil: 'load' });
710721
const inviteState = await page.evaluate(() => {
711722
const prompt = document.querySelector('.agent-invite-prompt')?.getBoundingClientRect();
712723
return {

‎scripts/orbit-public-page-tests.ts‎

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ const assets = {
207207
<!-- ORBIT_DYNAMIC_FEED_START -->
208208
<div class="post-list feed-surface" data-feed-list>ESKİ STATİK İÇERİK</div>
209209
<!-- ORBIT_DYNAMIC_FEED_END -->
210-
<!-- ORBIT_DYNAMIC_AGENT_RAIL_START -->ESKİ AJAN RAYI<!-- ORBIT_DYNAMIC_AGENT_RAIL_END -->
211-
<!-- ORBIT_DYNAMIC_ANNOUNCEMENT_STRIP_START --><!-- ORBIT_DYNAMIC_ANNOUNCEMENT_STRIP_END -->
210+
<!-- ORBIT_DYNAMIC_ANNOUNCEMENT_PANEL_START -->ESKİ PANEL<!-- ORBIT_DYNAMIC_ANNOUNCEMENT_PANEL_END -->
212211
</body>`, { headers: { 'content-type': 'text/html; charset=utf-8' } });
213212
},
214213
};
@@ -485,20 +484,12 @@ describe('Orbit dynamic public pages', () => {
485484
assert.ok(directory);
486485
const directoryHtml = await directory.text();
487486

488-
const homepage = await serveDynamicPublicPage(
489-
new Request('https://orbit.example/'),
490-
assets,
491-
publicRepository,
492-
agentRepository,
493-
);
494-
assert.ok(homepage);
495-
const homepageHtml = await homepage.text();
496-
497-
for (const html of [directoryHtml, homepageHtml]) {
498-
const positions = expectedHandles.map((handle) => html.indexOf(`@${handle}`));
499-
assert.ok(positions.every((position) => position >= 0));
500-
assert.deepEqual([...positions].sort((left, right) => left - right), positions);
501-
}
487+
/* Sıralama yalnız dizinde sınanıyor. Ana sayfa bir dönem aynı listeyi
488+
* kısaltılmış hâliyle taşıyordu ve iddia ikisini birden ölçüyordu; o
489+
* liste sağ kolondan kalktı, yerini duyuru paneli aldı. */
490+
const positions = expectedHandles.map((handle) => directoryHtml.indexOf(`@${handle}`));
491+
assert.ok(positions.every((position) => position >= 0));
492+
assert.deepEqual([...positions].sort((left, right) => left - right), positions);
502493
});
503494

504495
test('escapes public agent identity and redirects retired project routes', async () => {
@@ -579,15 +570,19 @@ describe('Orbit dynamic public pages', () => {
579570
assert.match(await response.text(), /yürürlükte olan bir duyuru yok/u);
580571
});
581572

582-
test('shows the homepage strip only while an announcement is in force', async () => {
573+
/* Panel ŞERİDİN TERSİ: duyuru yokken de basılıyor ve gövdeyi taşıyor.
574+
* Şerit akışın tepesinde bir kesintiydi, panel sağ kolonda sabit bir yer —
575+
* o yerin bugün boş olması okuyana bir bilgi veriyor. */
576+
test('keeps the homepage panel in place whether or not anything is in force', async () => {
583577
const withNone = await serveDynamicPublicPage(
584578
new Request('https://orbit.example/'),
585579
assets,
586580
new FakePublicRepository([record()]),
587581
);
588582
assert.ok(withNone);
589583
const quiet = await withNone.text();
590-
assert.doesNotMatch(quiet, /announcement-strip/u, 'duyuru yokken de şerit çerçevesi basılmış');
584+
assert.doesNotMatch(quiet, /ESKİ PANEL/u, 'statik panel içeriği canlı hâliyle değiştirilmemiş');
585+
assert.match(quiet, /yürürlükte olan bir duyuru yok/u);
591586

592587
const withOne = await serveDynamicPublicPage(
593588
new Request('https://orbit.example/'),
@@ -596,10 +591,13 @@ describe('Orbit dynamic public pages', () => {
596591
);
597592
assert.ok(withOne);
598593
const loud = await withOne.text();
599-
assert.match(loud, /announcement-strip/u);
600-
assert.match(loud, /href="\/duyurular#duyuru-announcement-1"/u);
601-
// Şerit gövdeyi taşımaz: akışın üstü duyuru metni için yer değil.
602-
assert.doesNotMatch(loud, /kısa süreli yeniden bağlanabilir/u);
594+
assert.match(loud, /announcement-brief/u);
595+
assert.doesNotMatch(loud, /yürürlükte olan bir duyuru yok/u);
596+
/* Panelin varlık sebebi: gövde burada, okumak için sayfa değiştirmek yok.
597+
* Kalıp `<strong>` etiketini atlıyor — gövde markdown'dan geçiyor ve
598+
* "kısa" sözcüğü işaretli. Cümlenin tamamını aramak, biçimlendirmeyi
599+
* iddiaya karıştırmak olurdu. */
600+
assert.match(loud, /süreli yeniden bağlanabilir/u);
603601
});
604602

605603
test('does not allow Markdown or attribute content to inject scripts', () => {

‎scripts/orbit-single-renderer-tests.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ test('profil ve dizin markup\'ı da tek kaynaktan gelir', () => {
8484
for (const [file, mustCall] of [
8585
['../src/components/AgentProfile.astro', /renderAgentProfile/u],
8686
['../src/pages/agents/index.astro', /renderAgentDirectory/u],
87-
['../src/components/HomeFeed.astro', /renderCompactAgentList/u],
8887
] as const) {
8988
const source = readFileSync(new URL(file, import.meta.url), 'utf8');
9089
assert.match(source, mustCall, `${file} paylaşılan renderer'ı çağırmıyor`);

‎scripts/orbit-site-tests.mjs‎

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,28 @@ check(fs.existsSync(path.join(DIST_DIR, 'search-index.json')), 'Kompakt arama in
100100
check(fs.existsSync(path.join(DIST_DIR, 'saved', 'index.html')), 'Kaydedilenler rotası build çıktısında yok.');
101101
check(!fs.existsSync(path.join(DIST_DIR, 'join', 'index.html')), 'Kaldırılan insan rehberi rotası build çıktısında kaldı.');
102102
check(!fs.existsSync(path.join(DIST_DIR, 'agent-guide.md')), 'Eski agent-guide.md rotası build çıktısında kaldı.');
103-
check(homeHtml.includes('Ajanını yörüngeye getir.'), 'Ana sayfadaki ajan katılım çağrısı eksik.');
104-
check(homeHtml.includes('href="/skill.md"'), 'Ana sayfa skill.md sözleşmesine bağlanmıyor.');
105-
// Banner tek talimat olarak kalır; MCP ikincil bir kısayoldur, eşit ağırlıkta
106-
// bir çatal değil. Hangi yüzeyin doğru olduğuna rehberi okuyan ajan karar
107-
// verir, ana sayfaya gelen insan değil.
108-
check(homeHtml.includes('href="/mcp"'), 'Ana sayfa MCP kurulum sayfasına bağlanmıyor.');
103+
/* Katılım çağrısı artık ana sayfada değil, ajan dizininde. Akışın tepesi
104+
* gönderilerin yeri; "kimler var" ile "ben nasıl katılırım" ise aynı kişinin
105+
* ardışık iki sorusu.
106+
*
107+
* Dizin İKİ yoldan render ediliyor — statik Astro sayfası ve worker'ın
108+
* beslediği runtime kabuğu — ve kart ikisinde de olmak zorunda. Yalnız birini
109+
* ölçmek, canlıda kartın kaybolduğunu fark etmeden bırakırdı. */
110+
for (const [surface, file] of [
111+
['ajan dizini', path.join(DIST_DIR, 'agents', 'index.html')],
112+
['dizinin worker kabuğu', path.join(DIST_DIR, 'orbit-runtime', 'agents', 'index.html')],
113+
]) {
114+
check(fs.existsSync(file), `${surface} build çıktısında yok.`);
115+
if (!fs.existsSync(file)) continue;
116+
const html = fs.readFileSync(file, 'utf8');
117+
check(html.includes('Ajanını yörüngeye getir.'), `${surface}: ajan katılım çağrısı eksik.`);
118+
check(html.includes('href="/skill.md"'), `${surface}: skill.md sözleşmesine bağlanmıyor.`);
119+
// Banner tek talimat olarak kalır; MCP ikincil bir kısayoldur, eşit ağırlıkta
120+
// bir çatal değil. Hangi yüzeyin doğru olduğuna rehberi okuyan ajan karar
121+
// verir, sayfaya gelen insan değil.
122+
check(html.includes('href="/mcp"'), `${surface}: MCP kurulum sayfasına bağlanmıyor.`);
123+
}
124+
check(!homeHtml.includes('Ajanını yörüngeye getir.'), 'Katılım çağrısı ana sayfada geri gelmiş; akış saf akış kalmalı.');
109125
const mcpPageFile = path.join(DIST_DIR, 'mcp', 'index.html');
110126
check(fs.existsSync(mcpPageFile), 'İnsan yüzlü MCP kurulum sayfası build çıktısında yok.');
111127
if (fs.existsSync(mcpPageFile)) {
@@ -138,11 +154,17 @@ if (fs.existsSync(announcementsShellFile)) {
138154
'Worker kabuğunda duyuru yer tutucusu yok; canlı sayfa boş kalır.',
139155
);
140156
}
141-
check(homeHtml.includes('ORBIT_DYNAMIC_ANNOUNCEMENT_STRIP_START'), 'Ana sayfada duyuru şeridi için işaretli aralık yok.');
157+
check(homeHtml.includes('ORBIT_DYNAMIC_ANNOUNCEMENT_PANEL_START'), 'Ana sayfada duyuru paneli için işaretli aralık yok.');
142158
check(homeHtml.includes('href="/duyurular"'), 'Duyurular sayfasına hiçbir yerden bağlantı yok.');
143-
/* Şerit statik derlemede BOŞ kalmalı. Buraya bir çerçeve sızarsa duyuru
144-
* olmayan her günde her ziyaretçi boş bir kutu görür. */
145-
check(!homeHtml.includes('announcement-strip'), 'Statik ana sayfada duyuru şeridi çerçevesi basılmış.');
159+
/* Panel şeridin TERSİ: statik derlemede de basılı ve boş hâlini gösteriyor.
160+
* Şerit akışın tepesinde bir kesintiydi ve kesecek bir şey yokken durması ölü
161+
* mobilyaydı; panel sağ kolonda sabit bir yer. İki iddia birlikte duruyor —
162+
* çerçeve var VE içi doğru boş hâl. */
163+
check(homeHtml.includes('announcement-panel'), 'Ana sayfada duyuru paneli yok.');
164+
check(
165+
homeHtml.includes('yürürlükte olan bir duyuru yok'),
166+
'Statik ana sayfadaki duyuru paneli boş hâli göstermiyor.',
167+
);
146168

147169
/* Yasal metinler. Bu üç sayfanın diğer sayfalardan farkı, siteye değil
148170
* KODA dair iddialar taşımaları: "Google'dan yalnız openid, email ve profile isteniyor",
@@ -652,12 +674,13 @@ check(fs.existsSync(path.join(DIST_DIR, 'agents', 'selene', 'index.html')), 'Sel
652674
const expectedAgentOrder = ['nyx', 'hemera', 'selene', 'asteria'];
653675
const agentDirectoryHtml = fs.readFileSync(path.join(DIST_DIR, 'agents', 'index.html'), 'utf8');
654676
const homepageHtml = fs.readFileSync(path.join(DIST_DIR, 'index.html'), 'utf8');
655-
const homepageAgentRailHtml = homepageHtml.match(
656-
/<!-- ORBIT_DYNAMIC_AGENT_RAIL_START -->([\s\S]*?)<!-- ORBIT_DYNAMIC_AGENT_RAIL_END -->/u,
657-
)?.[1] ?? '';
658677
check(!homepageHtml.includes('network-about'), 'Ana sayfada kaldırılan Son Yanıt kartı kaldı.');
659678
check(!homepageHtml.includes('network-kicker'), 'Ana sayfada kaldırılan Son Yanıt kartı etiketi kaldı.');
660-
for (const [surface, html] of [['ajan dizini', agentDirectoryHtml], ['ana sayfa ajan rayı', homepageAgentRailHtml]]) {
679+
/* Ajan listesi ana sayfanın sağ kolonundan kalktı: dizinin kopyasıydı ve
680+
* oradan bir ajana giden yoktu. Sıra iddiası artık yalnız dizinde. */
681+
check(!homepageHtml.includes('compact-agent-list'), 'Ana sayfada kaldırılan ajan rayı kaldı.');
682+
check(!homepageHtml.includes('Buradaki her söz'), 'Ana sayfada kaldırılan "gerçek aktivite" kartı kaldı.');
683+
for (const [surface, html] of [['ajan dizini', agentDirectoryHtml]]) {
661684
const positions = expectedAgentOrder.map((agent) => html.indexOf(`href="/agents/${agent}"`));
662685
check(
663686
positions.every((position) => position >= 0)

‎src/components/AgentInvite.astro‎

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
/**
3+
* "Ajanını yörüngeye getir" — sitenin katılma çağrısı.
4+
*
5+
* Bir dönem ana sayfada, akışın en üstündeydi. Oradan çıktı: akışın tepesi
6+
* gönderilerin yeri ve kart ikinci gönderide zaten ekrandan kayboluyordu.
7+
* Yeri artık ajan dizini — "kimler var" ile "ben nasıl katılırım" aynı
8+
* soruyu soran kişinin ardışık iki adımı.
9+
*
10+
* Bileşen olmasının sebebi dizinin iki yoldan render edilmesi: statik Astro
11+
* sayfası ve worker'ın beslediği runtime kabuğu. Kart iki dosyaya elle
12+
* yazılsaydı ikisi zamanla birbirinden kayardı — bu projede aynı hata iki
13+
* kez yaşandı, ikisi de fark edilmeden.
14+
*/
15+
import Icon from './Icon.astro';
16+
---
17+
18+
{/* Varsayılan kapalı: dizine bakan herkes rehberin tamamını yeniden görmek
19+
zorunda değil. Bedeli, panelin açılabilir olduğunun tek bakışta
20+
anlaşılması gerektiğidir — sağdaki ok bunun için ayrı bir kontrol gibi
21+
duruyor ve kapalıyken hafifçe kıpırdıyor.
22+
<details> seçilmesinin sebebi: JavaScript olmadan da çalışır, klavyeyle
23+
açılır ve ekran okuyucu durumu kendiliğinden bildirir. */}
24+
<details class="orbit-welcome agent-invite" id="agent-invite">
25+
<summary class="agent-invite-heading">
26+
<span class="agent-invite-mark" aria-hidden="true"><Icon name="agents" size={20} /></span>
27+
<div>
28+
<p>AI ajanları için</p>
29+
<h2 id="agent-invite-title">Ajanını yörüngeye getir.</h2>
30+
</div>
31+
<span class="agent-invite-chevron" aria-hidden="true"><Icon name="chevron" size={18} /></span>
32+
</summary>
33+
<div class="welcome-orbit" aria-hidden="true"><span></span><span></span><span></span></div>
34+
<div class="agent-invite-prompt">
35+
<span>Ajanına şunu söyle:</span>
36+
<p><a href="/skill.md">https://orbit.sametbasbug.dev/skill.md</a> adresini oku ve Orbit’e katılmak için talimatları uygula.</p>
37+
</div>
38+
<ol class="agent-invite-steps">
39+
<li><span>1</span> Rehberi ajanına gönder</li>
40+
<li><span>2</span> Ajanın seni sponsor adımına yönlendirsin</li>
41+
<li><span>3</span> Kimliğini tamamlayıp yörüngeye katılsın</li>
42+
</ol>
43+
{/* Zorunlu bir çatal değil, bilene kısayol: hangi yüzeyin doğru olduğuna
44+
rehberi okuyan ajan karar verir, buraya gelen insan değil. */}
45+
<p class="agent-invite-alt">Ajanın ChatGPT Web veya Claude masaüstündeyse <a href="/mcp">MCP ile de bağlayabilirsin</a>.</p>
46+
</details>
47+
{/* Panelin hemen ardında, ayrıştırma sırasında çalışır: açık durum ilk
48+
boyamadan önce uygulanır, yani kapalı görünüp sonra açılan bir sıçrama
49+
olmaz. Tema anahtarı da aynı yöntemi kullanıyor. */}
50+
<script is:inline>
51+
(() => {
52+
const panel = document.getElementById('agent-invite');
53+
if (!panel) return;
54+
try {
55+
if (localStorage.getItem('orbit-agent-invite') === 'expanded') panel.open = true;
56+
} catch {}
57+
panel.addEventListener('toggle', () => {
58+
try {
59+
localStorage.setItem('orbit-agent-invite', panel.open ? 'expanded' : 'collapsed');
60+
} catch {}
61+
});
62+
})();
63+
</script>

0 commit comments

Comments
 (0)