mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 03:13:47 +00:00
b6507c27a6
* create report service * write report from runtimeState * use in UI * clear report * update types * clear all from settings menu * rearence rightclik menu * refactor styling * also report roll events * ontime/under time is same colour * refactor reporter * add target to ontime-refetch * remove menu * fectch only on message from server * memo useGetEventReport * refactor * use staleTime * dont add to menu yet * implement review * clear all from menu * fix merge * start end show * combine test for the go button text and action * add report to menu * extract csv utility * report management * unneeded async * small refacort of triggerReportEntry --------- Co-authored-by: Carlos Valente <carlosvalente@pm.me>
31 lines
966 B
TypeScript
31 lines
966 B
TypeScript
import useScrollIntoView from '../../../../common/hooks/useScrollIntoView';
|
|
import type { PanelBaseProps } from '../../panel-list/PanelList';
|
|
import * as Panel from '../../panel-utils/PanelUtils';
|
|
|
|
import CustomFields from './custom-fields/CustomFields';
|
|
import ReportSettings from './ReportSettings';
|
|
import UrlPresetsForm from './UrlPresetsForm';
|
|
|
|
export default function FeatureSettingsPanel({ location }: PanelBaseProps) {
|
|
const customFieldsRef = useScrollIntoView<HTMLDivElement>('custom', location);
|
|
const urlPresetsRef = useScrollIntoView<HTMLDivElement>('urlpresets', location);
|
|
const reportRef = useScrollIntoView<HTMLDivElement>('report', location);
|
|
|
|
return (
|
|
<>
|
|
<Panel.Header>Feature Settings</Panel.Header>
|
|
<div ref={customFieldsRef}>
|
|
<CustomFields />
|
|
</div>
|
|
|
|
<div ref={urlPresetsRef}>
|
|
<UrlPresetsForm />
|
|
</div>
|
|
|
|
<div ref={reportRef}>
|
|
<ReportSettings />
|
|
</div>
|
|
</>
|
|
);
|
|
}
|