-
Notifications
You must be signed in to change notification settings - Fork 2
Implement a network changes notification to editContent.vue #949
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR adds real-time network change detection to EditContent.vue, suppressing alerts during local saves and displaying a warning badge when remote updates are detected.
- Introduces
liveContent,saveWasCalled, andnetworkChangesto detect and flag server-side updates. - Updates save logic to toggle
saveWasCalledand prevent false positives during local operations. - Adds a UI badge in the template to notify users of detected network changes.
Comments suppressed due to low confidence (3)
cms/src/components/content/EditContent.vue:112
- [nitpick] The name
networkChangesreads like an event or stream. Consider renaming tohasNetworkChangesornetworkChangesDetectedfor clearer boolean semantics.
const networkChanges = computed(() => {
cms/src/components/content/EditContent.vue:112
- There should be unit tests covering scenarios where
networkChangestoggles true/false—especially around local saves vs. remote updates—to prevent regressions.
const networkChanges = computed(() => {
cms/src/components/content/EditContent.vue:604
- [nitpick] Remove this interpolation of
saveWasCalledin the template; it appears to be debug code and isn’t intended for production UI.
{{ saveWasCalled }}
6121ddb to
582f095
Compare
582f095 to
3d5d85c
Compare
|
There is a bug that I am not sure how to fix, will look for ideas from others during review |
|
@DirkDevelopmentFreelance What is the status on this ? |
On hold till the DexieLiveQueryAsEditable has been implemented for EditCOntent |
No description provided.