Skip to content

Commit 0e5c14e

Browse files
committed
Document next flags iteration
1 parent 334f89a commit 0e5c14e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/lib/flags.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@ import { env } from '$env/dynamic/public';
33
export const PUBLIC_CONSOLE_FEATURE_FLAGS = env.PUBLIC_CONSOLE_FEATURE_FLAGS ?? '';
44

55
function setupFlag(name: string, _description: string) {
6-
// TODO: Use flags library that provides visual component
7-
return PUBLIC_CONSOLE_FEATURE_FLAGS.includes(name);
6+
// TODO: Use flags library that provides visual component during development
7+
8+
if (PUBLIC_CONSOLE_FEATURE_FLAGS.includes(name)) {
9+
return true;
10+
}
11+
12+
// TODO: Check team prefs
13+
14+
// TODO: Check user prefs
15+
16+
return false;
817
}
918

1019
export const flags = {

0 commit comments

Comments
 (0)