Compare commits

...

19 Commits

Author SHA1 Message Date
Raphael Krut-Landau
ef5d60dd19 Merge branch 'master' into perf/schedule 2024-04-18 12:08:22 -04:00
Raphael Krut-Landau
f026a31e94 Add document title to Performance page and rename Cache TTL field 2024-04-17 21:27:55 -04:00
Raphael Krut-Landau
e38db6930c Fix type issues 2024-04-17 12:54:43 -04:00
Raphael Krut-Landau
e261efc602 Reorganize utils a bit more 2024-04-17 12:54:43 -04:00
Raphael Krut-Landau
187378f318 Reorganize utils a bit more 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
bdbe9f74af Reorganize utils 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
3b19fdc577 Simplify addZeroesToHour 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
48e04966f2 Add tests to Schedule component, and use functions rather TwoColumns 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
0c014371d2 wip 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
c1f2f50d58 Ensure that schedule form can save 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
4f008fa3a9 Re-order strategies 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
97cfba4a14 Add schedule type to policy token for schedule strategy 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
123f855a0d Fix removeBrackets func 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
1539c80a6b Fix test 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
e49879eeed Use workaround to placate babel 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
4c1218eb26 Reset locale edit 2024-04-17 12:54:42 -04:00
Raphael Krut-Landau
e21a7a37b6 Fix visual bug in Schedule 2024-04-17 12:54:41 -04:00
Raphael Krut-Landau
08504da3c3 Reset changes to locales 2024-04-17 12:54:41 -04:00
Raphael Krut-Landau
21dbdc06bd Put Schedule in two columns. Simplify timezone display. Fix bugs, support 24-hour format 2024-04-17 12:54:41 -04:00
2 changed files with 7 additions and 6 deletions

View File

@@ -121,10 +121,7 @@ const StrategyFormBody = ({
name="min_duration_seconds"
/>
</Field>
<Field
title={t`Cache time-to-live (TTL) multiplier`}
subtitle={<MultiplierFieldSubtitle />}
>
<Field title={t`Multiplier`} subtitle={<MultiplierFieldSubtitle />}>
<PositiveNumberInput strategyType="ttl" name="multiplier" />
</Field>
</>

View File

@@ -45,7 +45,7 @@ import {
import CS from "metabase/css/core/index.css";
import { withBackground } from "metabase/hoc/Background";
import { ModalRoute } from "metabase/hoc/ModalRoute";
import { Route } from "metabase/hoc/Title";
import title, { Route } from "metabase/hoc/Title";
import {
PLUGIN_ADMIN_ROUTES,
PLUGIN_ADMIN_USER_MENU_ROUTES,
@@ -164,7 +164,11 @@ const getRoutes = (store, CanAccessSettings, IsAdmin) => (
path="performance"
component={createAdminRouteGuard("performance")}
>
<IndexRoute title={t`Performance`} path="" component={PerformanceApp} />
<IndexRoute
title={t`Performance`}
path=""
component={title(t`Performance`)(PerformanceApp)}
/>
</Route>
<Route
path="tools"