Skip to content

feat(cryptography): add activity synonym registration for Cryptography pack#515

Open
adrianignat13 wants to merge 2 commits intodevelopfrom
feat/STUD-77325
Open

feat(cryptography): add activity synonym registration for Cryptography pack#515
adrianignat13 wants to merge 2 commits intodevelopfrom
feat/STUD-77325

Conversation

@adrianignat13
Copy link
Member

@adrianignat13 adrianignat13 commented Feb 26, 2026

Summary

  • Add "Cryptography" as a search synonym for all 6 Cryptography activities (DecryptFile, DecryptText, EncryptFile, EncryptText, KeyedHashFile, KeyedHashText)
  • Uses the standard metadata-driven DisplayNameAliasKeys pattern in ActivitiesMetadata.json with a localized .resx entry

Test plan

  • Build Activities.Cryptography.sln — passes with 0 errors
  • In Studio, search the activities panel for "Cryptography" and verify all 6 activities appear
  • Verify the activities still appear when searched by their original display names

Jira: STUD-77325

adrianignat13 and others added 2 commits February 26, 2026 15:14
…y pack

## Problem
Cryptography activities lack activity synonym registration, so users
cannot find them by searching for the synonym "Cryptography" in UiPath
Studio's activity panel.

## Solution Considerations
Followed the same synonym registration pattern used by Database and FTP
packs. Placed registration in the .Activities project (not .Design)
since the Cryptography pack already structures its design-time code there.

## Actual Fix
Added three new files to UiPath.Cryptography.Activities:
- ApiRegistrationBase.cs — Abstract base class with JIT-safe
  initialization pattern to prevent compilation exceptions on older
  Studio versions.
- ActivitySynonymApiRegistration.cs — Registers the "Cryptography"
  synonym for all 6 activities (DecryptFile, DecryptText, EncryptFile,
  EncryptText, KeyedHashFile, KeyedHashText) via
  IWorkflowDesignApi.ActivitySynonymService.
- DesignerMetadata.cs — IRegisterMetadata entry point that wires up
  synonym registration when Studio initializes the pack.

Modified .resx and Designer.cs to add the ActivitySynonymCryptography
resource key with value "Cryptography".

## Caveats
The Designer.cs property was added manually because
PublicResXFileCodeGenerator only runs inside Visual Studio, not during
CLI builds. The entry follows the exact same pattern as all other
properties in the file.

Refs: STUD-77325
…ic API

Replace the incorrect ActivitySynonymService approach (DesignerMetadata.cs,
ApiRegistrationBase.cs, ActivitySynonymApiRegistration.cs) with the standard
DisplayNameAliasKeys entries in ActivitiesMetadata.json. This follows the
established pattern documented in the activity development guide.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

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