Update git remote domain from privategit.hanson.xyz to git.internal.hanson.xyz, remove port 3322

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2026-02-20 07:31:38 +00:00
parent 0efdcd4cde
commit d01a6179aa
6 changed files with 115 additions and 38 deletions

View File

@@ -595,12 +595,19 @@ class Toggle_Button extends Component {
### Lifecycle
1. **on_create()** → Setup defaults (sync) - `this.data.rows = []; this.data.loading = true;`
2. **render** → Template executes
3. **on_render()**Hide uninitialized UI (sync)
4. **on_load()** → Fetch data into `this.data` (async)
5. **on_ready()**DOM manipulation safe (async)
2. **render** → Template executes (top-down: parent before children)
3. **on_render()**Fires after render, BEFORE children ready (top-down, sync)
4. **on_load()** → Fetch data into `this.data` (bottom-up, parallel siblings, async)
5. **on_ready()**All children guaranteed ready (bottom-up, async)
6. **on_stop()** → Teardown when destroyed (sync)
If `on_load()` modifies `this.data`, component renders twice (defaults → populated).
If `on_load()` modifies `this.data`, component renders twice (defaults → populated). on_ready() fires once after final render.
### Component Complexity Tiers
- **Static**: Template-only, no JS file. Pure display from this.args.
- **Simple**: on_load() fetches this.data, `reload()` to re-fetch when this.args change.
- **Complex**: on_load() for initial/cached data, then jQuery DOM manipulation for incremental mutations post-initialization.
### Component API
@@ -612,11 +619,12 @@ If `on_load()` modifies `this.data`, component renders twice (defaults → popul
| `this.$sid('name')` | jQuery | Child with `$sid="name"` |
| `this.sid('name')` | Component/null | Child component instance |
**reload() vs render():**
```
reload() = on_load() → render() → on_ready() ← ALWAYS USE THIS
render() = template only (no on_ready) ← NEVER USE
```
**Lifecycle Methods:**
- `reload()` - Reset this.data to on_create() defaults → on_load() → render() → on_ready(). Use when this.args changed.
- `render()` / `redraw()` - Re-execute template → wait for children → on_ready(). Does NOT re-run on_load(). UI-only updates.
- `stop()` - Destroy component and all children. Calls on_stop() if defined.
**render() destroys child DOM**: All child elements and child components are recreated. DOM event handlers on children are lost and must be re-registered.
After mutations, call `this.reload()` - the server round-trip is intentional:
```javascript
@@ -626,11 +634,15 @@ async add_item() {
}
```
**Event handlers** go in `on_ready()` - they auto-reattach after reload. **WRONG:** Event delegation like `this.$.on('click', '[data-sid="btn"]', handler)` to "survive" render calls - use `reload()` instead.
**this.data rules (enforced):** Writable only in `on_create()` (defaults) and `on_load()` (fetched data). Read-only elsewhere.
**on_render():** Ignore - use `on_ready()` for post-render work.
### Event Handler Placement
| What | Where | Why |
|------|-------|-----|
| `this.on('event', ...)` | `on_create()` | Persists across renders; on_ready() risks infinite loops from event replay |
| `this.sid('child').on('event')` | `on_ready()` | Child component events |
| `this.$sid('elem').on('click')` | `on_render()` or `on_ready()` | Child DOM recreated on render, must re-attach |
### Loading Pattern

View File

@@ -7,14 +7,14 @@
Clone the RSpade project with the framework submodule:
```bash
git clone --recurse-submodules ssh://git@privategit.hanson.xyz:3322/brianhansonxyz/rspade_project.git /path/to/project
git clone --recurse-submodules ssh://git@git.internal.hanson.xyz/brianhansonxyz/rspade_project.git /path/to/project
cd /path/to/project
```
**Alternative method** (clone then initialize submodules):
```bash
git clone ssh://git@privategit.hanson.xyz:3322/brianhansonxyz/rspade_project.git /path/to/project
git clone ssh://git@git.internal.hanson.xyz/brianhansonxyz/rspade_project.git /path/to/project
cd /path/to/project
git submodule update --init --recursive
```

View File

@@ -20,7 +20,7 @@ When starting a new project from this template:
bin/framework-upstream setup
```
This configures `ssh://git@192.168.0.3:3322/brianhansonxyz/rspade-publish.git` as the `framework-upstream` remote.
This configures `ssh://git@git.internal.hanson.xyz/brianhansonxyz/rspade-publish.git` as the `framework-upstream` remote.
## Workflow
@@ -171,7 +171,7 @@ The `bin/framework-upstream` script automates these Git commands:
```bash
# Add upstream remote manually
git remote add framework-upstream ssh://git@192.168.0.3:3322/brianhansonxyz/rspade-publish.git
git remote add framework-upstream ssh://git@git.internal.hanson.xyz/brianhansonxyz/rspade-publish.git
# Fetch updates
git fetch framework-upstream