Updates to Allowlist Selection
This commit is contained in:
+13
-10
@@ -56,12 +56,13 @@ class OTPActivitiesWidget(Static):
|
||||
layout: vertical;
|
||||
}
|
||||
#activity_preview_container {
|
||||
height: 75%;
|
||||
height: 1fr;
|
||||
border: none;
|
||||
padding: 1 1;
|
||||
}
|
||||
#activity_buttons {
|
||||
height: 25%;
|
||||
height: auto;
|
||||
min-height: 3;
|
||||
padding: 1 1;
|
||||
content-align: center middle;
|
||||
}
|
||||
@@ -481,16 +482,18 @@ class ActivityDetailWidget(Static):
|
||||
layout: vertical;
|
||||
}
|
||||
#detail_table_container {
|
||||
height: 75%;
|
||||
height: 1fr;
|
||||
padding: 1 1;
|
||||
}
|
||||
#selection_buttons {
|
||||
height: 10%;
|
||||
height: auto;
|
||||
min-height: 3;
|
||||
padding: 1 1;
|
||||
content-align: center middle;
|
||||
}
|
||||
#detail_buttons {
|
||||
height: 15%;
|
||||
height: auto;
|
||||
min-height: 3;
|
||||
padding: 1 1;
|
||||
content-align: center middle;
|
||||
}
|
||||
@@ -649,7 +652,7 @@ class ActivityDetailWidget(Static):
|
||||
logger.exception("Failed to sort by column %s: %s", column_key, exc)
|
||||
return
|
||||
|
||||
# ✅ Only refresh rows, not columns
|
||||
# ✅ Only refresh rows, not columns
|
||||
await self._build_table(rebuild=False)
|
||||
|
||||
async def on_button_pressed(self, event) -> None:
|
||||
@@ -728,13 +731,13 @@ class ActivityDetailWidget(Static):
|
||||
if self.activities_df is None or self.activities_df.empty:
|
||||
logger.info("No activities to export.")
|
||||
await self.mount(
|
||||
Static("❌ No activities to export.", classes="notification")
|
||||
Static("⌠No activities to export.", classes="notification")
|
||||
)
|
||||
return
|
||||
if not self.selected_row_ids:
|
||||
logger.info("No rows selected for export.")
|
||||
await self.mount(
|
||||
Static("❌ No rows selected for export.", classes="notification")
|
||||
Static("⌠No rows selected for export.", classes="notification")
|
||||
)
|
||||
return
|
||||
try:
|
||||
@@ -755,12 +758,12 @@ class ActivityDetailWidget(Static):
|
||||
logger.exception("Failed to export detail activities: %s", exc)
|
||||
await self.mount(
|
||||
Static(
|
||||
"❌ Failed to export activities; check logs.",
|
||||
"⌠Failed to export activities; check logs.",
|
||||
classes="notification",
|
||||
)
|
||||
)
|
||||
|
||||
# ✅ Helper methods
|
||||
# ✅ Helper methods
|
||||
def get_selected_data(self) -> pd.DataFrame:
|
||||
"""Return a DataFrame of the selected rows."""
|
||||
if not self.selected_row_ids:
|
||||
|
||||
Reference in New Issue
Block a user