@codingfactory/socialkit-vue 0.7.23 → 0.7.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/circles.d.ts +7 -0
- package/dist/services/circles.d.ts.map +1 -1
- package/dist/services/circles.js +34 -5
- package/dist/services/circles.js.map +1 -1
- package/dist/stores/__tests__/discussion.spec.d.ts +2 -0
- package/dist/stores/__tests__/discussion.spec.d.ts.map +1 -0
- package/dist/stores/__tests__/discussion.spec.js +768 -0
- package/dist/stores/__tests__/discussion.spec.js.map +1 -0
- package/dist/stores/circles.d.ts +144 -0
- package/dist/stores/circles.d.ts.map +1 -1
- package/dist/stores/circles.js +7 -1
- package/dist/stores/circles.js.map +1 -1
- package/dist/stores/content.d.ts.map +1 -1
- package/dist/stores/content.js +6 -3
- package/dist/stores/content.js.map +1 -1
- package/dist/stores/discussion.d.ts +714 -15
- package/dist/stores/discussion.d.ts.map +1 -1
- package/dist/stores/discussion.js +272 -65
- package/dist/stores/discussion.js.map +1 -1
- package/dist/types/content.d.ts +3 -2
- package/dist/types/content.d.ts.map +1 -1
- package/dist/types/content.js +2 -1
- package/dist/types/content.js.map +1 -1
- package/dist/types/discussion.d.ts +38 -0
- package/dist/types/discussion.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/services/circles.ts +45 -5
- package/src/stores/__tests__/discussion.spec.ts +945 -0
- package/src/stores/circles.ts +7 -1
- package/src/stores/content.ts +6 -3
- package/src/stores/discussion.ts +333 -76
- package/src/types/content.ts +3 -2
- package/src/types/discussion.ts +43 -0
package/src/stores/circles.ts
CHANGED
|
@@ -1881,7 +1881,13 @@ export function createCirclesStoreDefinition(config: CirclesStoreConfig) {
|
|
|
1881
1881
|
return nextEntries
|
|
1882
1882
|
} catch (error: unknown) {
|
|
1883
1883
|
const message = getErrorMessage(error)
|
|
1884
|
-
|
|
1884
|
+
// On load-more failure, preserve existing entries — the service
|
|
1885
|
+
// already shows a toast, so replacing visible data with an error
|
|
1886
|
+
// state is destructive. Only set section error on refresh (empty
|
|
1887
|
+
// initial load) so the user sees a retry prompt.
|
|
1888
|
+
if (refresh || (this.auditLog[circleId] ?? []).length === 0) {
|
|
1889
|
+
this.setManagementSectionError(circleId, 'audit', message)
|
|
1890
|
+
}
|
|
1885
1891
|
throw error
|
|
1886
1892
|
} finally {
|
|
1887
1893
|
this.setManagementSectionLoading(circleId, 'audit', false)
|
package/src/stores/content.ts
CHANGED
|
@@ -1085,9 +1085,12 @@ export function createContentStoreDefinition(config: ContentStoreConfig) {
|
|
|
1085
1085
|
seen.add(key)
|
|
1086
1086
|
return true
|
|
1087
1087
|
})
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1088
|
+
// Preserve recently created posts across all feed modes so they
|
|
1089
|
+
// survive feed reloads that race with the async feed pipeline
|
|
1090
|
+
// (OnPostPublished queue job may not have created the feed_entries
|
|
1091
|
+
// row yet). Previously only for_you mode preserved these, which
|
|
1092
|
+
// caused posts to vanish from the feed in following mode.
|
|
1093
|
+
const recentCreatedEntries = buildRecentCreatedFeedEntries(seen)
|
|
1091
1094
|
entries.value = [...pendingEntries, ...recentCreatedEntries, ...freshEntries]
|
|
1092
1095
|
}
|
|
1093
1096
|
|