Documentation
¶
Overview ¶
Package panelpref answers "does the user want this embedded panel", for the two panels whose feature flag is now a read-only alias of their config key.
The answer has several readers and not all of them can import the plugin package that owns the descriptor: internal/plugins/notes imports internal/app, which imports internal/overview, so the global create picker cannot import the Notes descriptor back. Its project twin could, and having the two projections of one surface answer the same question by different routes is how they drift — which is how the Flags page and the Panels page came to disagree about Notes and Tasks. Every reader binds here instead, the descriptors included: one rule, in one place, reachable from a leaf.
The feature flags are read-only aliases: they answer only while the config key is absent, and nothing here ever writes one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notes ¶
Notes is whether the Notes surface actually exists. td owns Notes persistence, so the effective answer also requires the td panel. That dependency is deliberately not part of the preference.
func NotesPreference ¶
NotesPreference is what the user chose for the Notes panel: plugins.notes.enabled when it is set, the notes_plugin flag while it is absent.
It is the preference and not the effective answer, because the settings page renders this: a Notes row reading OFF because td is off would be Sidecar claiming a choice the user never made.
Types ¶
This section is empty.