Skip to content

refactor(ui): label a deleted department with the lib composable - #35

Merged
BatLeDev merged 2 commits into
masterfrom
refactor-former-department-label-lib
Sep 16, 2026
Merged

BatLeDev merged 2 commits into
masterfrom
refactor-former-department-label-lib

Conversation

@BatLeDev

Copy link
Copy Markdown
Member

Use useDisplayOwner from @data-fair/lib-vue instead of the local copy (catalogs-actions and catalog-activity keep calling departmentLabel, now auto-imported from lib), and pass the raw owner to owner-avatar in catalog-card: since lib-vuetify 2.5.1 the component labels a deleted department by itself.

  • delete ui/src/composables/use-display-owner.ts
  • relativeDependencies on lib-vue / lib-vuetify for local lib development (inert without npx relative-deps)
  • deps: lib-vue ^1.31.1, lib-vuetify ^2.5.1

Why: the "deleted department" convention was copy-pasted in five services; it now lives once in lib (data-fair/lib#52).

Heads-up: the label wording changes from Ancien département - id to Ancien département (id) (lib decision).

@BatLeDev
BatLeDev merged commit e008c9e into master Sep 16, 2026
4 checks passed
@BatLeDev
BatLeDev deleted the refactor-former-department-label-lib branch September 16, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant