Retro Bulletin Board Systems on atproto. Web app and TUI. lazy mirror of alyraffauf/atbbs atbbs.xyz
forums python tui atproto bbs
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

inbox -> messages

+8 -8
+2 -2
tui/app.py
··· 61 61 ("ctrl+q", "quit", "quit"), 62 62 ("ctrl+l", "login", "account"), 63 63 ("ctrl+r", "refresh", "refresh"), 64 - ("ctrl+t", "inbox", "inbox"), 64 + ("ctrl+t", "inbox", "messages"), 65 65 ] 66 66 SCREENS = {"home": HomeScreen} 67 67 ··· 111 111 112 112 def action_inbox(self) -> None: 113 113 if not self.user_session: 114 - self.notify("Log in to see your inbox.", severity="warning") 114 + self.notify("Log in to see your messages.", severity="warning") 115 115 return 116 116 from tui.screens.activity import ActivityScreen 117 117
+4 -4
tui/screens/activity.py
··· 22 22 23 23 yield Breadcrumb( 24 24 ("@bbs", 1), 25 - ("inbox", 0), 25 + ("messages", 0), 26 26 ) 27 27 with VerticalScroll(id="activity-scroll"): 28 - yield Static("Inbox", classes="title") 28 + yield Static("Messages", classes="title") 29 29 yield Static( 30 30 "Replies to your threads and quotes of your replies.", 31 31 classes="subtitle", ··· 100 100 session = self.app.user_session 101 101 if not session: 102 102 try: 103 - self.query_one("#activity-loading").update("Log in to see your inbox.") 103 + self.query_one("#activity-loading").update("Log in to see your messages.") 104 104 except Exception: 105 105 pass 106 106 return ··· 112 112 try: 113 113 self._items = await fetch_inbox(client, session["did"], session["pds_url"]) 114 114 except Exception: 115 - self.notify("Failed to load inbox.", severity="error") 115 + self.notify("Failed to fetch messages.", severity="error") 116 116 return 117 117 118 118 try:
+2 -2
web/templates/account.html
··· 8 8 9 9 <!-- Tabs --> 10 10 <div class="flex gap-4 border-b border-neutral-800 mb-6"> 11 - <button onclick="showTab('inbox')" id="tab-inbox" class="tab-btn py-2 text-neutral-200 border-b-2 border-neutral-200">Inbox</button> 11 + <button onclick="showTab('inbox')" id="tab-inbox" class="tab-btn py-2 text-neutral-200 border-b-2 border-neutral-200">Messages</button> 12 12 {% if has_bbs %} 13 13 <button onclick="showTab('bbs')" id="tab-bbs" class="tab-btn py-2 text-neutral-500 hover:text-neutral-300 border-b-2 border-transparent">{{ bbs_name }}</button> 14 14 {% else %} ··· 124 124 }) 125 125 .catch(() => { 126 126 const loading = document.getElementById('inbox-loading'); 127 - if (loading) loading.textContent = 'Failed to load inbox.'; 127 + if (loading) loading.textContent = 'Failed to fetch messages.'; 128 128 }); 129 129 } 130 130