feat(report-issue): gate toolbar menu item behind FEATURE_FLAG_REPORT_ISSUE_ENABLED#35759
feat(report-issue): gate toolbar menu item behind FEATURE_FLAG_REPORT_ISSUE_ENABLED#35759fmontes wants to merge 3 commits into
Conversation
|
Claude finished @fmontes's task in 1m 57s —— View job ReviewMostly clean follow-up. A few things worth a second look — none blocking. 1)
|
1768b79 to
e6781c4
Compare
There was a problem hiding this comment.
Pull request overview
Adds a new opt-in feature flag to control whether the “Report an Issue” menu item appears in the toolbar user menu, wiring it through backend configuration exposure and frontend consumption.
Changes:
- Introduces
FEATURE_FLAG_REPORT_ISSUE_ENABLED(defaultfalse) and exposes it via the configuration whitelist. - Exposes the new flag in the frontend
FeaturedFlagsenum and gates the toolbar user-menu entry inDotToolbarUserComponent. - Updates the component test setup to provide
DotPropertiesServicefor the new flag lookup.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| dotCMS/src/main/resources/dotmarketing-config.properties | Adds the new feature flag with a default false value. |
| dotCMS/src/main/java/com/dotcms/rest/api/v1/system/ConfigurationResource.java | Whitelists the new feature flag for /api/v1/configuration/config access. |
| dotCMS/src/main/java/com/dotcms/featureflag/FeatureFlagName.java | Declares the new backend feature flag constant. |
| core-web/libs/dotcms-models/src/lib/shared-models.ts | Adds the new flag to the frontend FeaturedFlags enum. |
| core-web/apps/dotcms-ui/src/app/view/components/dot-toolbar/components/dot-toolbar-user/dot-toolbar-user.component.ts | Fetches the flag and removes/binds the report-issue menu item accordingly. |
| core-web/apps/dotcms-ui/src/app/view/components/dot-toolbar/components/dot-toolbar-user/dot-toolbar-user.component.spec.ts | Mocks DotPropertiesService.getFeatureFlagWithDefault for component tests. |
e6781c4 to
ad7be5c
Compare
|
Thanks for the review @claude — addressed in the latest force-push: 1. 2. Disabled-path test coverage ✅ Fixed 3. 4. Extract menu-item id constant ⏭️ Skipped |
|
Claude finished @fmontes's task in 1m 40s —— View job Verifying the latest changes
VerificationFix #1 — One minor thing worth surfacing: you went with Fix #2 — Disabled-path test ✅ Confirmed at Skipped #3/#4 — YAGNI calls and scope hygiene both look fine to me. One copilot point that didn't get a responseThe copilot reviewer's third comment about NetThe two fixes you committed look correct and the test coverage matches what was asked for. From my side this is good to go once the lint/test job comes back green. |
ad7be5c to
276fc76
Compare
…_ISSUE_ENABLED (#35758) Adds an opt-in feature flag that hides the Report Issue user-menu entry by default. The check lives in the toolbar component (not the store) so it can be cleanly removed once the feature ships. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
276fc76 to
9f45d62
Compare
f0eb82b to
a590b7e
Compare
a590b7e to
74c4e9f
Compare
…r handler - Removed DotHttpErrorManagerService call so all submission errors show inline in the dialog instead of triggering a global error modal - HTML responses (e.g. dotCMS 404 page returned as string body) are now detected and replaced with a user-friendly message instead of dumping raw HTML into the error slot - Added report-an-issue.error.unavailable translation key Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
FEATURE_FLAG_REPORT_ISSUE_ENABLED(default false) to gate the "Report an Issue" entry in the toolbar user menu added by Add report issue workflow to backend and toolbar UI #35717.ConfigurationResourceand exposes it in the frontendFeaturedFlagsenum soDotPropertiesServicecan read it.DotToolbarUserComponent(not the store) so it can be cleanly removed once the feature ships — see inline comment.Closes #35758. Follow-up to #35717.
Test plan
FEATURE_FLAG_REPORT_ISSUE_ENABLEDunset orfalse: "Report an Issue" item is not visible in the user menu.FEATURE_FLAG_REPORT_ISSUE_ENABLED=true: item appears and opens the report issue dialog as before.yarn nx test dotcms-ui --testPathPattern=dot-toolbar-user.component.specpasses.🤖 Generated with Claude Code