get_file_db_sync_info

Function get_file_db_sync_info 

Source
pub fn get_file_db_sync_info() -> Option<(u64, String, u8)>
Expand description

What: Summarize sync database staleness with age, formatted date, and UI color bucket.

Inputs:

  • (none): Uses get_file_db_sync_timestamp to determine the last sync.

Output:

  • Returns (age_days, formatted_date, color_category) or None when the timestamp cannot be read.

Details:

  • Buckets age into three categories: green (<7 days), yellow (<30 days), red (>=30 days).