Conversation
…th alias display - Introduced 'starred' boolean property to resource and object schemas for user flagging. - Updated ConversationsPage to display aliases for conversations, including a badge for each alias and a count for additional aliases. - Enhanced ObjectCard component to support toggling the starred state with a visual star button.
- Introduced separate methods for refreshing type counts and orphaned counts to improve performance and clarity. - Updated the refreshCounts method to aggregate type counts and orphaned counts efficiently. - Enhanced the getCachedCounts method to include tag counts. - Modified the ObjectCard component to support the new tag type and adjusted UI elements for better usability and consistency.
a85651b to
19e6a4e
Compare
084394f to
a36162c
Compare
Added auth: Auth parameter to the method
Added const mongo = getMongoResource(auth) at the start
Bug 2 - Duplicate refreshTypeCountsOnly() method:
Removed the second duplicate definition (was at lines 493-559)
Kept only one implementation with the proper auth parameter
Bug 3 - refreshTypeCountsOnly(auth) called with auth but method didn't accept it:
Added auth: Auth parameter to both refreshTypeCountsOnly() and refreshCounts()
Updated all internal calls to pass auth through (refreshTypeCounts(auth), refreshOrphanedCount(auth))
Fixed the background refresh call at line 1290 to pass auth
Bug 4 - "other" type filter not excluding isTag:
Added isTag: { $ne: true } to the getTypeMatch("other") return value in ObjectsPage.tsx
Also fixed the refreshTypeCounts aggregation in the backend to exclude isTag from the "other" count
Bug 5 - Stale closure in undo toast callback:
Replaced the recursive toggleStar() call with inline logic that captures removedObject at toast creation time
The undo handler now uses capturedObject (a copy made at toast time) to restore state
Changed the dependency array to [] since the callback no longer relies on external state from the closure
- Added 'isTag' to typeFields in ObjectsResource to support new object type. - Improved toggleStar functionality in ObjectsPage to capture the found object during optimistic UI updates, enhancing the user experience for starring and unstarring objects.
- Introduced `linkedObjectsCount` to the ObjectCardProps interface to display the number of objects linked to a tag. - Updated the MongoDB aggregation pipeline to calculate and include the linked objects count for tags. - Enhanced the UI to show the linked objects count conditionally for tag types.
- Simplified the header by removing the container div around the title and starred objects button. - Maintained the functionality of the starred objects button while improving the overall UI structure.
Bakuutin
approved these changes
Feb 12, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Changes
Frontend (ObjectsPage.tsx)
Performance
getCountsnow returns stale cache immediately, refreshes in backgroundTest plan