Skip to content

Frontend/public search detail view#679

Merged
isabeleliassen merged 18 commits intocsg-org:developmentfrom
InspiringApps:frontend/public-search-detail-view
Apr 1, 2025
Merged

Frontend/public search detail view#679
isabeleliassen merged 18 commits intocsg-org:developmentfrom
InspiringApps:frontend/public-search-detail-view

Conversation

@jsandoval81
Copy link
Copy Markdown
Collaborator

@jsandoval81 jsandoval81 commented Mar 27, 2025

Requirements List

  • None

Description List

  • Made functional the PublicLicensingDetail page
  • Updated the get-one store licensee action with a public-fetch param (same as the previous addition to the get-all action)
  • Minor update to PageMainNav for Vue's active sub-route handling
  • Minor update to the list-row layout on mobile, to match the updated designs

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
  • UI testing
    • Public dashboard & list search should continue to work as expected
    • Public search list rows should now navigate to their respective detail pages
    • The detail pages should only have the header, recent privileges, & past privileges

Closes #565

Summary by CodeRabbit

  • New Features

    • Enhanced navigation with dynamic active link highlighting, improving UI feedback.
    • Upgraded the licensing detail page with an interactive layout that includes loading indicators, breadcrumb navigation, tags, and collapsible sections for privileges.
    • Improved search form defaults for a smoother user experience.
  • Style

    • Revamped page layout with responsive design adjustments across devices.
    • Refined list presentation for a more balanced and cleaner interface.

@jsandoval81 jsandoval81 requested a review from ChiefStief March 27, 2025 15:10
@jsandoval81
Copy link
Copy Markdown
Collaborator Author

@jlkravitz This is ready for your review.

Copy link
Copy Markdown
Collaborator

@jlkravitz jlkravitz left a comment

Choose a reason for hiding this comment

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

Couple small questions, but generally looks great!

Comment thread webroot/src/store/license/license.actions.ts Outdated
Comment thread webroot/src/store/license/license.spec.ts
Comment thread webroot/src/components/Licensee/LicenseeSearch/LicenseeSearch.ts
@jsandoval81 jsandoval81 requested a review from jlkravitz April 1, 2025 16:56
Copy link
Copy Markdown
Collaborator

@jlkravitz jlkravitz left a comment

Choose a reason for hiding this comment

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

@isabeleliassen This is good to go.

@isabeleliassen isabeleliassen merged commit 4b80dfa into csg-org:development Apr 1, 2025
1 check passed
@jlkravitz
Copy link
Copy Markdown
Collaborator

@CodeRabbit full review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 3, 2025

✅ Actions performed

Full review triggered.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 3, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update refines several frontend components. LicenseeSearch now uses an additional fallback value in its compact field initialization. PageContainer includes an extra public route for layout adjustments. PageMainNav gains a new method to assess active navigation links with corresponding dynamic class binding. The PublicLicensingDetail component and template are restructured to load licensee data via public API calls, manage privileges with UI toggles, and ensure responsive styling. Additionally, the license store now supports a public lookup API, and a CSS update improves list layouts.

Changes

File(s) Change Summary
webroot/src/components/Licensee/.../LicenseeSearch.ts Modified compact field initialization in initFormInputs to use this.compactType as a fallback.
webroot/src/components/Page/PageContainer/PageContainer.ts Added 'LicenseeDetailPublic' to the nonPadTopRouteNames array to adjust top padding logic.
webroot/src/components/Page/PageMainNav/PageMainNav.ts and .../PageMainNav.vue Introduced isActiveMatch method and applied dynamic router-link-active class binding based on link active state.
webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.less Added new CSS class .licensee-detail-container with responsive nested styles.
webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.ts and .../PublicLicensingDetail.vue Restructured component: added new components, computed properties, data properties, lifecycle hook, and UI toggling for privileges; includes redirection on missing licensee data.
webroot/src/store/license/license.actions.ts and .../license.spec.ts Updated getLicenseeRequest to include an isPublic parameter and added a test case for public API routing.
webroot/src/styles.common/_lists.less Set .cell-title width to 30% within .cell to adjust layout.

Sequence Diagram(s)

sequenceDiagram
    participant User as User
    participant PLD as PublicLicensingDetail
    participant Fetch as fetchLicenseeData
    participant Store as License Store Action
    participant API as API Layer
    participant Router as Router

    User->>PLD: Open Public Licensing Detail Page
    PLD->>Fetch: Trigger fetchLicenseeData (mounted)
    Fetch->>Store: Call getLicenseeRequest({ isPublic: true, ... })
    Store->>API: dataApi.getLicenseePublic(...)
    API-->>Store: Return licensee data
    Store-->>Fetch: Success Response
    Fetch-->>PLD: Update component state
    alt Data missing
      PLD->>Router: Redirect to 404 page
    end
Loading
sequenceDiagram
    participant MainNav as PageMainNav
    participant isActive as isActiveMatch()
    participant RouterLink as Router-Link

    MainNav->>isActive: Check current route vs. target
    isActive-->>MainNav: Return active state (boolean)
    MainNav->>MainNav: Update mainLinks with isActive property
    RouterLink->>RouterLink: Bind 'router-link-active' class based on isActive
Loading

Assessment against linked issues

Objective Addressed Explanation
Enhance public licensing detail view with dynamic components, responsive layout, and API integration (#565)
Support public licensee lookup using new API endpoint for public requests (#565)

Poem

I'm a hopping rabbit, joyful and spry,
Code paths unfurl like carrots in the sky.
From toggling views to API hops so neat,
My ears dance with every code beat.
Here's to fresh features—hop on and feel the beat! 🐰✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 11ebbc9 and e374185.

📒 Files selected for processing (10)
  • webroot/src/components/Licensee/LicenseeSearch/LicenseeSearch.ts (1 hunks)
  • webroot/src/components/Page/PageContainer/PageContainer.ts (1 hunks)
  • webroot/src/components/Page/PageMainNav/PageMainNav.ts (2 hunks)
  • webroot/src/components/Page/PageMainNav/PageMainNav.vue (1 hunks)
  • webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.less (1 hunks)
  • webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.ts (1 hunks)
  • webroot/src/pages/PublicLicensingDetail/PublicLicensingDetail.vue (1 hunks)
  • webroot/src/store/license/license.actions.ts (1 hunks)
  • webroot/src/store/license/license.spec.ts (1 hunks)
  • webroot/src/styles.common/_lists.less (1 hunks)
✨ Finishing Touches
  • 🔥 Error while generating docstrings. (🔄 Check again to generate docstrings again)

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 3, 2025

Caution

No docstrings were generated.

@coderabbitai coderabbitai Bot mentioned this pull request Aug 6, 2025
@jsandoval81 jsandoval81 deleted the frontend/public-search-detail-view branch September 15, 2025 15:53
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.

public lookup frontend detail view

4 participants