Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

Commit

Public channels come first in the chat sidebar: above Pinned and the workspace's own Channels, so what's open to anyone on g1t is the first thing in the list. Checked: apps/web tsc -b.

G1t-Session:
ses_01m4zy4bm7ecmayc75r5pnyvkk
syntaqxcommitted Parent0223f27Browse files
1 file+12−120/1 viewed
+12−12
187187 <p className="px-2 py-3 text-xs leading-relaxed text-faint">Chat didn&apos;t answer. Your conversations will show here once it does.</p>
188188 ) : (
189189 <>
190+ {/* Open to anyone on g1t, apart from the workspace's own, and first: only when there are some, or for a guest, to find them. */}
191+ {(publicChannels.length > 0 || (sidebar.guest && filter === "all" && !query)) && (
192+ <Section id="public" title="Public channels" folded={folded} onFold={fold} keep={publicChannels.filter(keepShown).map(conversation)}>
193+ {publicChannels.map(conversation)}
194+ {sidebar.guest && filter === "all" && !query && (
195+ <>
196+ {publicChannels.length === 0 && <Empty>You&apos;re in none of its public channels yet.</Empty>}
197+ <BrowseRow slug={slug} count={sidebar.browsable} guest />
198+ </>
199+ )}
200+ </Section>
201+ )}
190202 {pinned.length > 0 && (
191203 <Section id="pinned" title="Pinned" folded={folded} onFold={fold} keep={pinned.filter(keepShown).map(conversation)}>
192204 {pinned.map(conversation)}
205217 {channels.map(conversation)}
206218 {channels.length === 0 && filter === "all" && !query && <Empty>No channels yet.</Empty>}
207219 {!sidebar.guest && filter === "all" && !query && <BrowseRow slug={slug} count={sidebar.browsable} />}
208− </Section>
209− )}
210− {/* Open to anyone on g1t, apart from the workspace's own: only when there are some, or for a guest, to find them. */}
211− {(publicChannels.length > 0 || (sidebar.guest && filter === "all" && !query)) && (
212− <Section id="public" title="Public channels" folded={folded} onFold={fold} keep={publicChannels.filter(keepShown).map(conversation)}>
213− {publicChannels.map(conversation)}
214− {sidebar.guest && filter === "all" && !query && (
215− <>
216− {publicChannels.length === 0 && <Empty>You&apos;re in none of its public channels yet.</Empty>}
217− <BrowseRow slug={slug} count={sidebar.browsable} guest />
218− </>
219− )}
220220 </Section>
221221 )}
222222 {(sidebar.invitations?.length ?? 0) > 0 && filter === "all" && !query && (

Comments

Sign in to comment.