Skip to content

PRO-8493: inject admin UI styles for layout - #5116

Merged
myovchev merged 1 commit into
mainfrom
PRO-8493-admin-css
Oct 24, 2025
Merged

myovchev merged 1 commit into
mainfrom
PRO-8493-admin-css

Conversation

@myovchev

Copy link
Copy Markdown
Contributor

Summary

Refactor and inject admin UI styles for layout

What are the specific steps to test this change?

Content edit mode of layout should be responsive and behave the same as the public scene.

What kind of change does this PR introduce?

(Check at least one)

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated
  • Related documentation has been updated
  • Related tests have been updated

If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

@linear

linear Bot commented Oct 22, 2025

Copy link
Copy Markdown

@myovchev
myovchev requested a review from ValJed October 22, 2025 09:06

@ValJed ValJed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

},
async loadAndProcessStylesFromScene({ build, scene }) {
const pathSegments = [ 'ui', build, 'layout.css' ];
const cssFilePath = path.join(__dirname, ...pathSegments);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Detail but don't really see the need of pathSegments const

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll let it slide for now, because saving review time is a bigger win :D

return self.processCss(cssContent, scene);
},
async processCss(cssContent) {
async processCss(cssContent, scene = null) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If no scene we do both?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes

@myovchev
myovchev merged commit 14371ac into main Oct 24, 2025
9 checks passed
@myovchev
myovchev deleted the PRO-8493-admin-css branch October 24, 2025 09:56
haroun added a commit that referenced this pull request Oct 29, 2025
…ation

* main: (23 commits)
  PRO-8538: fix layout bug in mobile breakpoint preview that causes tiny collapsed columns (#5127)
  give color button a testable data attr (#5124)
  PRO-8530 autodetect ES bundles (#5120)
  Emphasize but unfocus in layout mode (#5125)
  Simplify layout max width (#5123)
  max width, anchors, labels (#5122)
  refactor and inject admin UI styles for layout (#5116)
  Color field swatches (#5118)
  Pro 8285 login case insensitive (#5100)
  fix paste bug (#5119)
  Implement change outlined on Discord (#5117)
  PRO-8374: Mute tooltip when edit is disabled (#5114)
  fix sticky when controls are disabled (#5115)
  enable logout and whoami routes if localLogin is false (#5098)
  add locale picker (#5090)
  enforce empty state font (#5113)
  sticky controls (#5106)
  Layout widget icon (#5112)
  Feature layout widget (#5031)
  PRO-8435: log what widget type was missing (#5110)
  ...
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.

2 participants