PrivateAIM / node-ui

User interface for a node.
0 stars 1 forks source link

Create custom filter component #98

Open brucetony opened 2 months ago

brucetony commented 2 months ago

Because not all of the results are returned for a particular table (pagination), filtering by certain criteria is only appliued to whatever subst is currently loaded. A new component needs to be developed that allows querying the hub for a set of results using the user's given filter criteria. Because there are a lot of filters, the core-http-kit can be used to programmatically build complex filter requests that can be passed to the hub-adapter.

import { Client } from '@privateaim/core-http-kit';
const client = new Client({ baseURL: "https://...." });
client .project.getMany({
    sort: {
        created_at: 'DESC',
        name: 'DESC',
    },
    filter: {
        name: 'foo~',
    },
    page: {
        limit: 50,
        offset: 0,
    },
});
brucetony commented 2 months ago

On hold until Oct