Commit 6bd3dbc
authored
ENG-1491: Part of the discourse context query settings blocks appears in the page if you select "hide interface" in the discourse context menu at the top of the page (#953)
* ENG-1491 Hide settings UI in ResultsView when preventSavingSettings is true
Discourse context renders ResultsView with preventSavingSettings={true}
but the kebab menu still showed settings items (Layout, Alias, Hide
Interface, etc.). Clicking them wrote Roam blocks onto the page.
Hide the Results submenu, Alias, Hide Interface, and Copy Query items
when preventSavingSettings is true. Menu collapses to "Share Data" in
discourse context and overlays.
* void 3 floating promises in ResultsView handlers
Pre-existing no-floating-promises warnings on setInputSetting /
navigator.clipboard.writeText calls. The previous commit re-indented
these lines due to JSX wrapping, so reviewdog now flags them as added.
Mark them void — they're fire-and-forget side effects.
* Revert Copy Query hide; keep scope on settings only
Copy Query is read-only — it doesn't save settings, so gating it behind
preventSavingSettings was a misuse of the flag. It is still broken in
discourse context (copies whole page tree wrapped in {{query block}})
but that's a separate bug for a separate ticket.
Also restores the trailing Divider to unconditional since the only
reason it was conditional was the Copy Query wrap.
* Forward preventSavingSettings to ResultsTable
* Guard onDragEnd column-width persistence behind preventSavingSettings
Mirrors the existing guard in resultHeaderSetFilters so dragging column
borders in ResultsView no longer writes layout widths to Roam blocks
when the flag is on. Addresses review comment on onDragEnd.1 parent d70a335 commit 6bd3dbc
2 files changed
Lines changed: 110 additions & 100 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| 627 | + | |
627 | 628 | | |
628 | 629 | | |
629 | 630 | | |
| |||
632 | 633 | | |
633 | 634 | | |
634 | 635 | | |
635 | | - | |
| 636 | + | |
636 | 637 | | |
637 | 638 | | |
638 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
| 1152 | + | |
| 1153 | + | |
1173 | 1154 | | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1185 | 1202 | | |
1186 | 1203 | | |
1187 | | - | |
1188 | | - | |
| 1204 | + | |
| 1205 | + | |
1189 | 1206 | | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1190 | 1214 | | |
1191 | | - | |
1192 | | - | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1193 | 1241 | | |
1194 | | - | |
1195 | | - | |
| 1242 | + | |
| 1243 | + | |
1196 | 1244 | | |
1197 | | - | |
1198 | | - | |
1199 | 1245 | | |
1200 | 1246 | | |
1201 | | - | |
1202 | | - | |
| 1247 | + | |
| 1248 | + | |
1203 | 1249 | | |
| 1250 | + | |
| 1251 | + | |
1204 | 1252 | | |
1205 | 1253 | | |
| 1254 | + | |
| 1255 | + | |
1206 | 1256 | | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
| 1257 | + | |
| 1258 | + | |
1220 | 1259 | | |
1221 | | - | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
1222 | 1271 | | |
1223 | 1272 | | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
| 1273 | + | |
1266 | 1274 | | |
1267 | 1275 | | |
1268 | 1276 | | |
| |||
1324 | 1332 | | |
1325 | 1333 | | |
1326 | 1334 | | |
1327 | | - | |
| 1335 | + | |
1328 | 1336 | | |
1329 | 1337 | | |
1330 | 1338 | | |
| |||
1369 | 1377 | | |
1370 | 1378 | | |
1371 | 1379 | | |
| 1380 | + | |
1372 | 1381 | | |
1373 | 1382 | | |
1374 | 1383 | | |
| |||
0 commit comments