also looking at this
fix: MVP-readiness fixes — restore lost UI feedback, register safety, analytics error state, mobile + a11y
#31
7 files
+123
-29
| @@ -113,7 +113,6 @@ | ||
| 113 | 113 | const connectionLabel = root.querySelector('[data-bluesky-connection-label]') |
| 114 | 114 | const publishLabel = root.querySelector('[data-bluesky-publish-label]') |
| 115 | 115 | const buttons = Array.from(root.querySelectorAll('[data-bluesky-publish], [data-bluesky-publish-top]')) |
| 116 | const toast = window.postlineToast?.show | |
| 117 | 116 | const providerToggles = root.querySelector('[data-provider-toggles]') |
| 118 | 117 | const composeImageRow = root.querySelector('[data-compose-image-row]') |
| 119 | 118 | const composeImage = root.querySelector('[data-compose-image]') |
| @@ -162,8 +161,13 @@ | ||
| 162 | 161 | let editRemoveImage = false |
| 163 | 162 | |
| 164 | 163 | const setStatus = (message, tone = 'neutral', options = {}) => { |
| 165 | if (toast) { | |
| 166 | toast({ | |
| 164 | // Resolve the toast helper at call time. It's a deferred module that | |
| 165 | // loads AFTER this inline script parses, so capturing it eagerly (as | |
| 166 | // this used to) left it undefined on every full page load — silently | |
| 167 | // dropping all feedback to the console. | |
| 168 | const show = window.postlineToast?.show | |
| 169 | if (show) { | |
| 170 | show({ | |
| 167 | 171 | title: options.title, |
| 168 | 172 | message, |
| 169 | 173 | tone: tone === 'success' ? 'success' : tone === 'error' ? 'error' : 'info', |