Skip to content

Conversation

@konstantiniiv
Copy link
Collaborator

@konstantiniiv konstantiniiv commented Nov 4, 2025


  • I understand that contributing to this repository will require me to agree with the CLA

Description

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 README.md
  • 📓 tech-docs
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

@konstantiniiv konstantiniiv self-assigned this Nov 4, 2025
@konstantiniiv konstantiniiv requested a review from Copilot November 4, 2025 15:34
Copy link
Contributor

Copilot AI left a 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 enhances filter handling for DataView widgets by ensuring proper relation format propagation from StoreOfRelations and improves template resolution logic for object creation in DataView contexts.

  • Added a new suspend function updateFormatForSubscription(StoreOfRelations) to fetch the latest property formats from the store
  • Updated buildViewerContextCommon to be suspendable and call the new filter format update function
  • Refactored object creation logic to use a new dedicated resolveTemplateForDataViewObject function that prioritizes viewer templates over ObjectType defaults
  • Added EXACT_IN to the list of permitted conditions for prefilling new objects from filters

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
DataViewListWidgetContainer.kt Made buildViewerContextCommon suspend and integrated the new filter format update logic with explanatory comments
ObjectSetExtension.kt Added updateFormatForSubscription overload for StoreOfRelations and new resolveTemplateForDataViewObject function for template resolution
HomeScreenViewModel.kt Refactored proceedWithCreatingDataViewObject to use the new template resolution function and updated named parameters in another call site
PermittedConditions.kt Added EXACT_IN condition to permitted filter conditions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@konstantiniiv konstantiniiv changed the title Droid 4101 new tasks created via the button in the tasks widget dont DROID-4101 Widgets | Enhances filter handling for DataView widgets Nov 4, 2025
@konstantiniiv konstantiniiv merged commit ea65f12 into release/0-41-0 Nov 4, 2025
3 checks passed
@konstantiniiv konstantiniiv deleted the droid-4101-new-tasks-created-via-the-button-in-the-tasks-widget-dont branch November 4, 2025 16:21
@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants