mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
section 2: Phase 2 — Content-hashed hunk ids and stop status
This commit is contained in:
1 parent
4b5f76f416
commit
7bf6c35f29
7 files changed
+156
-63
No files matched your search
@@ -22,8 +22,22 @@ const walkthrough: ChangeWalkthrough = {
|
||||
diffHash: 'hash-1',
|
||||
summary: 'This change adds a greeting.',
|
||||
stops: [
|
||||
{ title: 'Add the greeting', explanation: 'Introduces the greeting helper.', hunkIds: ['f0h0'] },
|
||||
{ title: 'Wire it up', explanation: 'Calls the helper from the entry point.', hunkIds: ['f1h0'] },
|
||||
{
|
||||
id: 's_greet',
|
||||
title: 'Add the greeting',
|
||||
explanation: 'Introduces the greeting helper.',
|
||||
hunkIds: ['f0h0'],
|
||||
status: 'ready',
|
||||
explanationKey: null,
|
||||
},
|
||||
{
|
||||
id: 's_wire',
|
||||
title: 'Wire it up',
|
||||
explanation: 'Calls the helper from the entry point.',
|
||||
hunkIds: ['f1h0'],
|
||||
status: 'ready',
|
||||
explanationKey: null,
|
||||
},
|
||||
],
|
||||
hunks: [
|
||||
{
|
||||
@@ -233,7 +247,9 @@ describe('ChangesWalkthroughSheet', () => {
|
||||
walkthrough: {
|
||||
...walkthrough,
|
||||
summary: `Summary ${payload}`,
|
||||
stops: [{ title: 'Stop', explanation: `Explanation ${payload}`, hunkIds: ['f0h0'] }],
|
||||
stops: [
|
||||
{ id: 's_x', title: 'Stop', explanation: `Explanation ${payload}`, hunkIds: ['f0h0'], status: 'ready', explanationKey: null },
|
||||
],
|
||||
},
|
||||
}),
|
||||
)
|
||||
|
||||
@@ -276,7 +276,7 @@ export const ChangesWalkthroughView = memo(function ChangesWalkthroughView() {
|
||||
{stops.length > 0 ? (
|
||||
<ol className="space-y-0.5">
|
||||
{stops.map((stop, index) => (
|
||||
<li key={index}>
|
||||
<li key={stop.id}>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => selectStop(index)}
|
||||
|
||||
Reference in new issue
Block a user