Skip to content

chore: cleanup and refactor - remove unused code and components#1446

Merged
Adammatthiesen merged 2 commits intomainfrom
adam/dashboard-cleanup
Mar 7, 2026
Merged

chore: cleanup and refactor - remove unused code and components#1446
Adammatthiesen merged 2 commits intomainfrom
adam/dashboard-cleanup

Conversation

@Adammatthiesen
Copy link
Member

@Adammatthiesen Adammatthiesen commented Mar 7, 2026

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

  • Removed legacy authorization logic and unused code from LoginChecker.astro and RankCheck.astro, streamlining authentication checks and reducing complexity. [1] [2]
  • Deleted unused hidden divs and data attributes related to API endpoints in several sidebar and profile components, including APITokens.astro, InnerSidebarElement.astro, and user-mgmt/InnerSidebarElement.astro. [1] [2] [3]

Form Handling Simplification

  • Removed action attributes 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

  • Removed unused props and attributes from VersionCheckChangelog.astro and TemplateEditor.astro, simplifying component interfaces and related markup. [1] [2] [3] [4]

Miscellaneous UI Adjustments

  • Eliminated redundant or unused data attributes from modal and sidebar elements, such as action-route and data-searchlist, to further streamline the markup. [1] [2] [3] [4] [5]

Minor Refactoring

  • Adjusted avatar loading logic in SSRUser.astro to remove the unused avatarName parameter, simplifying the method signature. [1] [2]

@coderabbitai ignore

- 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-bot
Copy link

changeset-bot bot commented Mar 7, 2026

🦋 Changeset detected

Latest commit: 48dfa7e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
studiocms Patch

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 7, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: be78018a-b9fc-4af1-8685-14b91dec0cd5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch adam/dashboard-cleanup

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 7, 2026

create-studiocms

npm i https://pkg.pr.new/withstudiocms/studiocms/create-studiocms@1446

effectify

npm i https://pkg.pr.new/withstudiocms/studiocms/effectify@1446

studiocms

npm i https://pkg.pr.new/withstudiocms/studiocms@1446

@studiocms/auth0

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/auth0@1446

@studiocms/blog

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/blog@1446

@studiocms/cloudinary-image-service

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/cloudinary-image-service@1446

@studiocms/devapps

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/devapps@1446

@studiocms/discord

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/discord@1446

@studiocms/github

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/github@1446

@studiocms/google

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/google@1446

@studiocms/html

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/html@1446

@studiocms/markdoc

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/markdoc@1446

@studiocms/markdown-remark

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/markdown-remark@1446

@studiocms/md

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/md@1446

@studiocms/mdx

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/mdx@1446

@studiocms/s3-storage

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/s3-storage@1446

@studiocms/wysiwyg

npm i https://pkg.pr.new/withstudiocms/studiocms/@studiocms/wysiwyg@1446

@withstudiocms/api-spec

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/api-spec@1446

@withstudiocms/auth-kit

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/auth-kit@1446

@withstudiocms/buildkit

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/buildkit@1446

@withstudiocms/cli-kit

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/cli-kit@1446

@withstudiocms/component-registry

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/component-registry@1446

@withstudiocms/config-utils

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/config-utils@1446

@withstudiocms/effect

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/effect@1446

@withstudiocms/internal_helpers

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/internal_helpers@1446

@withstudiocms/kysely

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/kysely@1446

@withstudiocms/sdk

npm i https://pkg.pr.new/withstudiocms/studiocms/@withstudiocms/sdk@1446

commit: 38d1e71

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

Allure Test Report for this PR:

Allure Report | History

@codecov
Copy link

codecov bot commented Mar 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@Adammatthiesen Adammatthiesen marked this pull request as ready for review March 7, 2026 09:48
@Adammatthiesen Adammatthiesen requested a review from a team as a code owner March 7, 2026 09:48
@Adammatthiesen Adammatthiesen merged commit 7d2ebfb into main Mar 7, 2026
30 checks passed
@Adammatthiesen Adammatthiesen deleted the adam/dashboard-cleanup branch March 7, 2026 23:26
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