feat: add expanded visual view for filter rules
- Add VisualRuleSummary component showing conditions and actions as labeled inline pills with IF/THEN flow layout - Add expandedFilterView toggle to settings store (persisted) - Fix RuleSummary to allow multi-line wrapping instead of truncating - Use items-start on rule cards so drag handle and toggle align to top - Add translations for expanded view keys in all 8 locales
This commit is contained in:
@@ -119,6 +119,9 @@ interface SettingsState {
|
||||
sessionTimeout: number; // minutes (0 = never)
|
||||
trustedSenders: string[]; // Email addresses that can load external content
|
||||
|
||||
// Filters
|
||||
expandedFilterView: boolean;
|
||||
|
||||
// Calendar
|
||||
showTimeInMonthView: boolean;
|
||||
showWeekNumbers: boolean;
|
||||
@@ -220,6 +223,9 @@ const DEFAULT_SETTINGS = {
|
||||
sessionTimeout: 0, // Never
|
||||
trustedSenders: [] as string[],
|
||||
|
||||
// Filters
|
||||
expandedFilterView: false,
|
||||
|
||||
// Calendar
|
||||
showTimeInMonthView: false,
|
||||
showWeekNumbers: false,
|
||||
@@ -308,6 +314,7 @@ export const useSettingsStore = create<SettingsState>()(
|
||||
calendarNotificationsEnabled: state.calendarNotificationsEnabled,
|
||||
calendarNotificationSound: state.calendarNotificationSound,
|
||||
calendarInvitationParsingEnabled: state.calendarInvitationParsingEnabled,
|
||||
expandedFilterView: state.expandedFilterView,
|
||||
showTimeInMonthView: state.showTimeInMonthView,
|
||||
showWeekNumbers: state.showWeekNumbers,
|
||||
toolbarPosition: state.toolbarPosition,
|
||||
|
||||
Reference in New Issue
Block a user