Skip to content

Commit

Permalink
feat(core): add createdBy property to default property (#8642)
Browse files Browse the repository at this point in the history
close AF-1563
  • Loading branch information
JimmFly committed Oct 31, 2024
1 parent d96cc09 commit 0f9d11f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/common/infra/src/modules/doc/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ export const BUILT_IN_CUSTOM_PROPERTY_TYPE = [
type: 'updatedAt',
index: 'a0000005',
},
{
id: 'createdBy',
type: 'createdBy',
show: 'always-hide',
index: 'a0000006',
},
] as DocCustomPropertyInfo[];
2 changes: 2 additions & 0 deletions tests/affine-local/e2e/page-properties.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ test('property table reordering', async ({ page }) => {
'Journal',
'Created at',
'Updated at',
'Created by',
'Number',
'Date',
'Checkbox',
Expand Down Expand Up @@ -170,6 +171,7 @@ test('page info show more will show all properties', async ({ page }) => {
'Journal',
'Created at',
'Updated at',
'Created by',
'Text',
'Number',
'Date',
Expand Down

0 comments on commit 0f9d11f

Please sign in to comment.