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

Move file for DatasetPropertyNew component #1082

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthew-white
Copy link
Member

@matthew-white matthew-white commented Dec 7, 2024

I was thinking about the DatasetPropertyNew component while looking at #1075 and noticed that the component file wasn't where I expected it to be. Based on its name, I'd expect its filename to be dataset/property/new.vue, but instead it's dataset/overview/new-property.vue. We're planning to remove the entity list overview page, so I think it's good timing to move this component out of the overview/ directory.

What has been done to verify that this works as intended?

Tests continue to pass.

Why is this the best possible solution? Were any other approaches considered?

Another way to make the component name and the filename consistent would have been to change the component name to match the filename: DatasetOverviewNewProperty. However, I prefer the current component name of DatasetPropertyNew: *New at the end matches other components, and we're soon going to be removing the DatasetOverview component.

Before submitting this PR, please make sure you have:

  • run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

@matthew-white matthew-white requested a review from ktuite December 7, 2024 14:05
@@ -93,6 +93,7 @@ const submit = () => {

<i18n lang="json5">
{
// @transifexKey component.DatasetOverviewNewProperty
Copy link
Member Author

Choose a reason for hiding this comment

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

Mostly filenames don't really matter, but the one place where they do have an effect is in Transifex. For Transifex, the string key is based on the filename, under the assumption that the filename will match the component name. (I couldn't think of a better way for our Transifex scripts to figure out the component name.) We don't want these messages to be retranslated, which is why I'm specifying @transifexKey here.

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