Show version as column (#10344)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2026-01-02 03:05:16 +05:00
committed by GitHub
parent 19963814b0
commit 4eec6ea2d2
16 changed files with 82 additions and 15 deletions
+45 -1
View File
@@ -17356,6 +17356,9 @@ importers:
'@hcengineering/login':
specifier: workspace:^0.7.0
version: link:../login
'@hcengineering/model':
specifier: workspace:^0.7.17
version: link:../../foundations/core/packages/model
'@hcengineering/notification':
specifier: workspace:^0.7.0
version: link:../notification
@@ -61238,7 +61241,7 @@ snapshots:
node-loader@2.0.0(webpack@5.102.1):
dependencies:
loader-utils: 2.0.4
webpack: 5.102.1(@swc/core@1.15.1)(esbuild@0.25.12)(webpack-cli@5.1.4)
webpack: 5.102.1
node-localstorage@2.2.1:
dependencies:
@@ -63269,6 +63272,15 @@ snapshots:
optionalDependencies:
'@swc/core': 1.15.1
terser-webpack-plugin@5.3.14(webpack@5.102.1):
dependencies:
'@jridgewell/trace-mapping': 0.3.31
jest-worker: 27.5.1
schema-utils: 4.3.3
serialize-javascript: 6.0.2
terser: 5.44.1
webpack: 5.102.1
terser@5.44.1:
dependencies:
'@jridgewell/source-map': 0.3.11
@@ -63929,6 +63941,38 @@ snapshots:
webpack-sources@3.3.3: {}
webpack@5.102.1:
dependencies:
'@types/eslint-scope': 3.7.7
'@types/estree': 1.0.8
'@types/json-schema': 7.0.15
'@webassemblyjs/ast': 1.14.1
'@webassemblyjs/wasm-edit': 1.14.1
'@webassemblyjs/wasm-parser': 1.14.1
acorn: 8.15.0
acorn-import-phases: 1.0.4(acorn@8.15.0)
browserslist: 4.27.0
chrome-trace-event: 1.0.4
enhanced-resolve: 5.18.3
es-module-lexer: 1.7.0
eslint-scope: 5.1.1
events: 3.3.0
glob-to-regexp: 0.4.1
graceful-fs: 4.2.11
json-parse-even-better-errors: 2.3.1
loader-runner: 4.3.1
mime-types: 2.1.35
neo-async: 2.6.2
schema-utils: 4.3.3
tapable: 2.3.0
terser-webpack-plugin: 5.3.14(webpack@5.102.1)
watchpack: 2.4.4
webpack-sources: 3.3.3
transitivePeerDependencies:
- '@swc/core'
- esbuild
- uglify-js
webpack@5.102.1(@swc/core@1.15.1):
dependencies:
'@types/eslint-scope': 3.7.7
+2 -1
View File
@@ -69,6 +69,7 @@
"Relations": "Vztahy",
"AddRelation": "Přidat vztah",
"PersonId": "Osoba",
"AccountId": "Účet"
"AccountId": "Účet",
"Version": "Verze"
}
}
+2 -1
View File
@@ -69,6 +69,7 @@
"Relations": "Beziehungen",
"AddRelation": "Beziehung hinzufügen",
"PersonId": "Person",
"AccountId": "Konto"
"AccountId": "Konto",
"Version": "Version"
}
}
+2 -1
View File
@@ -69,6 +69,7 @@
"Relations": "Relations",
"AddRelation": "Add relation",
"PersonId": "Person",
"AccountId": "Account"
"AccountId": "Account",
"Version": "Version"
}
}
+2 -1
View File
@@ -62,6 +62,7 @@
"Relations": "Relaciones",
"AddRelation": "Añadir relación",
"PersonId": "Id. de persona",
"AccountId": "Cuenta"
"AccountId": "Cuenta",
"Version": "Versión"
}
}
+2 -1
View File
@@ -69,6 +69,7 @@
"Relations": "Relations",
"AddRelation": "Ajouter une relation",
"PersonId": "Id de personne",
"AccountId": "Compte"
"AccountId": "Compte",
"Version": "Version"
}
}
+2 -1
View File
@@ -69,6 +69,7 @@
"Relations": "Relazioni",
"AddRelation": "Aggiungi relazione",
"PersonId": "ID persona",
"AccountId": "ID account"
"AccountId": "ID account",
"Version": "Versione"
}
}
+2 -1
View File
@@ -69,6 +69,7 @@
"Relations": "関係一覧",
"AddRelation": "関係を追加",
"PersonId": "人物",
"AccountId": "アカウント"
"AccountId": "アカウント",
"Version": "バージョン"
}
}
+2 -1
View File
@@ -62,6 +62,7 @@
"Relations": "Relações",
"AddRelation": "Adicionar relação",
"PersonId": "ID de pessoa",
"AccountId": "Conta"
"AccountId": "Conta",
"Version": "Versão"
}
}
+2 -1
View File
@@ -69,6 +69,7 @@
"Relations": "Связи",
"AddRelation": "Добавить связь",
"PersonId": "Персона",
"AccountId": "Аккаунт"
"AccountId": "Аккаунт",
"Version": "Версия"
}
}
+2 -1
View File
@@ -69,6 +69,7 @@
"Relations": "İlişkiler",
"AddRelation": "İlişki ekle",
"PersonId": "Kişi",
"AccountId": "Hesap"
"AccountId": "Hesap",
"Version": "Sürüm"
}
}
+2 -1
View File
@@ -69,6 +69,7 @@
"Relations": "关系",
"AddRelation": "添加关系",
"PersonId": "人员 ID",
"AccountId": "帐户"
"AccountId": "帐户",
"Version": "版本"
}
}
@@ -295,7 +295,8 @@ export default plugin(coreId, {
AutoJoin: '' as IntlString,
AutoJoinDescr: '' as IntlString,
RBAC: '' as IntlString,
RBACDescr: '' as IntlString
RBACDescr: '' as IntlString,
Version: '' as IntlString
},
descriptor: {
SpacesType: '' as Ref<SpaceTypeDescriptor>
+1
View File
@@ -69,6 +69,7 @@
"@hcengineering/workbench": "workspace:^0.7.0",
"@tiptap/core": "^2.11.7",
"@hcengineering/platform": "workspace:^0.7.19",
"@hcengineering/model": "workspace:^0.7.17",
"@hcengineering/card": "workspace:^0.7.0",
"@hcengineering/communication": "workspace:^0.7.0",
"@hcengineering/preference": "workspace:^0.7.0",
@@ -14,6 +14,7 @@
-->
<script lang="ts">
import { MasterTag } from '@hcengineering/card'
import { TypeNumber } from '@hcengineering/model'
import { getEmbeddedLabel, translateCB } from '@hcengineering/platform'
import { getClient, IconWithEmoji, MessageBox } from '@hcengineering/presentation'
import setting from '@hcengineering/setting'
@@ -115,6 +116,15 @@
await client.createMixin(masterTag._id, masterTag._class, masterTag.space, core.mixin.VersionableClass, {
enabled: true
})
await client.createDoc(core.class.Attribute, core.space.Model, {
attributeOf: masterTag._id,
_class: core.class.Attribute,
isCustrom: false,
label: core.string.Version,
name: 'version',
readonly: true,
type: TypeNumber()
})
versioningEnabled = true
}
})
@@ -301,11 +301,11 @@
<span class="label">
<Label label={view.string.AutomationOnly} />
</span>
<Toggle bind:on={automationOnly} />
<Toggle bind:on={automationOnly} disabled={attribute.isCustom !== true} />
<span class="label">
<Label label={setting.string.Restricted} />
</span>
<Toggle on={isRestricted} disabled={isRestricted} on:change={changeRestricted} />
<Toggle on={isRestricted} disabled={isRestricted || attribute.isCustom !== true} on:change={changeRestricted} />
</div>
</Modal>