Skip to content
Snippets Groups Projects
Unverified Commit 0c14eb17 authored by Neil's avatar Neil Committed by GitHub
Browse files

Unflag custom reports (#2554)


* remove featureflag

* notes

* merge fixes

* vrt

---------

Co-authored-by: default avataryoungcw <calebyoung94@gmail.com>
parent 7bb0425c
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -25,7 +25,6 @@ export function Overview() { ...@@ -25,7 +25,6 @@ export function Overview() {
const location = useLocation(); const location = useLocation();
sessionStorage.setItem('url', location.pathname); sessionStorage.setItem('url', location.pathname);
const customReportsFeatureFlag = useFeatureFlag('customReports');
const spendingReportFeatureFlag = useFeatureFlag('spendingReport'); const spendingReportFeatureFlag = useFeatureFlag('spendingReport');
const accounts = useAccounts(); const accounts = useAccounts();
...@@ -43,7 +42,7 @@ export function Overview() { ...@@ -43,7 +42,7 @@ export function Overview() {
}} }}
> >
<PageHeader title="Reports" /> <PageHeader title="Reports" />
{customReportsFeatureFlag && !isNarrowWidth && ( {!isNarrowWidth && (
<Link to="/reports/custom" style={{ textDecoration: 'none' }}> <Link to="/reports/custom" style={{ textDecoration: 'none' }}>
<Button type="primary"> <Button type="primary">
<Text>Create new custom report</Text> <Text>Create new custom report</Text>
...@@ -66,9 +65,7 @@ export function Overview() { ...@@ -66,9 +65,7 @@ export function Overview() {
<CashFlowCard /> <CashFlowCard />
{spendingReportFeatureFlag && <SpendingCard />} {spendingReportFeatureFlag && <SpendingCard />}
</View> </View>
{customReportsFeatureFlag && ( <CustomReportListCards reports={customReports} />
<CustomReportListCards reports={customReports} />
)}
</Page> </Page>
); );
} }
...@@ -79,7 +79,6 @@ export function ExperimentalFeatures() { ...@@ -79,7 +79,6 @@ export function ExperimentalFeatures() {
primaryAction={ primaryAction={
expanded ? ( expanded ? (
<View style={{ gap: '1em' }}> <View style={{ gap: '1em' }}>
<FeatureToggle flag="customReports">Custom reports</FeatureToggle>
<FeatureToggle flag="spendingReport"> <FeatureToggle flag="spendingReport">
Monthly spending Monthly spending
</FeatureToggle> </FeatureToggle>
......
...@@ -6,7 +6,6 @@ import type { FeatureFlag } from 'loot-core/src/types/prefs'; ...@@ -6,7 +6,6 @@ import type { FeatureFlag } from 'loot-core/src/types/prefs';
const DEFAULT_FEATURE_FLAG_STATE: Record<FeatureFlag, boolean> = { const DEFAULT_FEATURE_FLAG_STATE: Record<FeatureFlag, boolean> = {
reportBudget: false, reportBudget: false,
goalTemplatesEnabled: false, goalTemplatesEnabled: false,
customReports: false,
spendingReport: false, spendingReport: false,
simpleFinSync: false, simpleFinSync: false,
iterableTopologicalSort: true, iterableTopologicalSort: true,
......
...@@ -3,7 +3,6 @@ import { type numberFormats } from '../shared/util'; ...@@ -3,7 +3,6 @@ import { type numberFormats } from '../shared/util';
export type FeatureFlag = export type FeatureFlag =
| 'reportBudget' | 'reportBudget'
| 'goalTemplatesEnabled' | 'goalTemplatesEnabled'
| 'customReports'
| 'spendingReport' | 'spendingReport'
| 'simpleFinSync' | 'simpleFinSync'
| 'iterableTopologicalSort'; | 'iterableTopologicalSort';
......
---
category: Features
authors: [carkom]
---
Removing custom reports from feature flag "experimental" state.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment