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/cli/personsidesheet #1635

Merged
merged 39 commits into from
Jan 11, 2024
Merged

Conversation

eikeland
Copy link
Contributor

@eikeland eikeland commented Dec 20, 2023

adding sidebar feature toggler in cli header.
See the cli package for the PersonSideSheet component.

Issue, The hook does not get app features only portal features.

Fixes: AB#46155

@eikeland eikeland requested review from odinr and a team as code owners December 20, 2023 15:45
Copy link

changeset-bot bot commented Dec 20, 2023

🦋 Changeset detected

Latest commit: 27a4440

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@equinor/fusion-framework-cookbook-app-react-feature-flag Patch
@equinor/fusion-framework-module-feature-flag Patch
@equinor/fusion-framework-cookbook-app-react Patch
@equinor/fusion-framework-react-app Patch
@equinor/fusion-framework-cli Patch
@equinor/fusion-framework-react Patch
@equinor/fusion-framework-legacy-interopt Patch
@equinor/fusion-framework-react-components-bookmark Patch
@equinor/fusion-framework-react-components-people-provider Patch
@equinor/fusion-framework-react-module-bookmark Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added 👾 React 💾 CLI fusion framework CLI 🚀 feature New feature or request 🚧 chore maintaines work, (update deps, workflos ...) labels Dec 20, 2023
@eikeland eikeland self-assigned this Dec 20, 2023
Copy link
Contributor

github-actions bot commented Dec 20, 2023

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 73.11% 1273 / 1741
🔵 Statements 73.11% 1273 / 1741
🔵 Functions 51.35% 38 / 74
🔵 Branches 85.24% 104 / 122
File CoverageNo changed files found.
Generated in workflow #3282

