Frontend/social work npdb categories - #1807
Conversation
📝 WalkthroughWalkthroughThe PR centralizes app-mode-specific discipline and NPDB configuration for license and privilege encumbrances. It adds Social Work NPDB support and translations, updates the dashboard help link, and increases the webpack entrypoint warning threshold. ChangesEncumbrance configuration and integration
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Im getting the same auth mocking issue here I think: |
ChiefStief
left a comment
There was a problem hiding this comment.
Looks good!
Just have the two comments.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
webroot/src/components/LicenseCard/LicenseCard.ts (1)
291-301: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winBoth cards can produce two blank discipline options. Each
encumberDisciplineOptionsgetter retains options whosevalueis''in the filter and then prepends a blank option unconditionally. Iflicensing.disciplineTypescontains an empty-key entry, the select shows two blank options and theencumberDisciplineOptions[1]lookup inmockPopulatereturns a blank value.
webroot/src/components/LicenseCard/LicenseCard.ts#L291-L301: remove|| option.value === ''from the filter at line 295, or make theunshiftat line 298 conditional on the absence of an existing blank option.webroot/src/components/PrivilegeCard/PrivilegeCard.ts#L242-L252: apply the same change at line 246 and line 249.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@webroot/src/components/LicenseCard/LicenseCard.ts` around lines 291 - 301, Both encumberDisciplineOptions getters can expose duplicate blank choices. In webroot/src/components/LicenseCard/LicenseCard.ts lines 291-301 and webroot/src/components/PrivilegeCard/PrivilegeCard.ts lines 242-252, update the option filtering in each getter to exclude empty values before unconditionally prepending the single blank selection, so encumberDisciplineOptions[1] resolves to a real discipline option.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@webroot/src/components/LicenseCard/LicenseCard.ts`:
- Around line 291-301: Both encumberDisciplineOptions getters can expose
duplicate blank choices. In webroot/src/components/LicenseCard/LicenseCard.ts
lines 291-301 and webroot/src/components/PrivilegeCard/PrivilegeCard.ts lines
242-252, update the option filtering in each getter to exclude empty values
before unconditionally prepending the single blank selection, so
encumberDisciplineOptions[1] resolves to a real discipline option.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 17212721-aaba-4544-b583-6ca60529356d
📒 Files selected for processing (8)
webroot/src/app.config.tswebroot/src/components/LicenseCard/LicenseCard.spec.tswebroot/src/components/LicenseCard/LicenseCard.tswebroot/src/components/PrivilegeCard/PrivilegeCard.spec.tswebroot/src/components/PrivilegeCard/PrivilegeCard.tswebroot/src/locales/en.jsonwebroot/src/locales/es.jsonwebroot/vue.config.js
🚧 Files skipped from review as they are similar to previous changes (2)
- webroot/src/locales/en.json
- webroot/src/locales/es.json
|
@jlkravitz This is ready for your review. |
jlkravitz
left a comment
There was a problem hiding this comment.
@isabeleliassen This is good to merge!
Requirements List
Description List
Testing List
yarn test:unit:allshould run without errors or warningsyarn serveshould run without errors or warningsyarn buildshould run without errors or warningshttps://compactconnect.org/?page_id=399Closes #1759
Closes #1804
Summary by CodeRabbit
New Features
Encumbrance Options
Localization
Updates