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: onboard apps with context #752

Merged
merged 7 commits into from
Sep 24, 2024
Merged

Conversation

Noggling
Copy link
Contributor

@Noggling Noggling commented Sep 17, 2024

Description

  • PR title and description are to the point and understandable
  • I have performed a self-review of my own code'

Please select version type the purposed change:

  • major
  • minor
  • patch
  • none

External Relations

  • database migration

Changeset

The portal administration now also allows onboarding applications with a specific context.

This commit adds a new component called ContextIndicator to the AgStyle file in the portal-administration application. The ContextIndicator component is a styled span element that displays a colored circle based on the value of the 'active' prop. If the prop is set to 'true', the background color of the circle is set to the warning color defined in the design tokens. Otherwise, the background color is set to 'none'. This component is used for indicating the active state of a context in the application.
…lApplication types

This commit adds the properties isGlobal and isContextual to the PortalApp and PortalApplication types in the index.ts file. These properties indicate whether an app or application is global or contextual. The isGlobal property is added to the PortalApp type, while both properties are added to the PortalApplication type. This change allows for better categorization and management of apps and applications in the portal-administration application.
The ShowConfigPage component in the Portal folder had some unused imports that were causing unnecessary overhead. This commit removes the unused imports to improve code cleanliness and performance.
The AddContext component in the OnboardedContexts folder was updated to improve the user experience. The component now displays "Add Context" instead of "Add Context Type" to provide clearer instructions. Additionally, the InfoPopover title was changed to "Add Context" to match the updated component name. These changes enhance the usability of the AddContext feature in the portal-administration application.
Copy link

changeset-bot bot commented Sep 17, 2024

🦋 Changeset detected

Latest commit: a0dcdec

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

This PR includes changesets to release 1 package
Name Type
fusion-project-portal 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 frontend Frontend specific size-xl labels Sep 17, 2024
@Noggling Noggling changed the title feat: Onboard apps with context feat: onboard apps with context Sep 20, 2024
@Noggling Noggling marked this pull request as ready for review September 23, 2024 09:58
@Noggling Noggling requested a review from a team as a code owner September 23, 2024 09:58
Copy link
Contributor

@EdwardBrunton EdwardBrunton 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 you should consider moving your AG-Grid configuration to a separate to keep your markup clean

activateSelectedWithContext: VoidFunction;
};

export const ActivateSelectedWithContextButton = ({
selection,
activateSelectedWithContext,
}: ActivateSelectedWithContextButtonProps) => {
const isActive = selection.some((a) => a.isActive);
const isActive = selection.some((a) => !a.isActive) && selection.length < 2;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why < 2?

import { useResizeObserver } from '../../hooks/use-resise-observer';
import { AgStyles } from '../AgStyle';
import { AddContext } from '../OnboardedContexts/AddContext';
import { Loading } from '../Loading';

const Style = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider moving this to a separate file

@Noggling Noggling merged commit 97867dc into main Sep 24, 2024
3 checks passed
@Noggling Noggling deleted the feat/onboard-apps-with-context branch September 24, 2024 08:28
@Noggling Noggling restored the feat/onboard-apps-with-context branch September 24, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Frontend specific size-xl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants