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: use sidekick to get list of projects #95

Merged
merged 8 commits into from
Feb 25, 2025
Merged

feat: use sidekick to get list of projects #95

merged 8 commits into from
Feb 25, 2025

Conversation

Copy link

aem-code-sync bot commented Feb 11, 2025

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Sorry, something went wrong.

@@ -31,12 +31,12 @@ <h1>Admin Edit</h1>
<section class="form-field config-field">
<div class="form-field org-field">
<label for="org">Organization</label>
<input name="org" id="org" list="org-list" required />
<input name="org" id="org" list="org-list" autocomplete="off" required />
Copy link
Collaborator Author

@shsteimer shsteimer Feb 25, 2025

Choose a reason for hiding this comment

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

browser was autocompleting sites not in the org based on previous entry/submission, hence setting autocomplete="off" to prevent that confusion

Copy link
Member

Choose a reason for hiding this comment

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

good catch. 🎉

const lastOrg = projects.orgs[0];
setFieldValue(org, lastOrg, 'storage');
if (projects.sites && projects.sites[lastOrg]) {
const selectedOrg = setFieldValue(org, projects.orgs[0], 'storage');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if an org was selected in previous population step, use that org. prevents adding sites to data list that are from a different org.

@shsteimer shsteimer marked this pull request as ready for review February 25, 2025 18:09
@shsteimer shsteimer marked this pull request as draft February 25, 2025 18:24

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@shsteimer shsteimer marked this pull request as ready for review February 25, 2025 18:30
@shsteimer shsteimer requested review from rofe and fkakatie February 25, 2025 18:30
@shsteimer
Copy link
Collaborator Author

shsteimer commented Feb 25, 2025

re PSI check: desktop CLS will be fixed in a future PR (#103).

The weird 4.7S FCP for Site query is I think mostly a one-off. it isn't the first time I've seen that happen with tools/labs, but it doesn't happen every time either (roughly 20% of the time or so it seems). unsure what to make of it exactly as there is no obvious cause.

@shsteimer shsteimer merged commit e92c137 into main Feb 25, 2025
3 of 4 checks passed
@shsteimer shsteimer deleted the sk-projects branch February 25, 2025 21:41
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.

None yet

2 participants