Skip to content

feat: add utils required for devtron saas#983

Merged
AbhishekA1509 merged 19 commits into
mainfrom
feat/saas
Dec 19, 2025
Merged

feat: add utils required for devtron saas#983
AbhishekA1509 merged 19 commits into
mainfrom
feat/saas

Conversation

@AbhishekA1509

Copy link
Copy Markdown
Member

Description

feat: add utils required for devtron saas

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

…ck.json; add instanceData to DevtronLicenseDTO type
- Imported ImgInstallFreemiumSaas and ImgInstallViaAwsMarketplace SVGs.
- Updated illustrationMap to include new illustrations for 'img-install-freemium-saas' and 'img-install-via-aws-marketplace'.
….json; add img-page-not-found.svg illustration and update DevtronLicenseCard to handle SaaS instance
….json; add isSaasInstance to DevtronLicenseCardProps and update utils to derive its value from instanceData

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds utilities and types required to support Devtron SaaS functionality. The changes introduce a new isSaasInstance flag that determines whether the license is for a SaaS instance, along with new instance data types and conditional rendering logic for the license card component.

Key Changes:

  • Added instanceData field to the DevtronLicenseDTO type for central dashboard instances
  • Introduced isSaasInstance flag derived from the presence of instanceData.devtronUrl
  • Added conditional rendering in the license card to hide certain information for SaaS instances
  • Added new illustration assets for SaaS and AWS marketplace installation flows

Reviewed changes

Copilot reviewed 7 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Shared/types.ts Added instanceData with URL and password fields to conditional license DTO type
src/Shared/constants.tsx Added LICENSE_KEY_QUERY_PARAM constant for query parameter handling
src/Shared/Components/License/utils.tsx Added isSaasInstance flag detection based on instanceData.devtronUrl presence
src/Shared/Components/License/types.ts Added isSaasInstance boolean property to license card props
src/Shared/Components/License/DevtronLicenseCard.tsx Refactored time display logic and added conditional rendering for SaaS instances
src/Shared/Components/Illustration/Illustration.tsx Added three new illustration imports for SaaS and marketplace flows
src/Assets/Illustration/img-page-not-found.svg New SVG asset for 404 page illustration
src/Assets/Illustration/img-install-via-aws-marketplace.svg New SVG asset for AWS marketplace installation flow
src/Assets/Illustration/img-install-freemium-saas.svg New SVG asset for freemium SaaS installation flow
package.json Version bumped to 1.21.0-beta-11
package-lock.json Lock file updated to match package.json version

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Shared/Components/License/DevtronLicenseCard.tsx Outdated
Comment thread src/Shared/Components/License/utils.tsx Outdated
Comment thread src/Shared/Components/License/DevtronLicenseCard.tsx Outdated
…k.json; add activateLicense export in License component
…k.json; update instanceData handling in License component
…lustration

- Updated package.json and package-lock.json to version 1.21.1-beta-1
- Added new SVG illustration for celebration to the assets
- Updated Illustration.tsx to include the new celebration illustration in the illustration map
… isSaasInstance and add it to DevtronLicenseDTO
vivek-devtron
vivek-devtron previously approved these changes Dec 17, 2025
… include isFreeForever logic and enhance license status handling
@AbhishekA1509 AbhishekA1509 merged commit 4e45cb5 into main Dec 19, 2025
6 checks passed
@AbhishekA1509 AbhishekA1509 deleted the feat/saas branch December 19, 2025 11:57
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.

5 participants