0:00

ESPC26 · Brick by Brick · Lab 02

Create the five protected starter assets.

Use the five imported workshop assets to prepare and verify a reusable component starter set.

The goal: transform the five imported reference assets into learner starters while preserving their IDs and component-library relationships. Keep the original workshop ZIP as your recovery copy and make the changes in your assigned Microsoft workshop environment.

Back to all labs

Protect the reference build

Before You Begin

Concept

The source checkpoint is the answer key

Complete Lab 00 · Getting Started before starting. The original ESPC26BrickbyBrick_1_0_0_4.zip is your recovery copy. In your assigned environment, rename and simplify the imported assets in place. Keep the existing app and library IDs so the consumers retain their library relationships during conversion.

OrderImported display nameRename in place to
02AESPC26 - 02A App-Scoped ComponentsESPC26 - 02A App-Scoped Components - Starter
02BESPC26 - 02B Core Component LibraryESPC26 - 02B Core Component Library - Starter
02CESPC26 - 02C Library ConsumerESPC26 - 02C Library Consumer - Starter
02DESPC26 - 02D Enhanced Component LibraryESPC26 - 02D Enhanced Component Library - Starter
02EESPC26 - 02E Enhanced Properties ConsumerESPC26 - 02E Enhanced Properties Consumer - Starter

Begin with duplicated controls

1 · Create 02A — App-Scoped Starter

Concept

Learners should feel the duplication problem first

The starter keeps the two screens with manually constructed headers. Learners will use those screens to identify what repeats and then build the first app-scoped component themselves.

Copy and simplify the app

1

Rename the imported app as the starter

Open ESPC26 - 02A App-Scoped Components from the starter solution and rename it in Settings using the exact display name below.

ESPC26 - 02A App-Scoped Components - Starter

Save the new display name and confirm it in the Studio header before continuing. This is a rename, not Save as; the app ID remains unchanged.

Expect: The existing app is named ESPC26 - 02A App-Scoped Components - Starter.

2

Keep the learner screens and delete the completed checkpoints

Keep Screen1 and SessionGuide. Delete HeaderBrowse, HeaderGuide, EventBrowse, EventGuide, Screen2, and ArchitectureNotes.

Screen1 and SessionGuide are the learner's starting point. Do not convert their headers into components in advance. Delete the completed checkpoint screens before deleting the components they use; this removes the component instances and their formulas cleanly.

Expect: Only Screen1 and SessionGuide remain, and both still show their manually assembled header controls and content.

3

Delete all completed local components

Delete WorkshopHeader, WorkshopNavigationHeader, and SessionPicker from the Components pane.

WorkshopNavigationHeader and SessionPicker are advanced references, not required learner work. The core lab is intentionally focused on creating WorkshopHeader.

Expect: The starter contains no custom components.

4

Validate and publish 02A Starter

Checkpoint

Preview both screens, save, publish, close, and reopen the starter.

Expect: Both screens load without formula errors and no custom components are listed.

Give learners the shared destination

2 · Create 02B — Core Library Starter

Concept

Keep the proven WorkshopHeader

The library starter is the destination for the component learners build in 02A. It should contain the completed WorkshopHeader contract so the lab can focus on library publishing and consumption, not repeat the entire component build.

1

Rename the imported library as the starter

Open ESPC26 - 02B Core Component Library from the starter solution and rename it in place using the exact display name below.

ESPC26 - 02B Core Component Library - Starter

Expect: The existing library is named ESPC26 - 02B Core Component Library - Starter.

2

Remove the unused blank component

Delete Comp 1 and keep WorkshopHeader.

Keep its three Input properties: Title, Subtitle, and HeaderColor.

Expect: WorkshopHeader is the only component in the library.

3

Validate and publish 02B Starter

Checkpoint

Preview the test screen, save the library, and publish it.

Expect: WorkshopHeader renders correctly and is available for consumer apps.

Remove the completed import

3 · Create 02C — Library Consumer Starter

Concept

The learner must create the library relationship

The consumer starter keeps two content screens but begins without the imported header. During the lab, learners will use Get more components to import WorkshopHeader, add instances, and configure each screen differently.

1

Rename the imported consumer as the starter

Open ESPC26 - 02C Library Consumer from the starter solution and rename it in place using the exact display name below.

ESPC26 - 02C Library Consumer - Starter

Expect: The existing app is named ESPC26 - 02C Library Consumer - Starter.

