Skip to content

Update - STATE #6

@alyhxn

Description

@alyhxn

@todo

playproject-io/playproject-io.github.io#30


  • Update - STATE
    • Bugs to be fixed
    • Add new features
    • root module can only call statedb(...) after it called statedb.admin(..), otherwise statedb(...) throws
    • Smart way of tracking changes during override
    • define admin revokable { $ref: 'drive://invitecode' } or { $ref: drivelink } scoped to specific datasets, writable or readonly
    • allow to use drive references (e.g. {$ref:path}) in arguments or options for instances defined in fallbacks
      • It does not mean that we provide all data through a component drive, but that a component instead has additional writable and/or readonly drives in addition to its
    • refactor all examples and projects using STATE to use the new shim
    • verify all STATE fallback/override data
    • make a growing list of test cases to prevent regression
    • review docs and update docs for all features of STATE.js
      • add a growing list of use cases and how to solve them using the STATE module
        • @input 📦 technique description from given
        • document techniques we discover, e.g. for using sdb.get_sub in page.js to pair components with editor in container views
      • we will have the drives, but in parallel we try to make them unneeded by improving error logs to guide developers
      • all error messages are short, so docs will include more description and code example snippets as needed
      • document the statedb.admin property and what every field or method does
        • admin.status.dataset.drive
        • admin.status.dataset.drive.list('', node)
        • admin.status.db
      • document sdb property if there is anything missing
        • document sdb.get_sub if it hasn't happened yet
      • update other things if they are missing or new features that haven't been documented yet
    • revamp/refactor STATE module to clean it up and improve readability, maintainability and performance where possible
    • @output 📦 STATE_v0.0.?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions