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

[INNO] ARC-2714 - Adding modals for backfill page #2598

Merged
merged 17 commits into from
Dec 8, 2023

Conversation

krazziekay
Copy link
Collaborator

@krazziekay krazziekay commented Dec 5, 2023

What's in this PR?

  • Adding the modals for the different actions in the settings option for a subscription in the Backfill page.

Why

  • Innovation Week

Screenshot

  • Delete subscription
image
  • Backfill
image

Whats Next?

  • Merge and implement the API calls.

@krazziekay krazziekay changed the title Arc adding modals for backfill page [INNO] Adding modals for backfill page Dec 5, 2023
@krazziekay krazziekay self-assigned this Dec 5, 2023
@krazziekay krazziekay marked this pull request as ready for review December 7, 2023 03:56
@krazziekay krazziekay requested a review from a team as a code owner December 7, 2023 03:56
@yvonnevictoria
Copy link
Contributor

@krazziekay It'd be great if you added a ticket for this work on the board and linked it to the PR :)

const GitHubCloudConnections = ({
ghCloudSubscriptions,
}: GitHubCloudConnectionsProps) => {
const [isModalOpened, setIsModalOpened] = useState(false);
const [subscriptionForModal, setSubscriptionForModal] = useState<SuccessfulConnection | undefined>(undefined);
const [selectedModal, setSelectedModal] = useState<BackfillPageModalTypes>("BACKFILL");
Copy link
Contributor

Choose a reason for hiding this comment

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

It'd be good to create an enum for this instead of using strings

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think its supported in webpack.
Simply following up on how we're using it in other places in spa. Can see the comment here in this file.

@krazziekay krazziekay changed the title [INNO] Adding modals for backfill page [INNO] ARC-2714 - Adding modals for backfill page Dec 7, 2023
@yvonnevictoria
Copy link
Contributor

Can we add some tests for these files?

@krazziekay
Copy link
Collaborator Author

Can we add some tests for these files?

Have added 2 test cases for the 2 modals. But will add more once we have endpoints running, which will happen in the next PR.

@krazziekay krazziekay merged commit a5ebf21 into main Dec 8, 2023
3 of 4 checks passed
@krazziekay krazziekay deleted the ARC-adding-modals-for-backfill-page branch December 8, 2023 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants