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

Introduce Layouts to Studio #367

Merged
merged 20 commits into from
Sep 8, 2023
Merged

Introduce Layouts to Studio #367

merged 20 commits into from
Sep 8, 2023

Conversation

alextaing
Copy link
Contributor

@alextaing alextaing commented Sep 6, 2023

This PR introduces Layouts to Studio. Studio now recognizes layouts that appear in src/layouts (or a custom dir) and stores their filepaths in a new layouts slice. Layout names are derived from the layout's filename. Tests were updated to reflect changes in studio config. A test was written to check that layout files are found from the layouts dir.

The current LayoutSlice just contains a string[] of the names of the layouts in the layouts dir. This is simply a place holder, since no layout parsing was implemented yet. Layout parsing and the LayoutSlice will be fleshed out in future PRs in the epic.

J=SLAP-2923
TEST=auto,manual

@alextaing alextaing added the wip label Sep 6, 2023
@alextaing alextaing removed the wip label Sep 7, 2023
oshi97
oshi97 previously approved these changes Sep 7, 2023
@alextaing alextaing merged commit ae14317 into main Sep 8, 2023
15 checks passed
@alextaing alextaing deleted the dev/populate-layout-state branch September 8, 2023 14:12
@tmeyer2115 tmeyer2115 mentioned this pull request Sep 22, 2023
tmeyer2115 added a commit that referenced this pull request Sep 22, 2023
## Features
- We've introduced the concept of Page Layouts (or Layouts) to Studio. A
Page Layout is a pre-prescribed set of Components that you can apply to
a Page. By default, Layouts live in the `src/layouts` directory. In the
UI, a Layout can be applied via the "Insert" button. (#370, #367, #375)
- There is now improved UX for creating or editing an Entity Page's
Stream Scope. Instead of being raw inputs, the fields for Entity Ids,
Entity Types, and Saved Filters are now drop-downs with the relevant
options populated from the account. (#380)

## Changes
- Repeaters and Modules have been officially deprecated and removed from
Studio. (#369)
alextaing pushed a commit that referenced this pull request Sep 22, 2023
## Features
- We've introduced the concept of Page Layouts (or Layouts) to Studio. A
Page Layout is a pre-prescribed set of Components that you can apply to
a Page. By default, Layouts live in the `src/layouts` directory. In the
UI, a Layout can be applied via the "Insert" button. (#370, #367, #375)
- There is now improved UX for creating or editing an Entity Page's
Stream Scope. Instead of being raw inputs, the fields for Entity Ids,
Entity Types, and Saved Filters are now drop-downs with the relevant
options populated from the account. (#380)

## Changes
- Repeaters and Modules have been officially deprecated and removed from
Studio. (#369)
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