release schedule upcoming length adjustment (#4173)
* release schedule upcoming length adjustment * note * Update VRT --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 79 KiB |
@@ -7,7 +7,6 @@ import { useSchedules } from 'loot-core/src/client/data-hooks/schedules';
|
|||||||
import { send } from 'loot-core/src/platform/client/fetch';
|
import { send } from 'loot-core/src/platform/client/fetch';
|
||||||
import { type ScheduleEntity } from 'loot-core/src/types/models';
|
import { type ScheduleEntity } from 'loot-core/src/types/models';
|
||||||
|
|
||||||
import { useFeatureFlag } from '../../hooks/useFeatureFlag';
|
|
||||||
import { useDispatch } from '../../redux';
|
import { useDispatch } from '../../redux';
|
||||||
import { theme } from '../../style';
|
import { theme } from '../../style';
|
||||||
import { Button } from '../common/Button2';
|
import { Button } from '../common/Button2';
|
||||||
@@ -23,8 +22,6 @@ export function Schedules() {
|
|||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const [filter, setFilter] = useState('');
|
const [filter, setFilter] = useState('');
|
||||||
|
|
||||||
const upcomingLengthEnabled = useFeatureFlag('upcomingLengthAdjustment');
|
|
||||||
|
|
||||||
const onEdit = useCallback(
|
const onEdit = useCallback(
|
||||||
(id: ScheduleEntity['id']) => {
|
(id: ScheduleEntity['id']) => {
|
||||||
dispatch(pushModal('schedule-edit', { id }));
|
dispatch(pushModal('schedule-edit', { id }));
|
||||||
@@ -134,11 +131,9 @@ export function Schedules() {
|
|||||||
<Button onPress={onDiscover}>
|
<Button onPress={onDiscover}>
|
||||||
<Trans>Find schedules</Trans>
|
<Trans>Find schedules</Trans>
|
||||||
</Button>
|
</Button>
|
||||||
{upcomingLengthEnabled && (
|
<Button onPress={onChangeUpcomingLength}>
|
||||||
<Button onPress={onChangeUpcomingLength}>
|
<Trans>Change upcoming length</Trans>
|
||||||
<Trans>Change upcoming length</Trans>
|
</Button>
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
</View>
|
</View>
|
||||||
<Button variant="primary" onPress={onAdd}>
|
<Button variant="primary" onPress={onAdd}>
|
||||||
<Trans>Add new schedule</Trans>
|
<Trans>Add new schedule</Trans>
|
||||||
|
|||||||
@@ -84,12 +84,6 @@ export function ExperimentalFeatures() {
|
|||||||
>
|
>
|
||||||
<Trans>Rule action templating</Trans>
|
<Trans>Rule action templating</Trans>
|
||||||
</FeatureToggle>
|
</FeatureToggle>
|
||||||
<FeatureToggle
|
|
||||||
flag="upcomingLengthAdjustment"
|
|
||||||
feedbackLink="https://github.com/actualbudget/actual/issues/3660"
|
|
||||||
>
|
|
||||||
<Trans>Scheduled transaction upcoming length adjustment</Trans>
|
|
||||||
</FeatureToggle>
|
|
||||||
<FeatureToggle
|
<FeatureToggle
|
||||||
flag="contextMenus"
|
flag="contextMenus"
|
||||||
feedbackLink="https://github.com/actualbudget/actual/issues/3706"
|
feedbackLink="https://github.com/actualbudget/actual/issues/3706"
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { useSyncedPref } from './useSyncedPref';
|
|||||||
const DEFAULT_FEATURE_FLAG_STATE: Record<FeatureFlag, boolean> = {
|
const DEFAULT_FEATURE_FLAG_STATE: Record<FeatureFlag, boolean> = {
|
||||||
goalTemplatesEnabled: false,
|
goalTemplatesEnabled: false,
|
||||||
actionTemplating: false,
|
actionTemplating: false,
|
||||||
upcomingLengthAdjustment: false,
|
|
||||||
contextMenus: false,
|
contextMenus: false,
|
||||||
openidAuth: false,
|
openidAuth: false,
|
||||||
};
|
};
|
||||||
|
|||||||
1
packages/loot-core/src/types/prefs.d.ts
vendored
@@ -1,7 +1,6 @@
|
|||||||
export type FeatureFlag =
|
export type FeatureFlag =
|
||||||
| 'goalTemplatesEnabled'
|
| 'goalTemplatesEnabled'
|
||||||
| 'actionTemplating'
|
| 'actionTemplating'
|
||||||
| 'upcomingLengthAdjustment'
|
|
||||||
| 'contextMenus'
|
| 'contextMenus'
|
||||||
| 'openidAuth';
|
| 'openidAuth';
|
||||||
|
|
||||||
|
|||||||
6
upcoming-release-notes/4173.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
category: Features
|
||||||
|
authors: [matt-fidd]
|
||||||
|
---
|
||||||
|
|
||||||
|
Release schedule upcoming length adjustment
|
||||||