2

Delete both imported header instances

Delete lcHomeLibraryHeader, found under Screen1 > lcHomeRoot > lcHomeLibraryHeader. Then delete lcGuideLibraryHeader, found under Screen2 > lcGuideRoot > lcGuideLibraryHeader.

lcHomeLibraryHeader and lcGuideLibraryHeader are the two instances of the imported WorkshopHeader. Delete the instances before checking the imported component reference.

Expect: Both screens retain their content but no longer contain the library component.

3

Verify the imported WorkshopHeader reference is gone

Open the Components pane. If WorkshopHeader is still listed under Library components, remove it; if it is already absent, continue without changing anything.

Power Apps may automatically remove the imported reference after its last instance is deleted. That is a successful result, not a missing step. If Power Apps says the component is still in use, return to both screens and search for lcHomeLibraryHeader or lcGuideLibraryHeader. Do not edit solution dependencies directly.

Expect: The app no longer lists WorkshopHeader as an imported library component.

4

Add a lightweight placement cue

Add a small text label near the top of each screen that says Add WorkshopHeader here.

The cue is optional if the screen layout already makes the empty header region unmistakable.

Expect: The intended placement is obvious without completing the learner task.

5

Validate and publish 02C Starter

Checkpoint

Save, preview both screens, close, and reopen the starter.

Expect: The app loads without errors and has no component-library dependency yet.

Prepare the Action and Event build

4 · Create 02D — Enhanced Library Starter

Concept

Keep the dialog shell but remove the completed contract

Learners should start with the visual confirmation dialog and its private state, then create the Open Action and OnResponded Event. SessionCard stays complete as the optional Input Function bonus. The blank Component1 is removed.

1

Rename the imported enhanced library as the starter

Open ESPC26 - 02D Enhanced Component Library from the starter solution and rename it in place using the exact display name below.

ESPC26 - 02D Enhanced Component Library - Starter

Expect: The existing library is named ESPC26 - 02D Enhanced Component Library - Starter.

2

Remove the unused blank component

Delete Component1. Keep ConfirmationDialog and SessionCard.

Expect: Only the two intentional teaching components remain.

3

Disconnect the library test harness

On Screen1, replace dlgPreviewOpen.OnSelect and clear dlgLibraryTestDialog.OnResponded.

Use these exact Tree view and property selections:

Leave the preview layout and the dlgLibraryTestDialog instance in place so learners can reconnect them later. The retained dlgPreviewDialogHost.X formula reads varDialogPreviewVisible; initializing the variable on Screen1.OnVisible prevents an undefined-name formula error after the completed Action and Event wiring is removed.

Expect: The test screen no longer depends on the completed Action or Event.

4

Disconnect the dialog buttons from the completed Event

In the ConfirmationDialog component definition, replace dlgCancelButton.OnSelect and dlgConfirmButton.OnSelect so they only clear dlgState.

In the Components pane, edit ConfirmationDialog, then use these Tree view paths:

  • dlgOverlay > dlgCard > dlgButtons > dlgCancelButton — set OnSelect to Clear(dlgState).
  • dlgOverlay > dlgCard > dlgButtons > dlgConfirmButton — set OnSelect to Clear(dlgState).

These are controls inside the ConfirmationDialog component definition, not controls on Screen1.

Expect: Cancel and Confirm close the dialog shell without calling OnResponded.

5

Remove the completed Action and Event properties

Select the ConfirmationDialog component root and delete the custom properties named Open and OnResponded.

In the component's custom properties list, delete Open (property type Action) and OnResponded (property type Event). Do not change a Boolean value, a data-type setting, or the built-in OnReset property. Keep the existing OnReset state initialization and the visual bindings to dlgState; those provide the prepared shell while learners add the public behavior contract.

Expect: AccentColor remains, while the Action and Event no longer appear.

6

Keep SessionCard as the bonus reference

Leave SessionCard and Screen2 unchanged.

This optional bonus teaches an Input Function after the Action/Event lab. It should not block the core dialog exercise.

Expect: SessionCard still demonstrates Title, Duration, and FormatCaption.

7

Validate and publish 02D Starter

Checkpoint

Save, preview Screen1 and Screen2, publish the component library, close it, and reopen ESPC26 - 02D Enhanced Component Library - Starter from the starter solution.

If publishing, closing, or reopening behaves differently, stop and record the exact message and the point where it occurred.

Expect: The dialog shell and SessionCard render without formula errors.

