diff --git a/docs/antora.yml b/docs/antora.yml
index 57a496f89..d06c4b663 100644
--- a/docs/antora.yml
+++ b/docs/antora.yml
@@ -1,6 +1,6 @@
name: neodash
version: 2.2
-title: NeoDash Documentation
+title: NeoDash
start_page: ROOT:index.adoc
nav:
- modules/ROOT/nav.adoc
diff --git a/docs/preview.yml b/docs/preview.yml
index 58b34b401..ed1a8f02e 100644
--- a/docs/preview.yml
+++ b/docs/preview.yml
@@ -1,5 +1,5 @@
site:
- title: NeoDash Documentation
+ title: NeoDash
content:
sources:
diff --git a/src/card/Card.tsx b/src/card/Card.tsx
index 1552bec3a..aad4a02a3 100644
--- a/src/card/Card.tsx
+++ b/src/card/Card.tsx
@@ -9,7 +9,6 @@ import {
updateSelectionThunk,
updateReportQueryThunk,
toggleCardSettingsThunk,
- updateReportRefreshRateThunk,
updateReportSettingThunk,
updateReportTitleThunk,
updateReportTypeThunk,
@@ -47,7 +46,6 @@ const NeoCard = ({
onTypeUpdate, // action to take when the card report type is updated.
onFieldsUpdate, // action to take when the set of returned query fields is updated.
onQueryUpdate, // action to take when the card query is updated.
- onRefreshRateUpdate, // action to take when the card refresh rate is updated.
onReportSettingUpdate, // action to take when an advanced report setting is updated.
onSelectionUpdate, // action to take when the selected visualization fields are updated.
onGlobalParameterUpdate, // action to take when a report updates a dashboard parameter.
@@ -138,7 +136,6 @@ const NeoCard = ({
query={report.query}
globalParameters={globalParameters}
fields={report.fields ? report.fields : []}
- refreshRate={report.refreshRate}
selection={report.selection}
widthPx={width}
heightPx={height}
@@ -170,7 +167,6 @@ const NeoCard = ({
heightPx={height}
fields={report.fields}
type={report.type}
- refreshRate={report.refreshRate}
expanded={expanded}
extensions={extensions}
dashboardSettings={dashboardSettings}
@@ -179,7 +175,6 @@ const NeoCard = ({
reportSettings={report.settings}
reportSettingsOpen={report.advancedSettingsOpen}
onQueryUpdate={(query) => onQueryUpdate(index, query)}
- onRefreshRateUpdate={(rate) => onRefreshRateUpdate(index, rate)}
onDatabaseChanged={(database) => onDatabaseChanged(index, database)}
onReportSettingUpdate={(setting, value) => onReportSettingUpdate(index, setting, value)}
onTypeUpdate={(type) => onTypeUpdate(index, type)}
@@ -237,9 +232,6 @@ const mapDispatchToProps = (dispatch) => ({
onQueryUpdate: (index: any, query: any) => {
dispatch(updateReportQueryThunk(index, query));
},
- onRefreshRateUpdate: (index: any, rate: any) => {
- dispatch(updateReportRefreshRateThunk(index, rate));
- },
onTypeUpdate: (index: any, type: any) => {
dispatch(updateReportTypeThunk(index, type));
},
diff --git a/src/card/CardActions.ts b/src/card/CardActions.ts
index 28e2c20f4..3b3828878 100644
--- a/src/card/CardActions.ts
+++ b/src/card/CardActions.ts
@@ -32,12 +32,6 @@ export const updateReportQuery = (pagenumber: number, index: number, query: any)
payload: { pagenumber, index, query },
});
-export const UPDATE_REPORT_REFRESH_RATE = 'PAGE/CARD/UPDATE_REPORT_REFRESH_RATE';
-export const updateReportRefreshRate = (pagenumber: number, index: number, rate: any) => ({
- type: UPDATE_REPORT_REFRESH_RATE,
- payload: { pagenumber, index, rate },
-});
-
export const UPDATE_CYPHER_PARAMETERS = 'PAGE/CARD/UPDATE_CYPHER_PARAMETERS';
export const updateCypherParameters = (pagenumber: number, index: number, parameters: any) => ({
type: UPDATE_CYPHER_PARAMETERS,
diff --git a/src/card/CardReducer.ts b/src/card/CardReducer.ts
index 8623503cd..acbe99818 100644
--- a/src/card/CardReducer.ts
+++ b/src/card/CardReducer.ts
@@ -6,7 +6,6 @@ import {
UPDATE_CYPHER_PARAMETERS,
UPDATE_FIELDS,
UPDATE_REPORT_QUERY,
- UPDATE_REPORT_REFRESH_RATE,
UPDATE_REPORT_SETTING,
UPDATE_REPORT_SIZE,
UPDATE_REPORT_TITLE,
@@ -61,12 +60,6 @@ export const cardReducer = (state = CARD_INITIAL_STATE, action: { type: any; pay
state = update(state, { query: query });
return state;
}
- case UPDATE_REPORT_REFRESH_RATE: {
- const { rate } = payload;
-
- state = update(state, { refreshRate: rate });
- return state;
- }
case UPDATE_CYPHER_PARAMETERS: {
const { parameters } = payload;
state = update(state, { parameters: parameters });
diff --git a/src/card/CardThunks.ts b/src/card/CardThunks.ts
index 68d9f827e..342e6a2f6 100644
--- a/src/card/CardThunks.ts
+++ b/src/card/CardThunks.ts
@@ -2,8 +2,6 @@ import {
updateReportTitle,
updateReportQuery,
updateSelection,
- updateReportSize,
- updateReportRefreshRate,
updateCypherParameters,
updateFields,
updateReportType,
@@ -52,17 +50,6 @@ export const updateReportQueryThunk = (index, query) => (dispatch: any, getState
}
};
-// TODO: make refresh rate an advanced setting
-export const updateReportRefreshRateThunk = (index, rate) => (dispatch: any, getState: any) => {
- try {
- const state = getState();
- const { pagenumber } = state.dashboard.settings;
- dispatch(updateReportRefreshRate(pagenumber, index, rate));
- } catch (e) {
- dispatch(createNotificationThunk('Cannot update refresh rate', e));
- }
-};
-
export const updateCypherParametersThunk = (index, parameters) => (dispatch: any, getState: any) => {
try {
const state = getState();
diff --git a/src/card/settings/CardSettings.tsx b/src/card/settings/CardSettings.tsx
index d00f83a07..92100b579 100644
--- a/src/card/settings/CardSettings.tsx
+++ b/src/card/settings/CardSettings.tsx
@@ -11,7 +11,6 @@ const NeoCardSettings = ({
query,
database, // Current database related to the report
databaseList, // List of databases the user can choose from ('system' is filtered out)
- refreshRate,
width,
height,
type,
@@ -21,7 +20,6 @@ const NeoCardSettings = ({
heightPx,
extensions, // A set of enabled extensions.
onQueryUpdate,
- onRefreshRateUpdate,
onDatabaseChanged, // When the database related to a report is changed it must be stored in the report state
onRemovePressed,
onClonePressed,
@@ -57,7 +55,6 @@ const NeoCardSettings = ({
) : (
diff --git a/src/card/settings/CardSettingsContent.tsx b/src/card/settings/CardSettingsContent.tsx
index ee098bf1b..129ca0e81 100644
--- a/src/card/settings/CardSettingsContent.tsx
+++ b/src/card/settings/CardSettingsContent.tsx
@@ -12,11 +12,9 @@ const NeoCardSettingsContent = ({
database, // Current report database
databaseList, // List of databases the user can choose from ('system' is filtered out)
reportSettings,
- refreshRate,
type,
extensions,
onQueryUpdate,
- onRefreshRateUpdate,
onReportSettingUpdate,
onTypeUpdate,
onDatabaseChanged, // When the database related to a report is changed it must be stored in the report state
@@ -25,9 +23,6 @@ const NeoCardSettingsContent = ({
const [queryText, setQueryText] = React.useState(query);
const debouncedQueryUpdate = useCallback(debounce(onQueryUpdate, 250), []);
- const [refreshRateText, setRefreshRateText] = React.useState(refreshRate);
- const debouncedRefreshRateUpdate = useCallback(debounce(onRefreshRateUpdate, 250), []);
-
// State to manage the current database entry inside the form
const [databaseText, setDatabaseText] = React.useState(database);
const debouncedDatabaseUpdate = useCallback(debounce(onDatabaseChanged, 250), []);
@@ -39,13 +34,6 @@ const NeoCardSettingsContent = ({
}
}, [query]);
- useEffect(() => {
- // Reset text to the dashboard state when the page gets reorganized.
- if (refreshRate !== refreshRateText) {
- setRefreshRateText(refreshRate !== undefined ? refreshRate : '');
- }
- }, [refreshRate]);
-
const reportTypes = getReportTypes(extensions);
const SettingsComponent = reportTypes[type] && reportTypes[type].settingsComponent;
@@ -64,13 +52,13 @@ const NeoCardSettingsContent = ({
))}
/>
- {reportTypes[type] && reportTypes[type].disableRefreshRate == undefined ? (
+ {reportTypes[type] && reportTypes[type].disableDatabaseSelector == undefined ? (
(