Develop
Migrating to faifo-design
Every rename from the former package name, and how to apply them.
Releases up to 0.1.44 were published under a former package name with kv and Ket prefixes.
The design system is now faifo-design, and every identifier it owns says so. Nothing about how
a component behaves changed with the rename.
#What changed
| Before | Now |
|---|---|
@ketvietlab/design-system and every subpath | faifo-design and the same subpaths |
--kv-* custom properties | --faifo-* |
data-kv-design-system | data-faifo-design |
data-kv-* attributes | data-faifo-* |
KetGrid, KetTable and their types | FaifoGrid, FaifoTable |
createKetGrid, createKetTableView, ketGrid, ketTable | createFaifoGrid, createFaifoTableView, faifoGrid, faifoTable |
KET_GRID_NO_CHANGES | FAIFO_GRID_NO_CHANGES |
data-ui="kg-*", data-ui="kt-*", ket-grid-island | fg-*, ft-*, faifo-grid-island |
ket:screen-help-request, ket:relation-created, ket:grid-ready, ket:search-filter-navigate, ket:records-changed | The same names with the faifo: prefix |
application/x-ket-reorder drag type | application/x-faifo-reorder |
Cascade layers ket.reset, ket.theme, ket.app, ket.user | faifo.reset, faifo.theme, faifo.app, faifo.user |
ket-design-system-atlas, ket-design-system-layout-audit | faifo-design-atlas, faifo-design-layout-audit |
assets/ket-design-system*.{css,js} in a KetAtlas bundle | assets/faifo-design*.{css,js} |
The ket-design-system skill | The faifo-design skill |
#What did not change
These are defined by another project and keep its spelling:
- the package
@ketvietlab/ketjs-viewand its island host,ket-islandanddata-ket-island; - the protocol of a KetJS host that some components speak to: the fragment attributes
data-ket-slot,data-ket-reloadanddata-ket-preserve-context, the eventsket:navigation-startandket:navigation-complete, and the_ket/fnroute.
#Apply the rename
The renames are mechanical. Apply them in this order, so a longer name is replaced before a shorter one it contains, to source, stylesheets, tests and stored KetAtlas bundles:
- Package and commands: the import paths, then the two command names and the asset paths.
- Attributes:
data-kv-design-systemfirst, then the remainingdata-kv-. - Tokens:
--kv-to--faifo-. - Components:
KET_GRID_,KetGrid,ketGrid,KetTable,ketTable,ket-grid,ket-table, then the hook prefixeskg-andkt-where they stand at the start of adata-uivalue. - Events and the drag type.
- Cascade layers:
@layer ket.to@layer faifo.in the rules that override the design system. A host with layers of its own keeps them, and states where they stand:@layer faifo.reset, faifo.theme, faifo.app, app.screens, faifo.user;.
Then re-materialize KetAtlas bundles (faifo-design-atlas materialize), rebuild, and run your
tests: a selector or a token that was missed fails loudly rather than silently.