Skip to content

WIP: SW discipline updates - #1809

Open
jsandoval81 wants to merge 3 commits into
csg-org:mainfrom
InspiringApps:frontend/sw-discipline-updates
Open

WIP: SW discipline updates#1809
jsandoval81 wants to merge 3 commits into
csg-org:mainfrom
InspiringApps:frontend/sw-discipline-updates

Conversation

@jsandoval81

@jsandoval81 jsandoval81 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Requirements List

  • None

Description List

  • Update License & Privilege cards in public search to show discipline status for Social Work
  • Update Public Licensing Detail page to add discipline table for Social Work

Testing List

  • yarn test:unit:all should run without errors or warnings
  • yarn serve should run without errors or warnings
  • yarn build should run without errors or warnings
  • Code review
  • Testing
    • In the public search detail page for Social Work, confirm the License & Privilege cards now have the Discipline status
      • Confirm JCC compacts also still have Discipline status on public privilege cards
      • Confirm Cosmetology also still does NOT have Discipline status on license & privilege cards
    • In the public search detail page for Social Work, confirm there is a new Disciplinary information section (as the last section)
      • If user has no discipline, Disciplinary information section should just say "No discipline"
      • If user has discipline, the section should have a table matching the designs, including the disclaimer text above the table
      • Confirm JCC & Cosmetology public search detail page does NOT have the Disciplinary information section

Closes #1770

Summary by CodeRabbit

  • New Features

    • Added a discipline and adverse-action section to public licensing details, including state, start date, and end date.
    • Added sorting, collapsible viewing, responsive layouts, and an empty-state message for discipline records.
    • Added guidance directing users to the relevant state licensing board for additional information.
  • Bug Fixes

    • Improved discipline information visibility based on search context and application mode.
    • Added English and Spanish translations for the discipline disclaimer.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 628ead2f-1063-4364-8f56-19fc2562de21

📥 Commits

Reviewing files that changed from the base of the PR and between a3ada8d and 69d5a54.

📒 Files selected for processing (4)
  • webroot/src/components/PrivilegeCard/PrivilegeCard.ts
  • webroot/src/locales/en.json
  • webroot/src/locales/es.json
  • webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.vue
🚧 Files skipped from review as they are similar to previous changes (3)
  • webroot/src/locales/en.json
  • webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.vue
  • webroot/src/locales/es.json

📝 Walkthrough

Walkthrough

The PR adds social-work discipline visibility to license and privilege cards. It adds adverse-action sorting, collapse controls, localized disclaimers, and responsive discipline history rendering to public licensing details.

Changes

Social Work Discipline

Layer / File(s) Summary
Discipline visibility in cards
webroot/src/components/LicenseCard/*, webroot/src/components/PrivilegeCard/*
License and privilege cards use shouldShowDiscipline for public search and app-mode conditions.
Discipline data and controls
webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.ts, webroot/src/locales/*.json
The detail component reads social-work mode, sorts adverse actions by start date and state, provides localized disclaimers, and manages collapse state.
Discipline history presentation
webroot/src/pages/PublicLicensingDetail/*
The detail page renders discipline records, empty states, formatted dates, mobile labels, alert styling, and responsive layouts.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Store
  participant PublicLicensingDetail
  participant Localization
  participant DisciplineSection
  Store->>PublicLicensingDetail: Read social-work mode and adverse actions
  PublicLicensingDetail->>PublicLicensingDetail: Sort adverse actions
  PublicLicensingDetail->>Localization: Resolve discipline disclaimer
  PublicLicensingDetail->>DisciplineSection: Provide records and collapse state
  DisciplineSection->>PublicLicensingDetail: Toggle collapse state
Loading

Possibly related PRs

Suggested reviewers: landonshumway-ia, jlkravitz

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR covers cards and discipline history, but it does not implement the required Social Work Restrictions column in the public search list [#1770]. Add the Social Work Restrictions column to the public search list and add or update tests for its behavior.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies Social Work discipline updates, which matches the primary changes in the pull request.
Description check ✅ Passed The description includes the required sections, implementation details, testing steps, and linked issue information.
Out of Scope Changes check ✅ Passed The changes are limited to Social Work discipline display logic, localization, styling, and the public licensing detail experience.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 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.

Inline comments:
In `@webroot/src/components/PrivilegeCard/PrivilegeCard.ts`:
- Around line 229-231: Update the shouldShowDiscipline getter to preserve the
existing privilege-purchase and privilege-administrator visibility gates, adding
only the isAppModeSocialWork condition. Remove the broad !this.isPublicSearch
fallback so non-admin JCC and Cosmetology users retain their current behavior.

In `@webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.vue`:
- Around line 104-129: Update the discipline-list markup around the v-for
records to use native table semantics, replacing the div-based header and rows
with a table, thead, and tbody; render column labels as scoped th elements and
values as td elements while preserving the existing responsive phone labels and
displayed values.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 08f568b9-8b5e-473c-a346-1051092bc956

📥 Commits

Reviewing files that changed from the base of the PR and between 95f69e8 and a3ada8d.

📒 Files selected for processing (9)
  • webroot/src/components/LicenseCard/LicenseCard.ts
  • webroot/src/components/LicenseCard/LicenseCard.vue
  • webroot/src/components/PrivilegeCard/PrivilegeCard.ts
  • webroot/src/components/PrivilegeCard/PrivilegeCard.vue
  • webroot/src/locales/en.json
  • webroot/src/locales/es.json
  • webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.less
  • webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.ts
  • webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.vue

Comment thread webroot/src/components/PrivilegeCard/PrivilegeCard.ts
Comment thread webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.vue Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SW Discipline - History and Public Search FE

1 participant