feat(notes): Add notes feature with editor page and drawer integration

This commit is contained in:
cogwheel0
2025-12-06 19:44:34 +05:30
parent 4e50b30a54
commit df2a921ffd
10 changed files with 2888 additions and 49 deletions

View File

@@ -2156,6 +2156,22 @@ class FoldersFeatureEnabledNotifier extends Notifier<bool> {
}
}
/// Tracks whether the notes feature is enabled on the server.
/// When the server returns 403 for notes endpoint, this becomes false.
final notesFeatureEnabledProvider =
NotifierProvider<NotesFeatureEnabledNotifier, bool>(
NotesFeatureEnabledNotifier.new,
);
class NotesFeatureEnabledNotifier extends Notifier<bool> {
@override
bool build() => true;
void setEnabled(bool enabled) {
state = enabled;
}
}
// Folders provider
@Riverpod(keepAlive: true)
class Folders extends _$Folders {