Skip to content

@releng first draft of code structure guideline#604

Open
npeltier wants to merge 6 commits intoadobecom:mainfrom
npeltier:releng
Open

@releng first draft of code structure guideline#604
npeltier wants to merge 6 commits intoadobecom:mainfrom
npeltier:releng

Conversation

@npeltier
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.14%. Comparing base (0ca05ae) to head (d9209c3).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #604      +/-   ##
==========================================
- Coverage   84.14%   84.14%   -0.01%     
==========================================
  Files         180      180              
  Lines       49064    49064              
==========================================
- Hits        41284    41283       -1     
- Misses       7780     7781       +1     

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ca05ae...d9209c3. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

| common | Holds main views, top bar, etc... |
| common/constants | Holds constants reused across code |
| common/fields | Holds fields reused across different UIs (e.g., mas-locale-picker) |
| common/repository | Repository interaction features |
Copy link
Contributor

Choose a reason for hiding this comment

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

we could keep aem.js somewhere, and break mas-repository.js fully down and move pieces in appropriate folders like fragments, placeholders, promotions.
Not sure at the end we will have repository interaction features appart.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i agree, i think we can keep core generic features in common/repository, and the one that are specific in dedicated feature folders, with naming model, or together with the dedicated store?

| ----------------- | ------------------------------------------------------------------ |
| common | Holds main views, top bar, etc... |
| common/constants | Holds constants reused across code |
| common/fields | Holds fields reused across different UIs (e.g., mas-locale-picker) |
Copy link
Contributor

Choose a reason for hiding this comment

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

I somehow don't like the common parent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well, it's the price for having direct feature wise sibling

| common/repository | Repository interaction features |
| common/store | Model common utitilies |
| common/utils | Holds common utils |
| fragments | Views, models, specific to fragments view |
Copy link
Contributor

Choose a reason for hiding this comment

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

so card and collection editor go here in fragments? because everything is a fragment at the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Contributor

Choose a reason for hiding this comment

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

then how come placeholders are separate? they are also fragments :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:) yes, and collections are too and will have their own UI, it's UI here, not data type

Copy link
Contributor

Choose a reason for hiding this comment

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

what ui is fragment? /content one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

yes

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