console icon indicating copy to clipboard operation
console copied to clipboard

feat: allow kebab and snake case folders

Open nimish-ks opened this issue 5 months ago • 0 comments

:mag: Overview

This PR expands the range of possible folder and path names beyond alphanumeric name by adding support snake_case and kebab-case paths.

The new regex pattern:

const folder_name_pattern = /^[a-zA-Z0-9_-]*$/

:bulb: Proposed Changes

  • Updated the folder_name_pattern in NewFolderMenu

:framed_picture: Screenshots or Demo

image

:memo: Release Notes

  • Enhanced path handling to support kebab-case and snake_case in folder and path names.
  • Users can now use paths like /backend/user-service/config or /frontend/user_profile/settings in their configurations.

:sparkles: How to Test the Changes Locally

  1. Create folder names with - and _ in the Phase Console
  2. Fetch secrets via the CLI, API, SDKs etc.
  3. Test secret referencing

nimish-ks avatar Sep 17 '24 10:09 nimish-ks