Skip to content

Conversation

@F-Shahali
Copy link
Collaborator

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Based on the conversation in #57 the refactoring is done.

Any other comments?

@F-Shahali F-Shahali added the fix label Jan 22, 2025
@F-Shahali F-Shahali added this to the mybutton v0.6 milestone Jan 22, 2025
@F-Shahali F-Shahali requested a review from AHReccese January 22, 2025 19:53
@F-Shahali F-Shahali self-assigned this Jan 22, 2025
Copy link
Member

@AHReccese AHReccese left a comment

Choose a reason for hiding this comment

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

Thank you for your effort.

Take a quick look on the TypeScript style guide.
image

Ref: https://ts.dev/style/#identifiers

import { ServiceName } from './constants.data';

export const services_url = (url: string, subject?: string): { [key: string]: string } => {
export const serviceUrls = (url: string, subject?: string): { [key: string]: string } => {
Copy link
Member

@AHReccese AHReccese Jan 22, 2025

Choose a reason for hiding this comment

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

use SERVICE_URL.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since this constant is indeed a function (processes input and the result varies depending on the input), wouldn't it be better to use the lowerCamelCase style?

Copy link
Member

@AHReccese AHReccese Jan 23, 2025

Choose a reason for hiding this comment

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

go with getServiceURL
@F-Shahali

};

export const Services = [
export const services = [
Copy link
Member

Choose a reason for hiding this comment

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

SERVICES

@AHReccese AHReccese added the enhancement New feature or request label Jan 22, 2025
@F-Shahali F-Shahali requested a review from AHReccese January 23, 2025 16:42
@AHReccese
Copy link
Member

I'm fixing the issue with the failed GitHub action (it is up now as a separate pull request) after that I will review this PR.

@AHReccese AHReccese merged commit a043c42 into dev Jan 27, 2025
3 checks passed
@AHReccese AHReccese deleted the refactor/naming branch January 27, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants