chore: cleanup and refactor - remove unused code and components#1446
chore: cleanup and refactor - remove unused code and components#1446Adammatthiesen merged 2 commits intomainfrom
Conversation
- Removed dead code and unused components from various files, including RankCheck and build-partial-schema. - Cleaned up unnecessary attributes and data bindings in several Astro components. - Simplified the SSRUser component by removing the avatarName data attribute. - Updated layouts and pages to remove requiredPermission attributes where not needed. - Enhanced the Generator component to conditionally render meta tags based on the existence of local variables.
🦋 Changeset detectedLatest commit: 48dfa7e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
create-studiocms
effectify
studiocms
@studiocms/auth0
@studiocms/blog
@studiocms/cloudinary-image-service
@studiocms/devapps
@studiocms/discord
@studiocms/github
@studiocms/google
@studiocms/html
@studiocms/markdoc
@studiocms/markdown-remark
@studiocms/md
@studiocms/mdx
@studiocms/s3-storage
@studiocms/wysiwyg
@withstudiocms/api-spec
@withstudiocms/auth-kit
@withstudiocms/buildkit
@withstudiocms/cli-kit
@withstudiocms/component-registry
@withstudiocms/config-utils
@withstudiocms/effect
@withstudiocms/internal_helpers
@withstudiocms/kysely
@withstudiocms/sdk
commit: |
Allure Test Report for this PR:✅ Allure Report | History |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This pull request focuses on code cleanup across the StudioCMS frontend dashboard components, removing dead and unused code, and simplifying form handling and component interfaces. The changes collectively improve maintainability and reduce complexity, especially by eliminating legacy code and unnecessary props or attributes.
Code Cleanup and Dead Code Removal
LoginChecker.astroandRankCheck.astro, streamlining authentication checks and reducing complexity. [1] [2]APITokens.astro,InnerSidebarElement.astro, anduser-mgmt/InnerSidebarElement.astro. [1] [2] [3]Form Handling Simplification
actionattributes from dashboard forms (e.g.,ConfigForm.astro,CreateFolder.astro,CreatePage.astro,EditFolder.astro,EditPage.astro,BasicInfo.astro,Notifications.astro,UpdatePassword.astro), shifting away from direct form submission to endpoint URLs and likely moving toward client-side handling. [1] [2] [3] [4] [5] [6] [7] [8]Component Interface and Prop Cleanup
VersionCheckChangelog.astroandTemplateEditor.astro, simplifying component interfaces and related markup. [1] [2] [3] [4]Miscellaneous UI Adjustments
action-routeanddata-searchlist, to further streamline the markup. [1] [2] [3] [4] [5]Minor Refactoring
SSRUser.astroto remove the unusedavatarNameparameter, simplifying the method signature. [1] [2]@coderabbitai ignore