Search the documentation

Type to search page titles, component names and descriptions.

    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

    BeforeNow
    @ketvietlab/design-system and every subpathfaifo-design and the same subpaths
    --kv-* custom properties--faifo-*
    data-kv-design-systemdata-faifo-design
    data-kv-* attributesdata-faifo-*
    KetGrid, KetTable and their typesFaifoGrid, FaifoTable
    createKetGrid, createKetTableView, ketGrid, ketTablecreateFaifoGrid, createFaifoTableView, faifoGrid, faifoTable
    KET_GRID_NO_CHANGESFAIFO_GRID_NO_CHANGES
    data-ui="kg-*", data-ui="kt-*", ket-grid-islandfg-*, ft-*, faifo-grid-island
    ket:screen-help-request, ket:relation-created, ket:grid-ready, ket:search-filter-navigate, ket:records-changedThe same names with the faifo: prefix
    application/x-ket-reorder drag typeapplication/x-faifo-reorder
    Cascade layers ket.reset, ket.theme, ket.app, ket.userfaifo.reset, faifo.theme, faifo.app, faifo.user
    ket-design-system-atlas, ket-design-system-layout-auditfaifo-design-atlas, faifo-design-layout-audit
    assets/ket-design-system*.{css,js} in a KetAtlas bundleassets/faifo-design*.{css,js}
    The ket-design-system skillThe faifo-design skill

    #What did not change

    These are defined by another project and keep its spelling:

    • the package @ketvietlab/ketjs-view and its island host, ket-island and data-ket-island;
    • the protocol of a KetJS host that some components speak to: the fragment attributes data-ket-slot, data-ket-reload and data-ket-preserve-context, the events ket:navigation-start and ket:navigation-complete, and the _ket/fn route.

    #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:

    1. Package and commands: the import paths, then the two command names and the asset paths.
    2. Attributes: data-kv-design-system first, then the remaining data-kv-.
    3. Tokens: --kv- to --faifo-.
    4. Components: KET_GRID_, KetGrid, ketGrid, KetTable, ketTable, ket-grid, ket-table, then the hook prefixes kg- and kt- where they stand at the start of a data-ui value.
    5. Events and the drag type.
    6. 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.