Skip to content

Conversation

@costdev
Copy link
Member

@costdev costdev commented Oct 4, 2025

We've mostly been testing with plugins up until now. As a result, some of our features either don't support themes at all, or don't handle the differences between plugins and themes.

I used a test theme, did:plc:fbiuevja7wpvkgkh4zcswe4r, to step through admin-based theme handling.

This PR:

  • Renames is_fair_plugin() to is_fair_package().
  • Organizes the plugins, themes, and common hooks.
  • Extends "Search by DID" support to themes.
  • Extends AJAX DID support to themes.
  • Extends rename_source_selection support to themes so a theme is also installed under the correct directory name.
  • Adds missing properties (preview_url)
  • Corrects the shape of the author property for themes (yep, plugins and themes have different shapes).
  • Adds the hostname, if available, to the theme's description when preparing themes for JS. (View in modal).
  • Adds support for "Live Preview" immediately after installation.

Reviewers

Blocked by structural changes made in #277. I'd suggest not to review this PR until that's been merged and this PR is rebased on main. However, if you really want to review it, then you're looking at "Rename is_fair_plugin() to is_fair_package()." (070b72b) onwards.

Update: #277 is merged. Go ahead and review!

Testers

You can go ahead and test this PR either locally, or in the Playground link below. Note that modal-based interactions may not work correctly in Playground, which is a Playground issue.

You can test using this DID: did:plc:fbiuevja7wpvkgkh4zcswe4r

@costdev costdev requested a review from afragen October 4, 2025 03:32
@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2025

costdev added 15 commits October 4, 2025 21:26
Signed-off-by: costdev <[email protected]>
@costdev costdev force-pushed the fix_theme_support_for_admin branch from 756f8ac to 5fa83b8 Compare October 4, 2025 20:27
@costdev
Copy link
Member Author

costdev commented Oct 4, 2025

Note: The force-push was just a rebase on main after #277 went in. All commits introduced in this branch are untouched.

@costdev costdev marked this pull request as ready for review October 4, 2025 20:34
@Ipstenu Ipstenu requested a review from afragen October 27, 2025 19:23
@Ipstenu Ipstenu added the enhancement New feature or request label Oct 27, 2025
@Ipstenu Ipstenu added this to the 1.1 milestone Oct 27, 2025
@costdev costdev modified the milestones: 1.1, 1.2 Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants