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.

cleanup error messaging

+8 -8
+1 -1
tui/screens/board.py
··· 63 63 cursor=cursor, 64 64 ) 65 65 except Exception: 66 - self.notify("Failed to load threads.", severity="error") 66 + self.notify("Could not fetch threads.", severity="error") 67 67 return 68 68 69 69 lv = self.query_one("#thread-list", ListView)
+2 -2
tui/screens/compose.py
··· 80 80 title = self.query_one("#thread-title", Input).value.strip() 81 81 body = self.query_one("#thread-body", TextArea).text.strip() 82 82 if not title or not body: 83 - self.notify("Title and body are required.", severity="error") 83 + self.notify("Title and body cannot be empty.", severity="error") 84 84 return 85 85 86 86 board_uri = f"at://{self.bbs.identity.did}/xyz.atboards.board/{self.board.slug}" ··· 187 187 188 188 body = self.query_one("#reply-body", TextArea).text.strip() 189 189 if not body: 190 - self.notify("Reply body is required.", severity="error") 190 + self.notify("Message body cannot be empty.", severity="error") 191 191 return 192 192 193 193 # Handle file attachment
+2 -2
tui/screens/thread.py
··· 72 72 cursor=cursor, 73 73 ) 74 74 except Exception: 75 - self.notify("Failed to load replies.", severity="error") 75 + self.notify("Could not fetch replies.", severity="error") 76 76 return 77 77 78 78 scroll = self.query_one("#thread-scroll") ··· 126 126 self.thread, 127 127 ) 128 128 except Exception: 129 - self.notify("Failed to load replies.", severity="error") 129 + self.notify("Could not fetch replies.", severity="error") 130 130 return 131 131 132 132 scroll = self.query_one("#thread-scroll")
+1 -1
tui/util.py
··· 7 7 """Return the user session if logged in and not banned, else notify and return None.""" 8 8 session = screen.app.user_session 9 9 if not session: 10 - screen.notify("You are not logged in.", severity="error") 10 + screen.notify("You must be logged in to do that.", severity="error") 11 11 return None 12 12 if session["did"] in screen.bbs.site.banned_dids: 13 13 screen.notify("You have been banned from this BBS.", severity="error")
+1 -1
web/templates/board.html
··· 103 103 }) 104 104 .catch(() => { 105 105 const loading = document.getElementById('threads-loading'); 106 - if (loading) loading.textContent = 'Failed to load threads.'; 106 + if (loading) loading.textContent = 'Could not fetch threads.'; 107 107 }); 108 108 } 109 109
+1 -1
web/templates/thread.html
··· 162 162 }) 163 163 .catch(() => { 164 164 const loading = document.getElementById('replies-loading'); 165 - if (loading) loading.textContent = 'Failed to load replies.'; 165 + if (loading) loading.textContent = 'Could not fetch replies.'; 166 166 }); 167 167 } 168 168