Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/expand email notes by default #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

D3V41
Copy link
Collaborator

@D3V41 D3V41 commented Nov 13, 2024

Summary by Sourcery

Expand email notes by default in the case management view and enhance the user interface by adding cursor style to email and CPP notes to indicate interactivity.

New Features:

  • Expand email notes by default in the case management view.

Enhancements:

  • Add cursor style to email and CPP notes to indicate interactivity.

Copy link

sourcery-ai bot commented Nov 13, 2024

Reviewer's Guide by Sourcery

This PR modifies the case management view to expand email notes by default and improves UI interactivity indicators. The implementation changes the default state of email notes and adds visual cursor feedback for clickable notes. The changes primarily affect the JSP template and associated JavaScript code.

Class Diagram for Updated Note Display Logic

classDiagram
    class CasemgmtNoteLock {
        - session: HttpSession
        + getAttribute(name: String): Object
    }
    class Note {
        + isEmailNote(): Boolean
        + isCpp(): Boolean
        + isDocument(): Boolean
        + isEformData(): Boolean
        + isEncounterForm(): Boolean
        + isInvoice(): Boolean
        + isSigned(): Boolean
    }
    CasemgmtNoteLock --> Note
    Note : +String noteDisplay
    Note : +String cursorStyle
    Note : +String noteClassAttribute
    Note : +String noteIdAttribute
    Note : +String globalNoteId
    Note : +String noteStr
    Note : +Boolean fulltxt
    Note : +String bgColour
    Note : +String expandableReadonlyNoteText
Loading

File-Level Changes

Change Details Files
Modified the default expansion state for email notes
  • Changed the default state from FALSE to TRUE for email notes in the fullTxtFormat list
  • Added support for minimizing expanded email notes with a triangle up icon
  • Added conditional rendering of minimize display button for expanded email notes
src/main/webapp/casemgmt/ChartNotesAjax.jsp
Enhanced visual feedback for interactive notes
  • Added pointer cursor style for email and CPP notes
  • Added expandableReadonlyNoteText class name for email and CPP note text containers
src/main/webapp/casemgmt/ChartNotesAjax.jsp
Optimized the note view toggle functionality
  • Consolidated multiple jQuery selectors into a single selector for better performance
  • Added support for expandable readonly notes in the toggle function
src/main/webapp/js/newCaseManagementView.js.jsp

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @D3V41 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@D3V41
Copy link
Collaborator Author

D3V41 commented Nov 13, 2024

@sourcery-ai review

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @D3V41 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment on lines 1691 to 1693
jQuery('[name="expandViewTrigger"]').each(function(){
$(this).click();
});
Copy link

Choose a reason for hiding this comment

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

suggestion (performance): Combine jQuery selectors for better performance

Consider using a single jQuery selector with comma separation: '[name="expandViewTrigger"], [name="expandableReadonlyNoteText"]'

	jQuery('[name="expandViewTrigger"], [name="expandableReadonlyNoteText"]').each(function(){
		$(this).click();
	});

@D3V41
Copy link
Collaborator Author

D3V41 commented Nov 13, 2024

@sourcery-ai review

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @D3V41 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment on lines 1691 to 1693
jQuery('[name="expandViewTrigger"]').each(function(){
$(this).click();
});
Copy link

Choose a reason for hiding this comment

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

suggestion (performance): Combine jQuery selectors for better performance

Consider using a single jQuery selector with comma separation: '[name="expandViewTrigger"], [name="expandableReadonlyNoteText"]'

	jQuery('[name="expandViewTrigger"], [name="expandableReadonlyNoteText"]').each(function(){
		$(this).click();
	});

@D3V41
Copy link
Collaborator Author

D3V41 commented Nov 13, 2024

@sourcery-ai review

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @D3V41 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@D3V41
Copy link
Collaborator Author

D3V41 commented Nov 13, 2024

@sourcery-ai review

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @D3V41 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

lacarmen pushed a commit that referenced this pull request Jan 15, 2025
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.

1 participant