feat(cryptography): add activity synonym registration for Cryptography pack#515
Open
adrianignat13 wants to merge 2 commits intodevelopfrom
Open
feat(cryptography): add activity synonym registration for Cryptography pack#515adrianignat13 wants to merge 2 commits intodevelopfrom
adrianignat13 wants to merge 2 commits intodevelopfrom
Conversation
…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>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Test plan
Jira: STUD-77325