Skip to content

Conversation

konstantiniiv
Copy link
Collaborator

@konstantiniiv konstantiniiv commented Oct 6, 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 requested a review from Copilot October 6, 2025 16:38
@konstantiniiv konstantiniiv self-assigned this Oct 6, 2025
Copy link
Contributor

@Copilot 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 implements default initial order for type widgets by introducing a new object types ordering system and updating widget UI components. The changes enable setting and maintaining order for object types within widgets, while also improving the widget interface design.

Key Changes:

  • Adds new UpdateObjectTypesOrderIds use case and ObjectTypesSetOrder command for managing type ordering
  • Introduces SimpleIcon class and UI component for consistent widget iconography
  • Refactors widget cards to use a unified modifier pattern and improved menu system

Reviewed Changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
domain/src/main/java/com/anytypeio/anytype/domain/widgets/UpdateObjectTypesOrderIds.kt New use case for updating object types order
core-models/src/main/java/com/anytypeio/anytype/core_models/Command.kt Added ObjectTypesSetOrder command
middleware files Implemented middleware support for object types ordering
presentation/src/main/java/com/anytypeio/anytype/presentation/objects/ObjectIcon.kt Added SimpleIcon data class for widget icons
core-ui files Implemented SimpleIcon UI component and updated icon handling
app UI files Refactored widget cards with unified modifier pattern and improved menu system

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@konstantiniiv konstantiniiv changed the title Droid 3998 implement default initial order for type widgets DROID-3998 Widgets | Refactors pinned widget cards Oct 6, 2025
@konstantiniiv konstantiniiv merged commit 6dfddf1 into main Oct 6, 2025
3 checks passed
@konstantiniiv konstantiniiv deleted the droid-3998-implement-default-initial-order-for-type-widgets branch October 6, 2025 16:47
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 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.

1 participant