Skip to content

Commit f08ef85

Browse files
authored
Update anytype extension (#18993)
* Update anytype extension - 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 #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 * Remove deleted files after merge * Add changelog for v3
1 parent ceb21a5 commit f08ef85

File tree

121 files changed

+3827
-1261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+3827
-1261
lines changed

extensions/anytype/CHANGELOG.md

+35-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
# Anytype Changelog
22

3-
## [✨ AI Enhancements & Improvements] - 2025-03-XX
3+
## [Properties, Types & Tags] - 2025-05-07
4+
5+
#### New Creation Options
6+
7+
When browsing spaces, press `CMD+N` to create new objects, types, properties or tags.
8+
9+
- Add ability to create new spaces
10+
- Add ability to create new types
11+
- Add ability to create new properties
12+
- Add ability to create new tags
13+
14+
#### Edit Form Enhancements
15+
16+
Use `CMD+E` to quickly edit the currently selected item - whether it's a space, object, type, property, or tag.
17+
18+
- Add support for editing spaces
19+
- Add support for editing objects
20+
- Add support for editing types
21+
- Add support for editing properties
22+
- Add support for editing tags
23+
24+
#### New Commands & Navigation
25+
26+
- Add new command to add objects to lists
27+
- Pop back to list view when deleting object, with automatic refresh
28+
- List properties when browsing space
29+
- Browse tags for select/multi-select properties
30+
- Open bookmarks directly in browser
31+
32+
#### Form Improvements
33+
34+
- Allow custom properties (inherited from type) for object creation
35+
- Improve number and emoji validation logic in create form
36+
37+
## [✨ AI Enhancements & Improvements] - 2025-04-22
438

539
#### AI Extension
640

Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

extensions/anytype/package-lock.json

+10-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/anytype/package.json

+26-18
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
"subtitle": "Anytype",
3434
"description": "Search objects globally in all spaces.",
3535
"mode": "view"
36+
},
37+
{
38+
"name": "add-to-list",
39+
"title": "Add to List",
40+
"subtitle": "Anytype",
41+
"description": "Add an existing object to a list.",
42+
"mode": "view"
3643
}
3744
],
3845
"tools": [
@@ -114,8 +121,8 @@
114121
"object": "type",
115122
"name": "Task",
116123
"id": "bafyreigs5crqbryk2sq45ig4p6uqkcbmntuyosc1djvdeqoydj23b6d1mm",
117-
"type_key": "ot-task",
118-
"recommended_layout": "todo"
124+
"type_key": "task",
125+
"layout": "action"
119126
}
120127
],
121128
"search-space": [
@@ -173,15 +180,15 @@
173180
"types": {
174181
"or": [
175182
{
176-
"includes": "ot-task"
183+
"includes": "task"
177184
},
178185
{
179186
"includes": "bafyreigs5crqbryk2sq45ig4p6uqkcbmntuyosc1djvdeqoydj23b6d1mm"
180187
},
181188
{
182189
"includes": [
183-
"ot-collection",
184-
"ot-set"
190+
"collection",
191+
"set"
185192
]
186193
}
187194
]
@@ -225,8 +232,8 @@
225232
"object": "type",
226233
"name": "Page",
227234
"id": "bafyreigs5crqbryk2sq45ig4p6uqkcbmntuyosc1djvdeqoydj23b6d1pp",
228-
"type_key": "ot-page",
229-
"recommended_layout": "basic"
235+
"type_key": "page",
236+
"layout": "basic"
230237
}
231238
],
232239
"create-object": [
@@ -238,7 +245,7 @@
238245
"type": {
239246
"id": "bafyreigs5crqbryk2sq45ig4p6uqkcbmntuyosc1djvdeqoydj23b6d1mm",
240247
"name": "Page",
241-
"type_key": "ot-page"
248+
"type_key": "page"
242249
},
243250
"snippet": "This is the snippet of the object."
244251
}
@@ -264,7 +271,7 @@
264271
"name": "create-object",
265272
"arguments": {
266273
"spaceId": "bafyreihliylimyqct7vbyc2jqsoanibku656jj4uwwhulx4tctb4qw346q.2lcu0r85yg10d",
267-
"type_key": "ot-page",
274+
"type_key": "page",
268275
"name": {
269276
"includes": "Privacy"
270277
}
@@ -481,8 +488,8 @@
481488
"object": "type",
482489
"name": "Page",
483490
"id": "bafyreigs5crqbryk2sq45ig4p6uqkcbmntuyosc1djvdeqoydj23b6d1pp",
484-
"type_key": "ot-page",
485-
"recommended_layout": "basic"
491+
"type_key": "page",
492+
"layout": "basic"
486493
}
487494
]
488495
},
@@ -640,7 +647,7 @@
640647
"arguments": {
641648
"spaceId": "bafyreihliylimyqct7vbyc2jqsoanibku656jj4uwwhulx4tctb4qw346q.2lcu0r85yg10d",
642649
"query": "",
643-
"sort.property": "last_modified_date",
650+
"sort.propertyKey": "last_modified_date",
644651
"sort.direction": "desc"
645652
}
646653
}
@@ -684,7 +691,7 @@
684691
"type": "dropdown",
685692
"data": [
686693
{
687-
"title": "Created Date",
694+
"title": "Creation Date",
688695
"value": "created_date"
689696
},
690697
{
@@ -709,20 +716,20 @@
709716
"description": "The maximum number of objects to fetch from the Anytype API at once. Be careful when changing this, as a large number can cause performance issues.",
710717
"type": "dropdown",
711718
"data": [
712-
{
713-
"title": "25",
714-
"value": "25"
715-
},
716719
{
717720
"title": "50",
718721
"value": "50"
719722
},
720723
{
721724
"title": "100",
722725
"value": "100"
726+
},
727+
{
728+
"title": "200",
729+
"value": "200"
723730
}
724731
],
725-
"default": "50",
732+
"default": "100",
726733
"required": false
727734
},
728735
{
@@ -748,6 +755,7 @@
748755
"@raycast/api": "^1.93.1",
749756
"@raycast/utils": "^1.17.0",
750757
"date-fns": "^4.1.0",
758+
"emoji-regex": "^10.4.0",
751759
"node-fetch": "^3.3.2"
752760
},
753761
"devDependencies": {

0 commit comments

Comments
 (0)