Skip to content

Update anytype extension #18993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 7, 2025
Merged

Update anytype extension #18993

merged 3 commits into from
May 7, 2025

Conversation

jmetrikat
Copy link
Contributor

@jmetrikat jmetrikat commented May 6, 2025

Description

This PR adds new features and improvements - primarily for Types, Properties and Tags - to Anytype and further completes the object management capabilities:

  • Creation and editing of Objects, Types, Properties, Tags and Spaces
  • Enhanced object management with context-aware creation and quick editing
  • Improved navigation, form handling and validation, alongside performance optimizations

Screencast

anytype 2025-05-07 at 01 37 55
anytype 2025-05-07 at 01 38 44

Checklist

- Fix sort.propertyKey in ai eval mocks
- Improve icon replacement with file/built-in vs emoji
- Optimize performance by unsetting markdown for prop reference objects
- Rename mapObjectWithoutDetails to mapObjectWithoutProperties
- Deprecate separate export, move markdown body to getObject
- Deprecate separate export, move markdown body to getObject
- Update extension to version v3_0425
- Refactor TagList actions to group Create Tag and Refresh Tags
- Filter out the current object from the dropdown list in UpdateObjectForm
- Update member icon to reflect pluralization in SpaceList and ObjectList
- Refactor update functions to remove null checks and simplify return types
- Fix updateType call to use \'id\' instead of \'key\' for type
- Add mutate refresh after edit from ObjectDetail
- Update member icon in SpaceList to person instead of person-circle
- Replace popToRoot() with pop() and mutate to refresh
- Refactor create form context values to use \'Id\' suffix for space, type, and list
- Introduce oneOf for ObjectIcon and refactor property handling in forms
- Add \'key\' prop to Tag interface
- Refactor type keys to use bundled constants and remove \'ot-\' prefix
- Enable delete enpoint for types
- Refactor member and object API functions to remove null handling and ensure consistent return types
- Add update functionality for types and improve form placeholders
- Restrict create action visibility based on viewtype
- Add CRUD operations for types, create form and empty view
- Merge pull request raycast#4 from anyproto/api-stage-2
- Pass searchText props and dd create actions for objects and properties
- Add create new as space action
- Fix null return for pinned items
- Exclude bundled properties from create form
- Add update space functionality with form and api
- Support opening bookmarks as primary action
- Move source to properties CreateObjectRequest
- Rename sort property to property_key in search hooks and models
- Fix pinned items temporarily dissappearing for not reachable api
- Fix lint
- Fix uncontrolled controlled prop switch
- Rework property unsetting in form and hide bundled properties
- Fix unsetting of boolean, string and object references
- Show update properties based on type
- Rename "Created Date" to "Creation Date" for clear name
- Refactor object forms and field validation
- Rename space component and reorganize imports into Lists directory
- Refactor shortcuts to common edit and new actions
- Show list view icon only if no emoji already present
- Fix typo
- Use optional chaining for trim
- Refactor property models to use RawProperty type across API functions and mappers
- Optimize update object and refactor property models
- Trim whitespace from names in mappers
- Fix update form implementation
- Refactor create form and fieldvalue
- Add missing unique keys to form components in CreateObjectForm
- Remove defaultValue from ObjectCreateForm and fix custom props for quicklink
- Update icons for no-selection state in create object form
- Fix layout based action checks
- Refactor TypeLayout and ObjectLayout enums
- Add initial UpdateObjectForm
- Refactor CreateObjectForm to simplify property handling and validation
- Fix checbox icon source boolean state
- Refactor CreateObjectForm to use PropertyEntry for properties; update models and create-object tool to support new structure
- Add updateObject api and integrate with ObjectActions for editing objects
- Deprecate template data model, treat as object
- Refactor space change handling to inline
- Add UpdatePropertyForm for editing properties; refactor ObjectActions props
- Refactor color handling in tag components; add UpdateTagForm for editing tags
- Move states for CreateObjectForm to fix missing re-renders from EmptyViewObject
- Clear form states on space change to prevent inconsistent API calls
- Refactor ObjectActions and SpaceActions components; add tag and property deletion to actions
- Fix tag and property dropdown
- Fix lint for properties
- Add tag management functionality: create, update, delete
- Add number field validations to CreateObjectForm
- Show "No objects" label for empty objects properties
- Rename property formats from File/Object to Files/Objects
- Switch property lookup to id, remove api prefixes
- Show Add to List action only for objects
- Add TagList action to ObjectActions
- Add TagList component
- Fix properties pagination bug
- Fix search execution condition to execute when config is undefined
- Add property management API, form and view
- Move multi_select.svg
- Increase default api limit to 100
- Refactor property format checks to use PropertyFormat enum
- Add ListSubmenu component for adding objects to lists
- Refactor getCustomTypeIcon to remove unnecessary async/await
- Smoothen form animation for add-to-list
- Filter objects for add-to-list command ot avoid duplication
- Remove detail view for properties
- Refactor error handling to use showFailureToast
- Update tag api endpoints
- Support object properties when creating object
- Pop back to object list when deleting object from detail view
- Update emoji validation logic
- Update CI workflow to trigger on all branches
- Set property icon tint color to grey
- Fix search bar placeholder in browse
- Enhance pluralization logic for nouns ending in \'y\'
- Add property model, API endpoints, and hooks for managing properties
- Refactor API key constants
- Enhance ObjectList component with system type indication and update API key prefixes
- Allow string for tag and icon color to map hex value
- Add dynamic properties support to CreateObjectForm
- Merge branch \'main\' into api-stage-2
- Refactor tag mapping logic
- Add execute condition to useObjects hook
- Add Color enum and update ObjectIcon and Tag interfaces to use Color type
- Add tag management functionality and update form elements when creating object
- Merge branch \'main\' into api-stage-2
- Merge branch \'command-add-obj-to-list\' into api-stage-2
- Rely on property key instead of id
- Update property and type models
- Add form validation for \'Add to List\' command
- Create new \'Add to List\' command
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: anytype Issues related to the anytype extension OP is author The OP of the PR is the author of the extension labels May 6, 2025
@raycastbot
Copy link
Collaborator

Thank you for the update! 🎉

You can expect an initial review within five business days.

@jmetrikat jmetrikat marked this pull request as ready for review May 6, 2025 23:51
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Here's a concise summary of the key changes in this PR:

This PR significantly enhances the Anytype extension with comprehensive object management capabilities, focusing on Types, Properties, and Tags functionality, along with improved form handling and validation.

  • Added new API endpoints and models for managing Properties, Tags, and Types with proper validation and error handling using showFailureToast
  • Introduced new form components (CreateForm, UpdateForm) with dynamic field generation based on property types and improved validation
  • Reorganized component structure into logical subdirectories (Actions, CreateForm, EmptyView, Lists, UpdateForm) for better maintainability
  • Migrated from template-specific types to more generic space object types for consistent object handling
  • Updated API version from v1 to v3 with new endpoints and improved type safety through TypeScript enums and interfaces

Note: The changelog entry title should use {PR_MERGE_DATE} instead of the hardcoded date "2025-05-07".

💡 (3/5) Reply to the bot's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!

111 file(s) reviewed, 62 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi 👋

Looks good to me, approved 🔥

@raycastbot raycastbot merged commit f08ef85 into raycast:main May 7, 2025
11 checks passed
Copy link
Contributor

github-actions bot commented May 7, 2025

Published to the Raycast Store:
https://raycast.com/any/anytype

@raycastbot
Copy link
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension: anytype Issues related to the anytype extension extension fix / improvement Label for PRs with extension's fix improvements OP is author The OP of the PR is the author of the extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants