• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

teableio / teable / 8536869866

03 Apr 2024 10:05AM CUT coverage: 21.234% (-0.3%) from 21.535%
8536869866

Pull #514

github

web-flow
Merge 91a25d710 into 45ee7ebb3
Pull Request #514: refactor: user and link selector

1394 of 2532 branches covered (55.06%)

27 of 1620 new or added lines in 60 files covered. (1.67%)

4 existing lines in 2 files now uncovered.

14588 of 68702 relevant lines covered (21.23%)

2.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/sdk/src/components/filter/context.tsx
1
import type { IFilterItem } from '@teable/core';
×
2
import React from 'react';
×
NEW
3
import type { IFieldInstance } from '../../model';
×
NEW
4
import type {
×
NEW
5
  IFilterProps,
×
NEW
6
  IFiltersPath,
×
NEW
7
  ConditionAddType,
×
NEW
8
  IFilterComponents,
×
NEW
9
  IFilterContextMap,
×
NEW
10
} from './types';
×
11

×
12
export interface IFilterContext {
×
NEW
13
  fields: IFieldInstance[];
×
NEW
14
  components?: IFilterComponents;
×
NEW
15
  context?: IFilterContextMap;
×
16
  onChange: IFilterProps['onChange'];
×
17
  setFilters: (path: IFiltersPath, value: IFilterItem['value'] | null) => void;
×
18
  addCondition: (path: IFiltersPath, type?: ConditionAddType) => void;
×
19
  deleteCondition: (path: IFiltersPath, index: number) => void;
×
20
}
×
21

×
22
export const FilterContext: React.Context<IFilterContext> = React.createContext<IFilterContext>(
×
23
  // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-non-null-assertion
×
24
  null!
×
25
);
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc