Skip to content

Commit 84046e3

Browse files
authored
Merge branch 'v2' into gm/get-its-passing
2 parents ac35863 + c8c0904 commit 84046e3

File tree

28 files changed

+7552
-21313
lines changed

28 files changed

+7552
-21313
lines changed

core/validation/flipt.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ close({
2525
#FlagBoolean | *{}
2626
}
2727
if version == "1.3" || version == "1.4" || version == "1.5" {
28-
metadata: [string]: (string | int | bool | float)
28+
metadata: [string]: !=null
2929
}
3030
}
3131

internal/storage/environments/fs/flipt/flags.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ func (f *FlagStorage) GetResource(ctx context.Context, fs environmentsfs.Filesys
6565
return nil, err
6666
}
6767

68-
// TODO: remove this after ui is complete
69-
f.logger.Debug("get flag", zap.Any("flag", payload))
70-
7168
return &rpcenvironments.Resource{
7269
Namespace: namespace,
7370
Key: ff.Key,
@@ -128,9 +125,6 @@ func (f *FlagStorage) PutResource(ctx context.Context, fs environmentsfs.Filesys
128125
return err
129126
}
130127

131-
// TODO: remove this after ui is complete
132-
f.logger.Debug("put flag", zap.Any("flag", flag))
133-
134128
docs, idx, err := getDocsAndNamespace(ctx, fs, rs.Namespace)
135129
if err != nil {
136130
return err

ui/package-lock.json

Lines changed: 6860 additions & 20482 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"lint:fix": "eslint src --fix",
1212
"format": "prettier --write .",
1313
"format:check": "prettier --check .",
14-
"test": "jest"
14+
"test": "jest",
15+
"knip": "knip"
1516
},
1617
"dependencies": {
1718
"@codemirror/lang-json": "^6.0.1",
@@ -65,7 +66,7 @@
6566
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
6667
"@types/jest": "^29.5.14",
6768
"@types/loadable__component": "^5.13.9",
68-
"@types/node": "^18.19.71",
69+
"@types/node": "^18.19.75",
6970
"@types/react": "^18.3.12",
7071
"@types/react-dom": "^18.3.1",
7172
"@types/react-helmet": "^6.1.11",
@@ -96,6 +97,7 @@
9697
"eslint-plugin-react-hooks": "^4.6.2",
9798
"jest": "^29.7.0",
9899
"jest-environment-jsdom": "^29.7.0",
100+
"knip": "^5.43.6",
99101
"package-changed": "^3.0.0",
100102
"playwright": "^1.49.1",
101103
"postcss": "^8.4.49",
@@ -106,7 +108,7 @@
106108
"tailwindcss-bg-patterns": "^0.3.0",
107109
"ts-jest": "^29.2.5",
108110
"ts-node": "^10.9.2",
109-
"typescript": "^4.9.5",
111+
"typescript": "^5.7.3",
110112
"vite": "^5.4.11"
111113
}
112114
}

ui/src/app/console/Console.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { v4 as uuidv4 } from 'uuid';
1010
import * as Yup from 'yup';
1111

1212
import { useListAuthProvidersQuery } from '~/app/auth/authApi';
13+
import { selectCurrentEnvironment } from '~/app/environments/environmentsApi';
1314
import { useListFlagsQuery } from '~/app/flags/flagsApi';
1415
import { selectCurrentNamespace } from '~/app/namespaces/namespacesApi';
1516

@@ -41,8 +42,6 @@ import {
4142
getErrorMessage
4243
} from '~/utils/helpers';
4344

44-
import { selectCurrentEnvironment } from '../environments/environmentsApi';
45-
4645
function ResetOnNamespaceChange({ namespace }: { namespace: INamespace }) {
4746
const { resetForm } = useFormikContext();
4847

ui/src/app/flags/Flag.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export default function Flag() {
9393
}
9494
onSuccess={() => {
9595
navigate(`/namespaces/${namespace.key}/flags`);
96+
setSuccess('Successfully deleted flag');
9697
}}
9798
/>
9899
</Modal>

ui/src/app/flags/rules/Rules.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { StarIcon } from '@heroicons/react/24/outline';
1717
import { useFormikContext } from 'formik';
1818
import { useContext, useMemo, useRef, useState } from 'react';
1919
import { useSelector } from 'react-redux';
20-
import { v4 as uuid } from 'uuid';
2120

2221
import { selectCurrentEnvironment } from '~/app/environments/environmentsApi';
2322
import { selectCurrentNamespace } from '~/app/namespaces/namespacesApi';

ui/src/app/segments/Segment.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export default function Segment() {
9494
}
9595
onSuccess={() => {
9696
navigate(`/namespaces/${namespace.key}/segments`);
97+
setSuccess('Successfully deleted segment');
9798
}}
9899
/>
99100
</Modal>

ui/src/assets/colors/dark.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
--red-50: 127 29 29;
3030

3131
.shadow {
32-
--tw-shadow: 0 1px 3px 0 rgba(255, 255, 255, 0.1),
32+
--tw-shadow:
33+
0 1px 3px 0 rgba(255, 255, 255, 0.1),
3334
0 1px 2px 0 rgba(255, 255, 255, 0.06);
3435
}
3536

@@ -38,17 +39,20 @@
3839
}
3940

4041
.shadow-md {
41-
--tw-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1),
42+
--tw-shadow:
43+
0 4px 6px -1px rgba(255, 255, 255, 0.1),
4244
0 2px 4px -1px rgba(255, 255, 255, 0.06);
4345
}
4446

4547
.shadow-lg {
46-
--tw-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1),
48+
--tw-shadow:
49+
0 10px 15px -3px rgba(255, 255, 255, 0.1),
4750
0 4px 6px -2px rgba(255, 255, 255, 0.05);
4851
}
4952

5053
.shadow-xl {
51-
--tw-shadow: 0 20px 25px -5px rgba(255, 255, 255, 0.1),
54+
--tw-shadow:
55+
0 20px 25px -5px rgba(255, 255, 255, 0.1),
5256
0 10px 10px -5px rgba(255, 255, 255, 0.04);
5357
}
5458

ui/src/components/Footer.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,13 @@ export default function Footer() {
7474
<a
7575
target="_blank"
7676
rel="noreferrer"
77-
href="https://features.flipt.io/changelog"
77+
href="https://docs.flipt.io/changelog/overview"
7878
className="text-violet-500"
7979
>
8080
Changelog
8181
</a>
8282
</span>
8383
</p>
84-
<p className="mt-4 text-xs text-gray-500 sm:mt-0">
85-
<span className="hidden sm:inline">
86-
<a
87-
target="_blank"
88-
rel="noreferrer"
89-
href="https://features.flipt.io"
90-
className="text-violet-500"
91-
>
92-
Share Feedback
93-
</a>
94-
</span>
95-
</p>
9684
</div>
9785
<span className="mt-4 inline-flex justify-center space-x-5 sm:ml-auto sm:mt-0 sm:justify-start">
9886
{social.map((item) => (

0 commit comments

Comments
 (0)