Skip to content

add admin section to the hosted app specification#6895

Open
JoshuaWhite1 wants to merge 1 commit intoproj-48450/asset-pipeline-for-hosted-appsfrom
02-25-add_admin_section_to_the_hosted_app_specification
Open

add admin section to the hosted app specification#6895
JoshuaWhite1 wants to merge 1 commit intoproj-48450/asset-pipeline-for-hosted-appsfrom
02-25-add_admin_section_to_the_hosted_app_specification

Conversation

@JoshuaWhite1
Copy link

@JoshuaWhite1 JoshuaWhite1 commented Feb 25, 2026

WHAT is this pull request doing?

Updates CLI for name change from hosted app -> admin

How to test your changes?

See core PR for 🎩

Post-release steps

Measuring impact

How do we know this change was effective? Please choose one:

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • Existing analytics will cater for this addition
  • PR includes analytics changes to measure impact

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes

Copy link
Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 25, 2026

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 78.85% 14529/18427
🟡 Branches 73.14% 7223/9875
🟡 Functions 79.05% 3695/4674
🟡 Lines 79.18% 13727/17336

Test suite run success

3797 tests passing in 1455 suites.

Report generated by 🧪jest coverage report action from 60096cc

@JoshuaWhite1 JoshuaWhite1 force-pushed the 02-25-add_admin_section_to_the_hosted_app_specification branch from 95b92da to 4fd1bdd Compare February 26, 2026 23:44
@JoshuaWhite1 JoshuaWhite1 force-pushed the proj-48450/asset-pipeline-for-hosted-apps branch from 635fedb to d296cb0 Compare February 26, 2026 23:44
@alfonso-noriega alfonso-noriega changed the base branch from proj-48450/asset-pipeline-for-hosted-apps to graphite-base/6895 February 27, 2026 08:38
@MitchLillie MitchLillie force-pushed the 02-25-add_admin_section_to_the_hosted_app_specification branch from 4fd1bdd to 3f78149 Compare March 3, 2026 18:08
@MitchLillie MitchLillie changed the base branch from graphite-base/6895 to proj-48450/asset-pipeline-for-hosted-apps March 3, 2026 18:08
@MitchLillie MitchLillie force-pushed the 02-25-add_admin_section_to_the_hosted_app_specification branch from 3f78149 to 60096cc Compare March 3, 2026 18:24
@MitchLillie MitchLillie marked this pull request as ready for review March 3, 2026 18:25
@MitchLillie MitchLillie requested a review from a team as a code owner March 3, 2026 18:25
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

We detected some changes at packages/*/src and there are no updates in the .changeset.
If the changes are user-facing, run pnpm changeset add to track your changes and include them in the next release CHANGELOG.

Caution

DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release.

}

export const HostedAppHomeSpecIdentifier = 'hosted_app_home'
export const HostedAppHomeSpecIdentifier = 'admin'

Choose a reason for hiding this comment

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

Identifier renamed to admin without alias/back-compat handling

The config extension spec identifier was changed from hosted_app_home to admin (export const HostedAppHomeSpecIdentifier = 'admin'). This identifier is used to match/route config modules (e.g., included in CONFIG_EXTENSION_IDS, used in spec list sorting). If existing projects/platform still send/expect hosted_app_home, the CLI may not recognize the module, may fail schema validation, or may fail to load/copy assets. This is high-risk because it can break builds/deploys for users on older config versions.

const sourceDir = joinPath(directory, config.static_root)
const staticRoot = config.admin?.static_root
if (!staticRoot) return
const sourceDir = joinPath(directory, staticRoot)

Choose a reason for hiding this comment

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

Schema changed to admin.static_root without migration/fallback from legacy static_root

The schema changed from top-level static_root to a nested optional object (admin: zod.object({ static_root: zod.string().optional() }).optional()), and asset copying now reads config.admin?.static_root. Existing configs that still set static_root: "public" at the top level will result in no assets being copied (silent failure), which can break runtime behavior without obvious errors.

@binks-code-reviewer
Copy link

🤖 Code Review · #projects-dev-ai for questions
React with 👍/👎 or reply — all feedback helps improve the agent.

Complete - 2 findings

📋 History

✅ 2 findings

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.

1 participant