Merge pull request #296 from RecentRunner/easy-fixes

Logs folder and activity log defaults
This commit is contained in:
2026-04-14 20:50:14 -06:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ openrouter:
logging:
file:
name: ${LOG_FILE:log.txt}
name: ${LOG_FILE:logs/app.log}
level:
com.petshop: ${LOG_LEVEL:INFO}
org.springframework.security: ${LOG_LEVEL_SECURITY:WARN}

View File

@@ -17,6 +17,7 @@ import org.example.petshopdesktop.api.endpoints.ActivityLogApi;
import org.example.petshopdesktop.util.ActivityLogger;
import org.example.petshopdesktop.util.TableViewSupport;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.List;
@@ -86,6 +87,8 @@ public class ActivityLogController {
filteredLogs = new FilteredList<>(activityLogs, a -> true);
TableViewSupport.bindSortedItems(tvActivityLogs, filteredLogs);
dpStart.setValue(LocalDate.now().minusDays(30));
dpEnd.setValue(LocalDate.now());
loadLogs();
}

View File

@@ -40,7 +40,7 @@
</children>
</HBox>
<Label text="Showing most recent 2000 activity records" textFill="#64748b" />
<Label text="Showing activity for the selected date range" textFill="#64748b" />
<TableView fx:id="tvActivityLogs" style="-fx-background-color: white; -fx-background-radius: 12;" VBox.vgrow="ALWAYS">
<columns>