Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: permission based sidebar navigation #265

Merged
merged 36 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
05d85c0
feat: list of permissions call
Jan 11, 2024
6724f8f
Merge branch 'main' of github.com:juspay/hyperswitch-control-center i…
Jan 12, 2024
57211c7
Merge branch 'main' of github.com:juspay/hyperswitch-control-center i…
Jan 16, 2024
0906f2c
fix: Sidebar blocked for Permissions
Jan 17, 2024
4771a1b
Merge branch 'main' of github.com:juspay/hyperswitch-control-center i…
Jan 17, 2024
2eaf347
chore: remove helper file
Jan 17, 2024
fb3411f
Merge branch 'main' of github.com:juspay/hyperswitch-control-center i…
Jan 17, 2024
65c20f3
chore: debugging
Jan 17, 2024
29f5b78
chore: refactor
JeevaRamu0104 Jan 17, 2024
b9f2fe6
chore: refactor
JeevaRamu0104 Jan 17, 2024
90c56aa
fix: remove commented code
Jan 17, 2024
5559bb4
chore: Added Access Type & Remove the Read & ReadWrite Type
Jan 17, 2024
11a57b5
Merge branch 'remove-read-readwrite-access' of github.com:juspay/hype…
Jan 17, 2024
329d887
fix: unauthorized page changes
Jan 17, 2024
a512361
fix: revert env and FeatureFlag changes
Jan 17, 2024
75596f9
fix: text changes
Jan 17, 2024
a56a688
fix: Entity Scalfold Cleaning refactoring
Jan 17, 2024
c77867d
Merge branch 'remove-read-readwrite-access' of github.com:juspay/hype…
Jan 17, 2024
e75771b
fix: change of data type of sidebar
Jan 18, 2024
c759950
Merge branch 'main' of github.com:juspay/hyperswitch-control-center i…
Jan 18, 2024
4e2b6a5
fix: Access control changes
Jan 18, 2024
0c2fd38
Merge branch 'main' of github.com:juspay/hyperswitch-control-center i…
Jan 18, 2024
50feb4d
fix: Unauthorized page removal
Jan 18, 2024
e7a4563
fix:PermissionJson created
Jan 18, 2024
6537f4d
fix: JSON structure for Sidebar and app level
Jan 18, 2024
1c412ea
Merge branch 'main' of github.com:juspay/hyperswitch-control-center i…
Jan 18, 2024
7e6d26d
Merge branch 'main' into user-management-block-sidebar
Jan 19, 2024
f350d80
chore: default value added
Jan 19, 2024
65be8a2
Merge branch 'user-management-block-sidebar' of github.com:juspay/hyp…
Jan 19, 2024
051826e
chore: PermissionBasedModule Feature flag added
Jan 19, 2024
b16a733
Merge branch 'main' into user-management-block-sidebar
Jan 19, 2024
95ef32a
Merge branch 'main' into user-management-block-sidebar
Jan 22, 2024
4d6c19f
chore: API added for get_permissions
Jan 22, 2024
aaed20c
chore: Entity scalfold cleaning
Jan 22, 2024
d71828e
chore: option getWithDefault
Jan 22, 2024
bb52c24
chore: app file refactor
Jan 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/FeatureFlag.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"forgot_password": false,
"user_journey_analytics": false,
"surcharge": false,
"customers_module": false
"customers_module": false,
"permission_based_module": false
}
2 changes: 2 additions & 0 deletions src/entryPoints/hyperswitch/FeatureFlagUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type featureFlag = {
userJourneyAnalytics: bool,
surcharge: bool,
customersModule: bool,
permissionBasedModule: bool,
}

let featureFlagType = (featureFlags: Js.Json.t) => {
Expand Down Expand Up @@ -55,6 +56,7 @@ let featureFlagType = (featureFlags: Js.Json.t) => {
userJourneyAnalytics: dict->getBool("user_journey_analytics", false),
surcharge: dict->getBool("surcharge", false),
customersModule: dict->getBool("customers_module", false),
permissionBasedModule: dict->getBool("permission_based_module", false),
}
typedFeatureFlag
}
271 changes: 169 additions & 102 deletions src/entryPoints/hyperswitch/HyperSwitchApp.res

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/entryPoints/hyperswitch/HyperswitchAtom.res
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let paypalAccountStatusAtom: Recoil.recoilAtom<PayPalFlowTypes.setupAccountStatu
"paypalAccountStatusAtom",
PayPalFlowTypes.Account_not_found,
)
let userPermissionAtom: Recoil.recoilAtom<array<PermissionUtils.permissionType>> = Recoil.atom(.
let userPermissionAtom: Recoil.recoilAtom<PermissionUtils.permissionJson> = Recoil.atom(.
"userPermissionAtom",
[],
PermissionUtils.defaultValueForPermission,
)
Loading
Loading