Skip to content

HMS-9590: refactor create template feature#763

Draft
Starle21 wants to merge 34 commits intocontent-services:mainfrom
Starle21:HMS-9590
Draft

HMS-9590: refactor create template feature#763
Starle21 wants to merge 34 commits intocontent-services:mainfrom
Starle21:HMS-9590

Conversation

@Starle21
Copy link
Contributor

@Starle21 Starle21 commented Nov 24, 2025

Summary

Please open and see detailed notes for the refactor in src/features/notes-refactor.

Testing steps

Manual testing

To be able to compare and run both the old and the new code,
I created a temporary path, which I placed the original code under, at insights/content/templates/original
The new code is under the original path insights/content/templates/add

Playwright tests

Please note that the playwright integration test InstallUploadRepoContent.spec is failing
due to an unknown reason and the issue is being investigatied. However, this does not
block you from reviewing and manually testing this PR.

For testing with playwright locally, you need to run this PR with this backend PR below:
#testwith content-services/content-sources-backend#1358

@xbhouse
Copy link
Contributor

xbhouse commented Nov 24, 2025

@Starle21 Starle21 changed the title HMS-9590: refactor create template HMS-9590: refactor create template feature Dec 3, 2025
@Starle21 Starle21 force-pushed the HMS-9590 branch 15 times, most recently from fd23679 to 38391bc Compare December 10, 2025 09:20
@Starle21 Starle21 marked this pull request as ready for review January 13, 2026 12:45
@Starle21 Starle21 marked this pull request as draft January 13, 2026 13:54
@Starle21 Starle21 force-pushed the HMS-9590 branch 9 times, most recently from c1b55d7 to 75a9b69 Compare February 17, 2026 16:33
@Starle21 Starle21 force-pushed the HMS-9590 branch 2 times, most recently from fd04c64 to cd663c7 Compare February 17, 2026 22:17
remove unnecessary set data structures in AddTemplateContext, replace with simple array,
remove templateRequest object, replace with  atomic useStates for template's constituent part,
make necessary changes in downstream stores and components, make components in each step
depend on their respective step stores
…ed; divide table into subcomponents, divide table controls into subcomponents
Changes in the code of the create template feature prompted
changing the playwright tests. The biggest change involves
importing and snapshotting hardcoded repositories, that
a template cannot be created without. The previous version
of the playwright tests was not properly testing this requirement.
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.

2 participants