Skip to content

Commit 351a651

Browse files
committed
refactor(content_management): rename deletion events to archiving
- Rename DeleteHeadlineRequested to ArchiveHeadlineRequested - Rename DeleteTopicRequested to ArchiveTopicRequested - Rename DeleteSourceRequested to ArchiveSourceRequested - Update comments to reflect the change from deletion to archiving
1 parent 260f514 commit 351a651

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

lib/content_management/bloc/content_management_event.dart

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ final class LoadHeadlinesRequested extends ContentManagementEvent {
3838
List<Object?> get props => [startAfterId, limit];
3939
}
4040

41-
/// {@template delete_headline_requested}
42-
/// Event to request deletion of a headline.
41+
/// {@template archive_headline_requested}
42+
/// Event to request archiving of a headline.
4343
/// {@endtemplate}
44-
final class DeleteHeadlineRequested extends ContentManagementEvent {
45-
/// {@macro delete_headline_requested}
46-
const DeleteHeadlineRequested(this.id);
44+
final class ArchiveHeadlineRequested extends ContentManagementEvent {
45+
/// {@macro archive_headline_requested}
46+
const ArchiveHeadlineRequested(this.id);
4747

48-
/// The ID of the headline to delete.
48+
/// The ID of the headline to archive.
4949
final String id;
5050

5151
@override
@@ -83,14 +83,14 @@ final class LoadTopicsRequested extends ContentManagementEvent {
8383
List<Object?> get props => [startAfterId, limit];
8484
}
8585

86-
/// {@template delete_topic_requested}
87-
/// Event to request deletion of a topic.
86+
/// {@template archive_topic_requested}
87+
/// Event to request archiving of a topic.
8888
/// {@endtemplate}
89-
final class DeleteTopicRequested extends ContentManagementEvent {
90-
/// {@macro delete_topic_requested}
91-
const DeleteTopicRequested(this.id);
89+
final class ArchiveTopicRequested extends ContentManagementEvent {
90+
/// {@macro archive_topic_requested}
91+
const ArchiveTopicRequested(this.id);
9292

93-
/// The ID of the topic to delete.
93+
/// The ID of the topic to archive.
9494
final String id;
9595

9696
@override
@@ -128,14 +128,14 @@ final class LoadSourcesRequested extends ContentManagementEvent {
128128
List<Object?> get props => [startAfterId, limit];
129129
}
130130

131-
/// {@template delete_source_requested}
132-
/// Event to request deletion of a source.
131+
/// {@template archive_source_requested}
132+
/// Event to request archiving of a source.
133133
/// {@endtemplate}
134-
final class DeleteSourceRequested extends ContentManagementEvent {
135-
/// {@macro delete_source_requested}
136-
const DeleteSourceRequested(this.id);
134+
final class ArchiveSourceRequested extends ContentManagementEvent {
135+
/// {@macro archive_source_requested}
136+
const ArchiveSourceRequested(this.id);
137137

138-
/// The ID of the source to delete.
138+
/// The ID of the source to archive.
139139
final String id;
140140

141141
@override

0 commit comments

Comments
 (0)