Skip to content

More PatchComponent Changes#5139

Closed
Gykes wants to merge 2 commits intostashapp:developfrom
Gykes:Gykes-TasksPatchComponents
Closed

More PatchComponent Changes#5139
Gykes wants to merge 2 commits intostashapp:developfrom
Gykes:Gykes-TasksPatchComponents

Conversation

@Gykes
Copy link
Collaborator

@Gykes Gykes commented Aug 19, 2024

Modified all .tsx within /settings/tasks

Gykes added 2 commits August 18, 2024 18:36
Modified all .tsx within /settings/tasks
Rest of the PatchComponent changes.
Copy link
Collaborator

@WithoutPants WithoutPants left a comment

Choose a reason for hiding this comment

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

It might be worth looking over the non-exported components to see their value in being patchable/usable in plugins. It may not make sense to do them all.

}

const LogElement: React.FC<ILogElementProps> = PatchComponent(
"LogElement",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where a component is not exported, it usually indicates that it's part of a larger component. In these cases, it's ideal to name these as a sub-component of the parent component. In this case, since this is a child component of SettingsLogsPanel, I think this should be SettingsLogsPanel.LogElement. This helps reduce potential duplicate component labels.

count?: number;
}>
> = ({ entityType, count, children }) => {
> = PatchComponent("ScraperTable", ({ entityType, count, children }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

As above, I think this should be SettingsScrapingPanel.ScraperTable. I won't mark all of these, but please do a pass and correct the non-exported ones.

Copy link
Collaborator

@DogmaDragon DogmaDragon left a comment

Choose a reason for hiding this comment

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

@Gykes Gykes closed this Nov 29, 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.

3 participants