Repository navigation
feat(tags): implement TagNormalizer for keyword validation and update… - #1607
Merged
Merged
Conversation
… tag handling across drafts, projects, and studies to block user from entering non-ASCII characters.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved separator handling, validation error display, and regression-coverage issues remain.
1 open issue
What changed in this PR
Adds centralized tag normalization and non-ASCII validation across draft, project, and study workflows.
Changes:
- Introduces shared tag normalization and validation.
- Applies it to draft, project, and study updates.
- Updates keyword inputs for pipe-separated values.
- Adds project-level regression tests.
| File | Summary |
|---|---|
tests/Feature/Project/UpdateProjectTest.php |
Tests project tag splitting and validation. |
resources/js/Shared/Submission.vue |
Adds pipe-separated tag input support. |
resources/js/Pages/Upload.vue |
Adds pipe-separated tag input support. |
resources/js/Pages/Study/Partials/Details.vue |
Updates study tag input; tags validation error rendering is needed. |
resources/js/Pages/Publish.vue |
Adds pipe-separated tag input support. |
resources/js/Pages/Project/Partials/Details.vue |
Updates project tag input; tags validation error rendering is needed. |
app/Support/Tags/TagNormalizer.php |
Adds shared normalization and validation; comma and semicolon separators need support. |
app/Actions/Study/UpdateStudy.php |
Applies normalization to study updates; add focused regression coverage. |
app/Actions/Project/UpdateProject.php |
Applies normalization to project updates. |
app/Actions/Draft/ProcessDraft.php |
Applies normalization to drafts; add focused regression coverage. |
Review effort: Lite
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## development #1607 +/- ##
=================================================
+ Coverage 83.66% 83.67% +0.01%
- Complexity 5700 5709 +9
=================================================
Files 361 362 +1
Lines 20230 20251 +21
=================================================
+ Hits 16926 16946 +20
- Misses 3304 3305 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

… tag handling across drafts, projects, and studies to block user from entering non-ASCII characters.
Add a server-side guard that returns a validation error (422, key tags) instead of a 500: