Skip to content

feat: allow preferences menu for all user #1880

Merged
prafull-opensignlabs merged 1 commit intostagingfrom
updates-16678047946
Aug 1, 2025
Merged

feat: allow preferences menu for all user #1880
prafull-opensignlabs merged 1 commit intostagingfrom
updates-16678047946

Conversation

@nxglabs
Copy link
Collaborator

@nxglabs nxglabs commented Aug 1, 2025

feat: allow preferences menu for all user

feat: allow preferences menu for all user and add smtp setting in it
Copilot AI review requested due to automatic review settings August 1, 2025 14:46
@vercel
Copy link

vercel bot commented Aug 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
open-sign ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2025 2:47pm

@prafull-opensignlabs prafull-opensignlabs changed the title Merge pull request #1084 from nxglabs/signers_completed_main feat: allow preferences menu for all user Aug 1, 2025
Copy link

Copilot AI left a comment

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 allows preferences menu access for all users and adds SMTP settings functionality, expanding the sidebar permissions and improving internationalization.

  • Allow all users to access preferences menu instead of restricting to admin/org admin roles
  • Add SMTP configuration options in preferences with translations for multiple languages
  • Update sidebar logic to simplify user role handling and menu item display

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

File Description
apps/OpenSign/src/pages/Preferences.jsx Updates alert message to use translation and fixes spelling in console logs
apps/OpenSign/src/components/sidebar/Sidebar.jsx Simplifies role-based menu logic to allow all users access to preferences
apps/OpenSign/public/locales/*/translation.json Adds comprehensive SMTP-related translations across multiple languages

}
} catch (err) {
console.log("Err in resetting request mail", err);
console.log("Err in reseting request mail", err);
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

The word 'reseting' should be spelled 'resetting' with double 't'.

Suggested change
console.log("Err in reseting request mail", err);
console.log("Err in resetting request mail", err);

Copilot uses AI. Check for mistakes.
}
} catch (err) {
console.log("Err in resetting completion mail", err);
console.log("Err in reseting completion mail", err);
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

The word 'reseting' should be spelled 'resetting' with double 't'.

Copilot uses AI. Check for mistakes.
"show-more": "Mostrar más",
"browse-or-drag-to-replace-existing-file": "Busque o arrastre y suelte un nuevo archivo para reemplazar el existente",
"optional-details": "Detalles opcionales",
"mail-adapter-subscription-alert": "Bitte upgraden Sie auf den Professional- oder Team-Plan, um ein benutzerdefiniertes SMTP einzurichten.",
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

This translation is in German but should be in Spanish. The correct Spanish translation should be something like 'Por favor, actualice al plan Profesional o de Equipo para configurar un SMTP personalizado.'

Copilot uses AI. Check for mistakes.
"sender-email": "Sender Email",
"username": "Username",
"use-default-mail-adapter": "Are you sure you want to use {{appName}}'s default mail servers to send your signature request emails? We recommend using your own Gmail or SMTP servers for improved inbox deliverability.",
"verification-code-sent-registered-email": "A verification code has been sent to your registered email <1>{{useremail}}</1> confirm your settings. Please enter the code below.",
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

Missing 'to' between '{{useremail}}' and 'confirm'. Should read '...email <1>{{useremail}}</1> to confirm your settings.'

Suggested change
"verification-code-sent-registered-email": "A verification code has been sent to your registered email <1>{{useremail}}</1> confirm your settings. Please enter the code below.",
"verification-code-sent-registered-email": "A verification code has been sent to your registered email <1>{{useremail}}</1> to confirm your settings. Please enter the code below.",

Copilot uses AI. Check for mistakes.
@prafull-opensignlabs prafull-opensignlabs merged commit 123425d into staging Aug 1, 2025
5 checks passed
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.

3 participants