Recued
Menu
← Back to recipes

Focus block proposer

by recued-core v3 32 views

Use “Focus block proposer” in Recued. Detect half of the focus-block loop. It reads information without changing data in the connected service.

How it works 37 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (37 steps)
■ today_window date_period
Apply date_period
■ today_start_ms date_parse
Parse today window start as a date
■ day_anchor_ms math
Calculate: {{step.today_start_ms}} + {{config.day_offset}} * 86400000 + 43200000
■ day_window date_period
Apply date_period
■ day_start_ms date_parse
Parse day window start as a date
■ day_end_ms date_parse
Parse day window end as a date
■ day_label date_format
Format as a date
■ work_start_ms math
Calculate: {{step.day_start_ms}} + {{config.work_start_hour}} * 3600000
■ work_end_ms math
Calculate: {{step.day_start_ms}} + {{config.work_end_hour}} * 3600000
◆ events_raw core.data.calendar.list
List data calendar
■ events default
Apply default
■ timed_events filter
Filter by condition
■ event_count count
Count items in timed events
■ events_with_duration map
Extract from each item
■ booked_ms reduce
Reduce with sum
■ booked_hours math
Calculate: {{step.booked_ms}} / 3600000
■ booked_hours_rounded round
Round booked hours to 1 decimal places
■ many_events compare
Check if event count is at least setting busy event threshold
■ many_hours compare
Check if booked hours is at least setting busy hours threshold
■ is_meeting_heavy any
Check if any of the conditions are true
■ events_sorted sort
Sort by
■ boundaries map
Extract from each item
■ boundaries_plus_close flatten
Flatten nested lists in
■ gap_candidates filter
Filter by condition
■ gap_rows map
Extract from each item
■ gaps_bounded filter
Filter by condition
■ gaps_measured map
Extract from each item
■ focus_blocks filter
Filter by condition
■ focus_blocks_unique unique
Remove duplicates from
■ focus_blocks_sorted sort
Sort by
■ proposed_count count
Count items in focus blocks sorted
■ proposal_table_gap_start_text_dated map
Extract gap_start from each item
■ proposal_table_gap_end_text_dated map
Extract gap_end from each item
■ proposal_table to_table
Format results as a data table
■ heavy_note ternary
Apply ternary
■ proposals ternary
Apply ternary
■ card to_summary
Format results as a summary card
▼
Output
summary card
table proposal_table
json proposals
Settings 8 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

day offset setting = 1
scan limit setting = 100
calendar slug setting =
work end hour setting = 18
work start hour setting = 9
min block minutes setting = 60
busy event threshold setting = 4
busy hours threshold setting = 4

Uses (1 operation)

Calendar List data calendar core.data.calendar.list

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

What it's allowed to do

Read Calendar core.data.calendar.list read-only

Data it touches

SurfacesCalendar
Warehousedata.calendar

About

Tags

calendarfocusdeep-workproposaldetectplanningpack:daily-ops

Details

37 steps 8 configurable settings recipe_id: focus-block-proposer