Remove completed library wiring

5 · Create 02E — Enhanced Consumer Starter

Concept

Preserve the scenario, remove the answer

The host app should retain the sample selection, result area, buttons, and supporting variables. The imported components and completed Action/Event wiring are removed so learners must add and connect them.

1

Rename the imported enhanced consumer as the starter

Open ESPC26 - 02E Enhanced Properties Consumer from the starter solution and rename it in place using the exact display name below.

ESPC26 - 02E Enhanced Properties Consumer - Starter

Expect: The existing app is named ESPC26 - 02E Enhanced Properties Consumer - Starter.

2

Remove completed dialog calls from Screen1

On Screen1, remove the completed epcDialogLive calls from epcChoose, epcOpen, and epcDialogLive itself.

Use these exact Tree view and property selections:

  1. Reset(epcDialogLive) and keep the existing Set(...) formulas.
  2. with Notify("Connect the Open Action during the lab.").
  3. OnResponded formula.

Keep varEpcChoice, varEpcResponse, and varEpcVisible; they make the host-owned state visible.

Expect: Screen1 no longer refers to the imported dialog instance.

3

Delete the imported dialog instance and verify its reference

Delete Screen1 > epcRoot > epcLayer > epcDialogHost > epcDialogLive, then check the Components pane for ConfirmationDialog.

If ConfirmationDialog is still listed under Library components, remove it. If it is already absent, continue: Power Apps removed the reference automatically after the last instance was deleted. If it cannot be removed, search Screen1 for a remaining epcDialogLive reference first.

Expect: The dialog host area remains as a placement cue, but the imported component is gone.

4

Remove the completed SessionCard bonus instances

On SessionCardDemo, delete conScAttendee > cmpScAttendee and conScPresenter > cmpScPresenter, then check the Components pane for SessionCard.

cmpScAttendee and cmpScPresenter are the two imported SessionCard instances. If SessionCard is still listed under Library components after both are deleted, remove it. If it is already absent, continue. Keep the surrounding explanatory layout if it still makes sense, and add a short placement cue if the empty areas are not obvious.

Expect: The bonus screen remains as a host canvas without completed card instances or FormatCaption formulas.

5

Validate and publish 02E Starter

Checkpoint

Save, preview both screens, close, and reopen the starter.

Expect: The app runs without errors and contains no imported enhanced-library components.

Prove the learner starting point

6 · Package and Smoke-Test the Starter Set

Concept

A starter solution should not contain completed cross-app wiring

02C and 02E intentionally begin without imported component-library relationships. Learners create those relationships during the lab. The two starter libraries are present and published so the imports are available when needed.

1

Confirm the starter solution contents

Return to ESPC26 - Section 02 Components - Starters, refresh its component list, and verify the five exact names below.

The expected names are fixed for this package:

  • ESPC26 - 02A App-Scoped Components - Starter
  • ESPC26 - 02B Core Component Library - Starter
  • ESPC26 - 02C Library Consumer - Starter
  • ESPC26 - 02D Enhanced Component Library - Starter
  • ESPC26 - 02E Enhanced Properties Consumer - Starter

Do not add the YAML app, the legacy Gallery Component Library, or unrelated components to the exported Section 02 learner package.

Expect: The solution contains exactly the five starter assets and their required platform dependencies.

2

Inspect dependencies before export

Review the solution's dependencies for 02C and 02E.

02B and 02D are still component libraries. Their presence in the solution does not mean the consumer apps should already reference them.

Expect: Neither consumer starter depends on a component library before the learner imports a component.

3

Run the learner-path smoke test

Payoff

Open each starter from the solution and test only what a learner receives.

Expect: Every starter opens cleanly and no completed learner task is already done.

4

Export and preserve the checkpoint

Export the starter solution as unmanaged and record its version, filename, and test date.

Keep ESPC26BrickbyBrick_1_0_0_4.zip as your recovery copy. Use a filename that explicitly includes starters and the solution version.

Expect: A repeatable starter package is ready for clean-environment import testing.

Leave a useful handoff

7 · Record the Test Result

Before calling the starter set ready, record:

  • the starter solution version and exported filename;
  • which tenant and environment were used;
  • the date and tester name;
  • any formula errors, dependency warnings, or confusing production steps;
  • whether the original ZIP/source-tenant reference remained available and unchanged; and
  • whether the exported starter solution imported successfully in a clean environment.