@github-actions github-actions bot added the 📚 documentation Improvements or additions to documentation label Dec 20, 2023
@asbjornhaland asbjornhaland marked this pull request as draft January 2, 2024 09:24
@asbjornhaland asbjornhaland marked this pull request as ready for review January 2, 2024 09:24
@eikeland eikeland requested a review from odinr January 10, 2024 15:28
@eikeland eikeland marked this pull request as ready for review January 11, 2024 08:51
@eikeland eikeland marked this pull request as draft January 11, 2024 09:11
@eikeland eikeland marked this pull request as ready for review January 11, 2024 09:11
Comment on lines 35 to 39
const azureId: string | undefined = useMemo(() => {
if (currentUser) {
return currentUser.localAccountId;
}
}, [currentUser]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const azureId: string | undefined = useMemo(() => {
if (currentUser) {
return currentUser.localAccountId;
}
}, [currentUser]);
const azureId = currentUser?.localAccountId

no need to memorized

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we have this?
in the future this will be a widget

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing

Copy link
Collaborator

@odinr odinr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should remove unused code

@github-actions github-actions bot marked this pull request as draft January 11, 2024 12:18
@eikeland eikeland marked this pull request as ready for review January 11, 2024 12:25
@odinr odinr merged commit 1c091dd into feature/feature-flag/initial Jan 11, 2024
11 checks passed
@odinr odinr deleted the feat/cli/personsidesheet branch January 11, 2024 12:40
eikeland added a commit that referenced this pull request Jan 11, 2024
* chore(useFeatureFlags): adding hook for getting all feature flags

* feat(cli): adding personsidesheet with feature flags

* chore(package): supporting new node versions

* chore(cli): commenting out for test

* chore: lockfile

* chore(feature-flag): fixing useFeatureFlags hook

* docs: changeset

* chore: lint errors

* chore(node): only support latest LTS node version

* feat(featuretoggler): adds hook for getting useCurrentAppFeatureFlags

* feat(cli-feature): personsidesheet uses hook useCurrentAppFeatureFlags

* chore(react-app): unnessesary export of internal helper function

* chore(cookbook): adapting cookbook to new featureflag hooks.

- commenting out the feature api plugin so the app will work oob
- using the getFeatureFlags to list all app features

* chore(cli): styles for switches in featuretoggler sidesheet

* docs(tsdocs): tsdocs for hook useCurrentAppFeatureFlags

* docs(tsdocs): tsdocs for hook useFeatureFlags

* fix(feature-flag): add missing arrow_back icon

* fix(cli): enable feature flag cgi module plugin

* fix(feature-flag): add testing flags for app and portal

* fix(feature-flag): update localStorage name for cookbook and cli

* style(app-react-feature-flag): fix lint errors

* docs(feature-flag): add docs for feature-flag

* fix(feature-flag): hook useFrameworkFeatureFlag moved to fusion-framework-react/app

* docs(feature-flag): move docs from module to guide

* fix: simplify configurator

* fix(cookbook|cli): update to use simplified configurator for feature flag

* docs(feature-flag): update to use simplified configurator for feature flag

* fix(feature-flag): remove unused imports

* chore(framework-feature-flag): moving feature-flag hoooks to own folder

* chore(cli-feature-flag): new framework feature-flag hook location

* chore(cli): removing obsolete dependency

* chore(react-app): @equinor/fusion-framework-module-feature-flag as dev and peer dep

* chore(react-app): feature-flag hook refractoring

* docs(module-feature-flag): readme meeting notes

* chore(pnpm): lockfile

* fix(eslint): minor linting in featue-flag hooks

* docs(feature-flag): readme completet done task

* fix(cli): remove unneded useMemo for azureId

* fix(cli): removing unused sidesheet tabs

---------

Co-authored-by: Asbjørn Håland <[email protected]>
Co-authored-by: Odin Thomas Rochmann <[email protected]>
eikeland added a commit that referenced this pull request Jan 11, 2024
* chore(useFeatureFlags): adding hook for getting all feature flags

* feat(cli): adding personsidesheet with feature flags

* chore(package): supporting new node versions

* chore(cli): commenting out for test

* chore: lockfile

* chore(feature-flag): fixing useFeatureFlags hook

* docs: changeset

* chore: lint errors

* chore(node): only support latest LTS node version

* feat(featuretoggler): adds hook for getting useCurrentAppFeatureFlags

* feat(cli-feature): personsidesheet uses hook useCurrentAppFeatureFlags

* chore(react-app): unnessesary export of internal helper function

* chore(cookbook): adapting cookbook to new featureflag hooks.

- commenting out the feature api plugin so the app will work oob
- using the getFeatureFlags to list all app features

* chore(cli): styles for switches in featuretoggler sidesheet

* docs(tsdocs): tsdocs for hook useCurrentAppFeatureFlags

* docs(tsdocs): tsdocs for hook useFeatureFlags

* fix(feature-flag): add missing arrow_back icon

* fix(cli): enable feature flag cgi module plugin

* fix(feature-flag): add testing flags for app and portal

* fix(feature-flag): update localStorage name for cookbook and cli

* style(app-react-feature-flag): fix lint errors

* docs(feature-flag): add docs for feature-flag

* fix(feature-flag): hook useFrameworkFeatureFlag moved to fusion-framework-react/app

* docs(feature-flag): move docs from module to guide

* fix: simplify configurator

* fix(cookbook|cli): update to use simplified configurator for feature flag

* docs(feature-flag): update to use simplified configurator for feature flag

* fix(feature-flag): remove unused imports

* chore(framework-feature-flag): moving feature-flag hoooks to own folder

* chore(cli-feature-flag): new framework feature-flag hook location

* chore(cli): removing obsolete dependency

* chore(react-app): @equinor/fusion-framework-module-feature-flag as dev and peer dep

* chore(react-app): feature-flag hook refractoring

* docs(module-feature-flag): readme meeting notes

* chore(pnpm): lockfile

* fix(eslint): minor linting in featue-flag hooks

* docs(feature-flag): readme completet done task

* fix(cli): remove unneded useMemo for azureId

* fix(cli): removing unused sidesheet tabs

---------

Co-authored-by: Asbjørn Håland <[email protected]>
Co-authored-by: Odin Thomas Rochmann <[email protected]>
asbjornhaland added a commit that referenced this pull request Jan 15, 2024
* chore(useFeatureFlags): adding hook for getting all feature flags

* feat(cli): adding personsidesheet with feature flags

* chore(package): supporting new node versions

* chore(cli): commenting out for test

* chore: lockfile

* chore(feature-flag): fixing useFeatureFlags hook

* docs: changeset

* chore: lint errors

* chore(node): only support latest LTS node version

* feat(featuretoggler): adds hook for getting useCurrentAppFeatureFlags

* feat(cli-feature): personsidesheet uses hook useCurrentAppFeatureFlags

* chore(react-app): unnessesary export of internal helper function

* chore(cookbook): adapting cookbook to new featureflag hooks.

- commenting out the feature api plugin so the app will work oob
- using the getFeatureFlags to list all app features

* chore(cli): styles for switches in featuretoggler sidesheet

* docs(tsdocs): tsdocs for hook useCurrentAppFeatureFlags

* docs(tsdocs): tsdocs for hook useFeatureFlags

* fix(feature-flag): add missing arrow_back icon

* fix(cli): enable feature flag cgi module plugin

* fix(feature-flag): add testing flags for app and portal

* fix(feature-flag): update localStorage name for cookbook and cli

* style(app-react-feature-flag): fix lint errors

* docs(feature-flag): add docs for feature-flag

* fix(feature-flag): hook useFrameworkFeatureFlag moved to fusion-framework-react/app

* docs(feature-flag): move docs from module to guide

* fix: simplify configurator

* fix(cookbook|cli): update to use simplified configurator for feature flag

* docs(feature-flag): update to use simplified configurator for feature flag

* fix(feature-flag): remove unused imports

* chore(framework-feature-flag): moving feature-flag hoooks to own folder

* chore(cli-feature-flag): new framework feature-flag hook location

* chore(cli): removing obsolete dependency

* chore(react-app): @equinor/fusion-framework-module-feature-flag as dev and peer dep

* chore(react-app): feature-flag hook refractoring

* docs(module-feature-flag): readme meeting notes

* chore(pnpm): lockfile

* fix(eslint): minor linting in featue-flag hooks

* docs(feature-flag): readme completet done task

* fix(cli): remove unneded useMemo for azureId

* fix(cli): removing unused sidesheet tabs

---------

Co-authored-by: Asbjørn Håland <[email protected]>
Co-authored-by: Odin Thomas Rochmann <[email protected]>
eikeland added a commit that referenced this pull request Jan 16, 2024
* chore(useFeatureFlags): adding hook for getting all feature flags

* feat(cli): adding personsidesheet with feature flags

* chore(package): supporting new node versions

* chore(cli): commenting out for test

* chore: lockfile

* chore(feature-flag): fixing useFeatureFlags hook

* docs: changeset

* chore: lint errors

* chore(node): only support latest LTS node version

* feat(featuretoggler): adds hook for getting useCurrentAppFeatureFlags

* feat(cli-feature): personsidesheet uses hook useCurrentAppFeatureFlags

* chore(react-app): unnessesary export of internal helper function

* chore(cookbook): adapting cookbook to new featureflag hooks.

- commenting out the feature api plugin so the app will work oob
- using the getFeatureFlags to list all app features

* chore(cli): styles for switches in featuretoggler sidesheet

* docs(tsdocs): tsdocs for hook useCurrentAppFeatureFlags

* docs(tsdocs): tsdocs for hook useFeatureFlags

* fix(feature-flag): add missing arrow_back icon

* fix(cli): enable feature flag cgi module plugin

* fix(feature-flag): add testing flags for app and portal

* fix(feature-flag): update localStorage name for cookbook and cli

* style(app-react-feature-flag): fix lint errors

* docs(feature-flag): add docs for feature-flag

* fix(feature-flag): hook useFrameworkFeatureFlag moved to fusion-framework-react/app

* docs(feature-flag): move docs from module to guide

* fix: simplify configurator

* fix(cookbook|cli): update to use simplified configurator for feature flag

* docs(feature-flag): update to use simplified configurator for feature flag

* fix(feature-flag): remove unused imports

* chore(framework-feature-flag): moving feature-flag hoooks to own folder

* chore(cli-feature-flag): new framework feature-flag hook location

* chore(cli): removing obsolete dependency

* chore(react-app): @equinor/fusion-framework-module-feature-flag as dev and peer dep

* chore(react-app): feature-flag hook refractoring

* docs(module-feature-flag): readme meeting notes

* chore(pnpm): lockfile

* fix(eslint): minor linting in featue-flag hooks

* docs(feature-flag): readme completet done task

* fix(cli): remove unneded useMemo for azureId

* fix(cli): removing unused sidesheet tabs

---------

Co-authored-by: Asbjørn Håland <[email protected]>
Co-authored-by: Odin Thomas Rochmann <[email protected]>
eikeland added a commit that referenced this pull request Jan 16, 2024
* chore(useFeatureFlags): adding hook for getting all feature flags

* feat(cli): adding personsidesheet with feature flags

* chore(package): supporting new node versions

* chore(cli): commenting out for test

* chore: lockfile

* chore(feature-flag): fixing useFeatureFlags hook

* docs: changeset

* chore: lint errors

* chore(node): only support latest LTS node version

* feat(featuretoggler): adds hook for getting useCurrentAppFeatureFlags

* feat(cli-feature): personsidesheet uses hook useCurrentAppFeatureFlags

* chore(react-app): unnessesary export of internal helper function

* chore(cookbook): adapting cookbook to new featureflag hooks.

- commenting out the feature api plugin so the app will work oob
- using the getFeatureFlags to list all app features

* chore(cli): styles for switches in featuretoggler sidesheet

* docs(tsdocs): tsdocs for hook useCurrentAppFeatureFlags

* docs(tsdocs): tsdocs for hook useFeatureFlags

* fix(feature-flag): add missing arrow_back icon

* fix(cli): enable feature flag cgi module plugin

* fix(feature-flag): add testing flags for app and portal

* fix(feature-flag): update localStorage name for cookbook and cli

* style(app-react-feature-flag): fix lint errors

* docs(feature-flag): add docs for feature-flag

* fix(feature-flag): hook useFrameworkFeatureFlag moved to fusion-framework-react/app

* docs(feature-flag): move docs from module to guide

* fix: simplify configurator

* fix(cookbook|cli): update to use simplified configurator for feature flag

* docs(feature-flag): update to use simplified configurator for feature flag

* fix(feature-flag): remove unused imports

* chore(framework-feature-flag): moving feature-flag hoooks to own folder

* chore(cli-feature-flag): new framework feature-flag hook location

* chore(cli): removing obsolete dependency

* chore(react-app): @equinor/fusion-framework-module-feature-flag as dev and peer dep

* chore(react-app): feature-flag hook refractoring

* docs(module-feature-flag): readme meeting notes

* chore(pnpm): lockfile

* fix(eslint): minor linting in featue-flag hooks

* docs(feature-flag): readme completet done task

* fix(cli): remove unneded useMemo for azureId

* fix(cli): removing unused sidesheet tabs

---------

Co-authored-by: Asbjørn Håland <[email protected]>
Co-authored-by: Odin Thomas Rochmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🚧 chore maintaines work, (update deps, workflos ...) 💾 CLI fusion framework CLI 👨🏻‍🍳 cookbooks 📚 documentation Improvements or additions to documentation 🚀 feature New feature or request 🧬 Modules 👾 React
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants