Skip to content

Conversation

@konstantiniiv
Copy link
Collaborator

@konstantiniiv konstantiniiv commented Nov 22, 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 22, 2025
@konstantiniiv konstantiniiv changed the title droid-4123-add-the-ability-to-change-the-view-for-a-widget-type-in-the DROID-4123 Widgets | Widget for Type Objects, change widget type Nov 22, 2025
Copilot finished reviewing on behalf of konstantiniiv November 22, 2025 07:21
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 adds the ability to change the view for OBJECT_TYPE layout widgets by introducing View and List widget type options, and simplifies the layout code logic in HomeScreenViewModel.

  • Adds WidgetTypeView.View() and WidgetTypeView.List() options for OBJECT_TYPE layout widgets
  • Removes special case handling for OBJECT_TYPE layout in widget layout determination
  • Bumps version patch from 4 to 5

Reviewed changes

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

File Description
presentation/src/main/java/com/anytypeio/anytype/presentation/widgets/SelectWidgetTypeViewModel.kt Adds View and List widget type options for OBJECT_TYPE layout in both existing and new widget flows
presentation/src/main/java/com/anytypeio/anytype/presentation/home/HomeScreenViewModel.kt Simplifies layout determination by removing special OBJECT_TYPE handling that previously returned UNDEFINED_LAYOUT_CODE
app/gradle.properties Increments version patch number from 4 to 5

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

@konstantiniiv konstantiniiv changed the title DROID-4123 Widgets | Widget for Type Objects, change widget type DROID-4123 Widgets | Ability to change the view for OBJECT_TYPE layout widgets Nov 22, 2025
@konstantiniiv konstantiniiv merged commit e4bceb5 into main Nov 22, 2025
10 checks passed
@konstantiniiv konstantiniiv deleted the droid-4123-add-the-ability-to-change-the-view-for-a-widget-type-in-the branch November 22, 2025 08:09
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants