Skip to content

feat: add support for n.x.x versions#2980

Open
LeahMarieBush wants to merge 1 commit intomainfrom
leah/feat/n.x.x-version-support
Open

feat: add support for n.x.x versions#2980
LeahMarieBush wants to merge 1 commit intomainfrom
leah/feat/n.x.x-version-support

Conversation

@LeahMarieBush
Copy link
Copy Markdown
Contributor

@LeahMarieBush LeahMarieBush commented Apr 2, 2026

Description

Monday task

This PR adds support for double 'x' versions in dev-portal. There is a partner PR that will be merged around the same time as this one for UDR here.

The main changes in this PR are as follows:

  • Adds double 'x' version regex in all the spots that the normal version regex is used
  • Adds tests for the double 'x' version

Testing

This PR needs to be tested with the changes for UDR. Without those changes, the ones in this PR will not work. You will need to locally run UDR and dev-portal to see these changes reflected.

First, do the steps in UDR:
UDR:

  1. Checkout leah/feat/n.x.x-version-support
  2. Go to vault and create a few new versions. You can do this by copying the latest version folder and pasting it and then changing the name. For testing the sorting, use a variety of version names (ex. v2.x.x, v3.x.x, v4.x.x (rc), v5.x.x (beta))
  3. Run npm run prebuild
  4. After that finishes, run npm run dev

Then do the steps in dev-portal:
Dev-portal:

  1. Checkout leah/feat/n.x.x-version-support
  2. In the .env file, change the UNIFIED_DOCS_API to http://localhost:8080
  3. Run npm start
  4. Go to http://localhost:3000 and click through the vault docs. Verify the new double 'x' versions are sorted properly with the existing versions and look as expected

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dev-portal Ready Ready Preview, Comment Apr 2, 2026 4:17pm

Request Review

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

@LeahMarieBush LeahMarieBush marked this pull request as ready for review April 2, 2026 16:54
@LeahMarieBush LeahMarieBush requested review from a team and rmainwork and removed request for a team April 2, 2026 16:55
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.

1 participant