Skip to content

Conversation

@SychO9
Copy link
Member

@SychO9 SychO9 commented Aug 16, 2023

Closes #3866

Changes proposed in this pull request:

  • Introduces a new forum PageStructure component that can be used from within a page component.
  • Changes all our current forum pages to use said component.
  • The new component will allow easier customization of the page structure (as long as extensions also use this component).

Some before and afters

Before After
carbon (4) carbon (5)
carbon (6) carbon (7)

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.

flarum/docs#462

@SychO9 SychO9 requested a review from a team as a code owner August 16, 2023 15:15
@SychO9 SychO9 requested a review from imorland August 16, 2023 15:16
@SychO9 SychO9 added the javascript Pull requests that update Javascript code label Aug 16, 2023
@SychO9 SychO9 added this to the 2.0 milestone Aug 16, 2023
@SychO9 SychO9 self-assigned this Aug 16, 2023
@SychO9 SychO9 changed the base branch from 2.x to dev-theming-improvements August 29, 2023 14:03
@SychO9
Copy link
Member Author

SychO9 commented Aug 29, 2023

I'll merge all of these theming-related PRs into a separae dev-theming-improvements branch so that they can still be reviewed before merging this new branch into 2.x (I need to continue building on top of all the work done so far).

@SychO9 SychO9 merged commit f70ed85 into dev-theming-improvements Aug 29, 2023
@SychO9 SychO9 deleted the sm/page-structure-theming branch August 29, 2023 14:07
SychO9 added a commit that referenced this pull request Oct 10, 2023
* feat: make page structure customizable across different pages (#3867)

* feat: create `PageStructure` component
* feat: apply to `DiscussionPage`
* feat: apply to `UserPage`
* feat: apply to `TagsPage`
* fix: adapt subscriptions ext
* chore: cleanup

* chore: use grid & flexbox for the discussion list item (#3868)

* chore: rename `DiscussionPage-list` to `DiscussionListPane`
* chore: itemlistify `DiscussionListItem`
* chore: use flex and grid for `DiscussionListItem`

* chore: use flexbox for `App-header` (#3869)

* chore: use flex and grid for `App-header`
* chore: drop search floats
* fix: adapt admin styles

* chore: use flexbox in dropdowns and SplitDropdown for subscriptions (#3874)

* chore: flexbox dropdown menu items
* chore: normalize subscriptions menu (use slit dropdown)
* chore: cleanup

* chore: misc flexbox/grid changes (#3875)

* 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 form semantics (#3877)

* chore: normalize fieldsets
* fix: `LinkButton` spacing
* chore: consistent form semantics

* fix: styling regressions (#3878)

* fix: post spacing goes off in other pages
* fix: regression

* feat: extract reusable components from `NotificationsDropdown` (#3879)

* feat: extensible global notices (#3880)

* fix: js error on null item list
* feat: extensible global notices

* chore: housekeeping (#3881)

* 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

* feat: reusable `UploadImageButton` component (#3882)

* chore: convert `UploadImageButton` to tsx
* feat: reusable `UploadImageButton` component
* feat: add `image-upload` setting type

* feat: extensible default footer component (#3883)

* chore: yarn format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a ForumPage (or something like that) that contains the sidebar can inherit from

2 participants