Skip to content

fix: text changes in business central configuration#1089

Merged
JustARatherRidiculouslyLongUsername merged 3 commits intobusiness-central-betafrom
text-changes
Dec 3, 2024
Merged

fix: text changes in business central configuration#1089
JustARatherRidiculouslyLongUsername merged 3 commits intobusiness-central-betafrom
text-changes

Conversation

@JustARatherRidiculouslyLongUsername
Copy link
Contributor

@JustARatherRidiculouslyLongUsername JustARatherRidiculouslyLongUsername commented Nov 27, 2024

Clickup

https://app.clickup.com/t/86cx5t0y4

Summary by CodeRabbit

  • New Features

    • Updated terminology in the export settings for employee mapping and expense states to enhance clarity.
    • Improved descriptions in the import settings for Chart of Accounts and vendor imports, providing users with better guidance.
  • Bug Fixes

    • Adjusted conditional rendering in the configuration select field to improve user experience regarding Spend Date warnings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 27, 2024

Walkthrough

The changes in this pull request involve updates to the HTML templates of three components: business-central-export-settings, business-central-import-settings, and configuration-select-field. These modifications primarily focus on updating labels and sub-labels to improve clarity and specificity regarding employee representation, export states, and import settings. The updates ensure that the terminology used aligns with the intended functionality while maintaining the existing structure and logic of the components.

Changes

File Path Change Summary
src/app/integrations/business-central/business-central-shared/business-central-export-settings/business-central-export-settings.component.html Updated labels and sub-labels for employee mapping and export states, changing terminology from "Employees" to "Vendors" and "Paid" to "Closed".
src/app/integrations/business-central/business-central-shared/business-central-import-settings/business-central-import-settings.component.html Revised subLabel properties for toggle fields to provide more detailed descriptions about importing accounts and vendors.
src/app/shared/components/configuration/configuration-select-field/configuration-select-field.component.html Added a new condition for rendering a warning message based on the value of cccExportGroup, without altering existing logic.

Possibly related PRs

Suggested labels

size/XS

Suggested reviewers

  • ashwin1111

🐰 "In the fields where changes grow,
Labels shift, and clarity flows.
Vendors now, not just employees,
With settings clear as buzzing bees.
In coding realms, we hop and play,
Making sense of work each day!" 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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 resolve resolve all the CodeRabbit review comments.
  • @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.

@github-actions github-actions bot added the size/XS Extra Small PR label Nov 27, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
src/app/shared/components/configuration/configuration-select-field/configuration-select-field.component.html (1)

102-104: LGTM! Consider enhancing the warning message.

The warning message about Spend Date usage is well-placed and the conditional logic is correct. However, the message could be more actionable.

Consider enhancing the warning message to guide users toward the preferred approach:

-                        <span>Using the Spend Date may lead to multiple single line<br>item entries.</span>
+                        <span>Using the Spend Date may lead to multiple single line<br>item entries. Consider using Report Date for consolidated entries.</span>
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 15005a7 and baeefc0.

📒 Files selected for processing (3)
  • src/app/integrations/business-central/business-central-shared/business-central-export-settings/business-central-export-settings.component.html (3 hunks)
  • src/app/integrations/business-central/business-central-shared/business-central-import-settings/business-central-import-settings.component.html (2 hunks)
  • src/app/shared/components/configuration/configuration-select-field/configuration-select-field.component.html (1 hunks)
🔇 Additional comments (5)
src/app/integrations/business-central/business-central-shared/business-central-import-settings/business-central-import-settings.component.html (2)

29-29: LGTM! Enhanced clarity in Vendor import description.

The revised text maintains consistent structure with the previous change and clearly explains the purpose of vendor imports in the context of merchant field usage.

Let's verify consistent vendor/merchant terminology:

✅ Verification successful

Terminology consistency verified across Business Central integration

The verification shows consistent usage of vendor/merchant terminology across the Business Central integration:

  • Configuration property uses import_vendors_as_merchants
  • Form control uses importVendorAsMerchant
  • UI labels consistently explain "Import Vendor as Merchant" concept
  • The tooltip text (subject of review) aligns with this established pattern
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for consistent vendor/merchant terminology
# Look for vendor/merchant references in related components

rg -g '*.{html,ts}' -i "vendor.*merchant" src/app/integrations/business-central/

Length of output: 1023


19-19: LGTM! Improved clarity in Chart of Accounts import description.

The updated text provides clearer guidance to users about where imported accounts will appear and how they can be used, which aligns well with the PR's objective of improving text clarity.

Let's verify consistent terminology usage across related components:

✅ Verification successful

Let me gather more information to verify the terminology consistency by checking for any variations of category-related terms in the business central components.


Terminology is consistent across Business Central components

The search results confirm that:

  • The term "Category" is consistently used across the Business Central integration
  • The UI pattern of using dropdowns for selection fields is consistently implemented
  • The terminology aligns with the mapping and dashboard components where "Category" is used as a field reference
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for consistent terminology usage across components
# Look for 'Category' field references in related components

rg -g '*.{html,ts}' -i "category.*field" src/app/integrations/business-central/

Length of output: 441


Script:

#!/bin/bash
# Search for variations of category terms in business central components
rg -g '*.{html,ts}' -i "categor" src/app/integrations/business-central/

# Also check for dropdown references to ensure UI consistency
rg -g '*.{html,ts}' -i "dropdown" src/app/integrations/business-central/

Length of output: 5521

src/app/integrations/business-central/business-central-shared/business-central-export-settings/business-central-export-settings.component.html (3)

76-76: LGTM! Clear mapping terminology.

The label now explicitly mentions "Vendors" as the destination entity in Dynamics 365 Business Central, which improves clarity about the mapping relationship.


255-255: LGTM! Improved state descriptions for corporate card expenses.

The sub-label now accurately reflects the available states:

  • "Approved" instead of "Payment processing"
  • "Closed" instead of "Paid"
    This provides clearer guidance about when expenses can be exported.

125-125: Verify state terminology consistency across the application.

The change from "Paid" to "Closed" for reimbursable expenses improves accuracy, but we should ensure this terminology is consistent across the application.

✅ Verification successful

Based on the search results, I can see a consistent pattern across different integrations (Business Central, QBO, Xero, NetSuite, etc.) where the terminology has been updated from "Paid" to "Closed" when the is_simplify_report_closure_enabled flag is enabled. This change is consistently applied across the codebase with proper conditionals.

For example:

  • In QBD: label: this.is_simplify_report_closure_enabled ? 'Closed' : 'Paid'
  • In Intacct: label: this.is_simplify_report_closure_enabled ? 'Closed' : 'Paid'
  • In Business Central, QBO, and other integrations: The terminology "Closed" is used in the export settings when referring to settled payments

The subLabels across different components also consistently use this terminology:

  • "when the payment has been settled (Closed)"
  • "awaiting closure after approval (Processing) or when the payment has been settled (Closed)"

The terminology change appears to be consistently implemented across the application.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for consistent usage of expense states across the codebase
# Look for any inconsistencies in state terminology

# Search for variations of expense states
echo "Checking for expense state terminology consistency..."
rg -i "paid|closed|payment processing|approved" --type html --type ts

Length of output: 35032

@github-actions
Copy link

Unit Test Coverage % values
Statements 34.85% ( 4251 / 12195 )
Branches 28.86% ( 1235 / 4279 )
Functions 27.5% ( 940 / 3418 )
Lines 35% ( 4181 / 11945 )

@JustARatherRidiculouslyLongUsername JustARatherRidiculouslyLongUsername merged commit 5d9c51b into business-central-beta Dec 3, 2024
JustARatherRidiculouslyLongUsername added a commit that referenced this pull request Dec 3, 2024
* fix: remove export link column from export logs

* fix: show a 'Beta' badge for business central in landing (#1090)

* fix: show a 'Beta' badge for business central in landing

* fix: add orgs to hide the 'Beta' badge from

* fix: text changes in business central configuration (#1089)

* fix: export settings content changes

* fix: hide spend date help message for group by expenses

* fix: update import settings sublabels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra Small PR

Development

Successfully merging this pull request may close these issues.

3 participants