-
Notifications
You must be signed in to change notification settings - Fork 0
Implement timestamp logic for creating and updating items #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
fulleni
merged 28 commits into
main
from
implement_timestamp_logic_for_creating_and_updating_items
Jul 3, 2025
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
74bdfe3
refactor: Implement Timestamp Logic for Creation
fulleni a83e29b
refactor: Implement Timestamp Logic for Updates
fulleni 6e7a503
feat: added a new createdCategory property to the state. This will al…
fulleni 53ebeb8
feat: updated the _onSubmitted method in create_category_bloc.dart. W…
fulleni cd02fb8
feat: modify edit_category_state.dart. I'm adding an updatedCategory …
fulleni 229919a
feat: modified the _onSubmitted method in edit_category_bloc.dart. Wh…
fulleni cd46a81
refactor(content_management): add createdHeadline to CreateHeadlineState
fulleni d87412d
refactor(content_management): emit created headline object on success
fulleni 2e0fbad
refactor(content_management): add updatedHeadline to EditHeadlineState
fulleni 1707271
fix(content_management): add updatedHeadline property to EditHeadline…
fulleni 36dea0f
refactor(content_management): emit updated headline object on success
fulleni 669f860
refactor(content_management): add createdSource to CreateSourceState
fulleni 88f3541
refactor(content_management): emit created source object on success
fulleni 61dfa2b
refactor(content_management): add an updatedSource property to the st…
fulleni 690d35a
refactor(content_management): update the _onSubmitted method in edit_…
fulleni c89a9c6
refactor(content_management): introducing new, specific events for ad…
fulleni 28bfafe
refactor(content_management): handle the new local update events. I w…
fulleni 5de9fb5
refactor(content_management): update the BlocListener in create_categ…
fulleni f5ad54a
refactor(content_management): update the BlocListener in edit_categor…
fulleni a9801e8
refactor(content_management): update the BlocListener in create_headl…
fulleni 63d0304
refactor(content_management): update the BlocListener in edit_headlin…
fulleni 5e328e5
refactor(content_management): update the BlocListener in create_sourc…
fulleni cb7b8ad
refactor(content_management): update the BlocListener in edit_source_…
fulleni 2c6fe24
feat(content_management): format updatedAt timestamp in categories table
fulleni 5ba9a38
feat(content_management): format updatedAt timestamp in headlines table
fulleni 90d00c0
feat(content_management): format updatedAt timestamp in sources table
fulleni 4f84cef
style: format
fulleni 6426aa7
lint: misc
fulleni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While updating the state locally after deletion is more efficient than refetching, removing the loading state might lead to a poor user experience on slow networks. Without it, the user receives no feedback that the delete operation is in progress and might try to perform other actions. Consider re-introducing a loading state by emitting it before this
try
block, and emitting asuccess
status along with the updated list upon successful deletion.