Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: theming and extensibility improvements #3876

Merged
merged 15 commits into from
Oct 10, 2023
Merged

Conversation

SychO9
Copy link
Member

@SychO9 SychO9 commented Aug 29, 2023

Changes proposed in this pull request:
Part of the roadmap, each commit has a separate PR. Changes are made one at a time for easier review/readability, feel free to review within the related PR (if you wish) even if it's marked as merged.

Necessity

  • Has the problem that is being solved here been clearly explained?
  • If applicable, have various options for solving this problem been considered?
  • For core PRs, does this need to be in core, or could it be in an extension?
  • Are we willing to maintain this for years / potentially forever?

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).
  • Core developer confirmed locally this works as intended.
  • Tests have been added, or are not appropriate here.

SychO9 added 12 commits August 29, 2023 15:06
* feat: create `PageStructure` component
* feat: apply to `DiscussionPage`
* feat: apply to `UserPage`
* feat: apply to `TagsPage`
* fix: adapt subscriptions ext
* chore: cleanup
* chore: rename `DiscussionPage-list` to `DiscussionListPane`
* chore: itemlistify `DiscussionListItem`
* chore: use flex and grid for `DiscussionListItem`
* chore: use flex and grid for `App-header`
* chore: drop search floats
* fix: adapt admin styles
…3874)

* chore: flexbox dropdown menu items
* chore: normalize subscriptions menu (use slit dropdown)
* chore: cleanup
* chore: `TagsPage` to tsx
* chore: `TagsPage` flexbox/grid
* chore: `IndexPage-toolbar` flexbox
* chore: `UserCard` flexbox & itemlists
* fix: `Post` improve spacing logic
* chore: `Post` grid and proper spacing
* fix: avatar editor hover layer layout
* chore: `Button` flex
* chore: normalize fieldsets
* fix: `LinkButton` spacing
* chore: consistent form semantics
* fix: post spacing goes off in other pages
* fix: regression
* fix: js error on null item list
* feat: extensible global notices
* chore: use CSS variables where still not using
* chore: cleanup suspension modal
* chore: cleanup post flag
* fix: badge vertical align
* chore: use CSS variables for custom coloring
* chore: `icon` helper to `Icon` component
* chore: `avatar` helper to `Avatar` component
* fix: chunk loading fails on admin frontend
* chore: format
* chore: convert `UploadImageButton` to tsx
* feat: reusable `UploadImageButton` component
* feat: add `image-upload` setting type
@SychO9 SychO9 changed the title Dev theming improvements feat: theming and extensibility improvements Sep 15, 2023
@SychO9 SychO9 added this to the 2.0 milestone Sep 15, 2023
@SychO9 SychO9 added type/extensibility breaking-changes javascript Pull requests that update Javascript code labels Sep 15, 2023
@SychO9 SychO9 requested a review from imorland September 15, 2023 10:09
@SychO9 SychO9 marked this pull request as ready for review September 15, 2023 10:09
@SychO9 SychO9 requested a review from a team as a code owner September 15, 2023 10:09
@SychO9
Copy link
Member Author

SychO9 commented Sep 15, 2023

flarum/docs#462

Copy link
Member

@imorland imorland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this very much, this will certainly help with extensibility going forward 👏

@SychO9 SychO9 merged commit 5ab5257 into 2.x Oct 10, 2023
22 checks passed
@SychO9 SychO9 deleted the dev-theming-improvements branch October 10, 2023 20:36
@YUCLing
Copy link
Contributor

YUCLing commented Nov 18, 2024

This PR seems to break the affixed sidebar margin to the page top.

top: () => $sidebar.offset().top - $header.outerHeight(true) - parseInt($sidebar.css('margin-top'), 10),

The affix sidebar calculates the offset top from the ul element's margin-top. However, this PR's changes removed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants