feat: add Employee Well-Being template#3981
Conversation
|
@jonas-hoebenreich is attempting to deploy a commit to the formbricks Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes introduce a new "Employee Well-Being" survey template in the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Thank you for following the naming conventions for pull request titles! 🙏 |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- packages/lib/templates.ts (2 hunks)
🧰 Additional context used
🔇 Additional comments (2)
packages/lib/templates.ts (2)
5266-5321: LGTM! Well-structured questions with consistent design.The questions are well-implemented with:
- Consistent rating scales (1-10)
- Clear and descriptive labels
- Good mix of quantitative (ratings) and qualitative (open text) questions
- Proper required/optional settings
5367-5367: LGTM! Proper integration into templates array.The new template is correctly added to the templates array, maintaining consistency with other template integrations.
| name: "Employee Well-Being", | ||
| role: "productManager", | ||
| industries: ["eCommerce"], | ||
| channels: ["link"], | ||
| description: "Assess your employee well-being through work-life balance, workload, and environment.", |
There was a problem hiding this comment.
🛠️ Refactor suggestion
Adjust template configuration to better match its purpose.
The current configuration could be improved to better reflect the template's HR focus and broader applicability:
- The
roleshould be "customerSuccess" or a similar HR-focused role instead of "productManager" - The
industriesarray should include "saas" and "other" as this survey is applicable across all industries - The
channelsarray should include "app" as this survey could be useful in both web and mobile applications
Apply this diff to improve the configuration:
name: "Employee Well-Being",
- role: "productManager",
+ role: "customerSuccess",
- industries: ["eCommerce"],
+ industries: ["saas", "eCommerce", "other"],
- channels: ["link"],
+ channels: ["link", "app"],
description: "Assess your employee well-being through work-life balance, workload, and environment.",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| name: "Employee Well-Being", | |
| role: "productManager", | |
| industries: ["eCommerce"], | |
| channels: ["link"], | |
| description: "Assess your employee well-being through work-life balance, workload, and environment.", | |
| name: "Employee Well-Being", | |
| role: "customerSuccess", | |
| industries: ["saas", "eCommerce", "other"], | |
| channels: ["link", "app"], | |
| description: "Assess your employee well-being through work-life balance, workload, and environment.", |
|
Awarding jonas-hoebenreich: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/jonas-hoebenreich |
What does this PR do?
This PR template adds an "Employee Well-Being" survey template. The questions in this template have been inspired by Peakon Employee Voice
Fixes # (issue)
How should this be tested?
Checklist
Required
pnpm buildconsole.logsgit pull origin mainAppreciated
Summary by CodeRabbit
New Features
Integration