93 lines
7.7 KiB
Markdown
93 lines
7.7 KiB
Markdown
# Vision, interview and critical review (6 December 2026)
|
|
|
|
Written on 6 December 2026, against `production` at v0.9.13, after the goal interview with the maintainer. What is checked is
|
|
said to be; what is a proposal is marked as one. The decisions that came out of it are ADR-0017 (core and add-ons) and ADR-0018
|
|
(Laravel's own settings); both were accepted by the maintainer on 6 December 2026.
|
|
|
|
## 1. The goal
|
|
|
|
One manager that Iriks-IT puts on every Laravel site it makes, so the owner of a site can look after it without a developer, and the
|
|
developer does not copy code between sites any more. It is done when `iriks-it.nl` runs on the package instead of its own manager, and when a handed-over site
|
|
needs nobody for its daily things: texts, pictures, requests, accounts, **and the settings of the site itself** (mail, name, time zone, mode).
|
|
|
|
Not the goal: a general CMS for the public, a plugin marketplace, or a replacement for the site's own design.
|
|
|
|
## 2. The interview
|
|
|
|
| Question | Answer |
|
|
|---|---|
|
|
| Where do Laravel's settings (SMTP, name, time zone) live? | **Per setting**: each definition says whether it lives in the database (compiled file) or in `.env`. |
|
|
| How do core and add-ons separate? | **One package, two layers** (tiers), a contract now; separate packages later if it pays. |
|
|
| Who may change what on the settings screen? | **Three levels**: normal, secret and system, each with its own right; system only for a super admin, with a confirmation. |
|
|
| What first, for `iriks-it.nl`? | All of it: the settings, the core/add-on line, the move of `iriks-it.nl`, this document. **And first a good look at whether everything is in the package before the move.** |
|
|
|
|
Still to be asked (see section 7).
|
|
|
|
## 3. What exists (checked 6 December 2026)
|
|
|
|
Seventeen modules, one flat list. The screens are a Vue app in the package; 436 tests; the settings screen has parts, features, the
|
|
website, media, the IriksIT API and login.
|
|
|
|
| Tier proposed | Modules | Remark |
|
|
|---|---|---|
|
|
| core | `users`, `settings`, `media`, `audit`, `system` | Decided on 6 December 2026: core, on by default (v0.11.0). |
|
|
| content | `pages`, `posts`, `resources`, `revisions` | The page builder (blocks, preview, frontend mode) is the biggest piece of this tier. |
|
|
| add-on | `leads`, `reviews`, `statistics`, `sharing`, `numbers`, `updates` | `sharing` needs `posts`; `numbers` needs `statistics`. |
|
|
| integration | `support`, `costs`, the media disk `iriksit` | Tied to the IriksIT API (tickets, prices, files). |
|
|
|
|
## 4. A critical look at what we built
|
|
|
|
1. **ADR-0002 is broken by our own modules.** It says nothing site-specific lives in the package. `costs`, `numbers`, `support`, `updates` and the
|
|
`iriksit` disk are Iriks-IT's. They work, but the public package pretends to be general. (ADR-0017.)
|
|
2. **No line between core and the rest.** Nothing stops `pages` from using `leads`, or a core module from using an add-on. A test can.
|
|
3. **The settings screen stops at the manager.** A new site needs a developer for mail, name, time zone and mode. (ADR-0018.) The machinery exists;
|
|
the catalogue and the levels do not.
|
|
4. **One big config file.** `config/manager.php` is where a site says everything; the settings screen overrides single keys of it. Which of
|
|
the two wins is only in the README. The screen should show where a value comes from.
|
|
5. **Two translation sources** (`nl.json` and `ui/src/i18n.ts`) that must agree. A test guards it, but it is a tax on every screen.
|
|
6. **No test in a real browser.** 436 tests are PHP; the screens are checked by typecheck and by eye. Simple and full face, light and dark, were never run by a machine.
|
|
7. **Adopting existing tables (ADR-0007) works but is costly**: every module has branches for "the site already has this table". Fine for the move of `iriks-it.nl`; a new site never needs it.
|
|
8. **The simple face is a second set of texts** (`simple_tip`, `simple.*`, labels) next to the full one. It works, but it will drift unless a test says each screen has both.
|
|
9. **The package stores secrets with `APP_KEY`.** A changed key silently loses them (the store keeps the config's value). The screen should say so.
|
|
10. **Releases are small and frequent (13 in three days).** Good for feedback, hard for a site to follow. Sites need a short "what changed for you" per release; the CHANGELOG is that today.
|
|
|
|
## 5. What `iriks-it.nl` has that the package lacks
|
|
|
|
`iriks-it.nl` has its own manager (about 2,200 lines in `app/Http/Controllers/Manager`) built on the same code the package grew from. The tables it
|
|
has that the package has no module for (checked by name in `src/` and `config/`; some may be covered in another form and must be verified one by one):
|
|
|
|
| Of `iriks-it.nl` | In the package? | Proposal |
|
|
|---|---|---|
|
|
| `menu_items` (the site's menu) | no | resource, or a small module "navigation" in the content tier |
|
|
| `social_links`, `social_connections` | no (only LinkedIn sharing) | resource (list of links); connections stay in the site |
|
|
| `experiences` (the CV), `CvDocument` | presets only | resource with a preset; the document builder stays in the site |
|
|
| `testimonials`, `testimonial_imports`, `LinkedInTestimonials` | reviews yes, the LinkedIn import no | reviews cover the list; the import stays a command of the site |
|
|
| `article_imports`, `ArticleInbox` (Markdown articles) | no (`manager:import` copies tables) | add-on "article inbox", also used by `bouwbedrijf` |
|
|
| `contact_messages` | leads | check that the fields map; adopt the table |
|
|
| `ip_notes`, `ip_bans`, `audit_*` | audit | adopt; the code of the site goes away |
|
|
| `revisions` | revisions (ADR-0009: not adopted) | start over in the package's table; keep the old one read only |
|
|
| `visits`, `page_views`, `visitor_salts`, `bot_hits` | statistics | adopt or start over; check the counts |
|
|
| `iriks_it_api_state`, `sync_states` | partly (disk, prices) | check what they hold |
|
|
| `changelog` page, sitemap, legacy redirects, `Cats` | no | stay in the site |
|
|
|
|
This list is the first thing to **verify** (section 6, step 3) before the move.
|
|
|
|
## 6. The road, in releases
|
|
|
|
Each step is a release branch with its own pull requests; nothing here is built yet.
|
|
|
|
1. **v0.10.0, settings.** The definitions get `store` and `level`; the catalogue of ADR-0018 (Site, Mail with a test mail, Application, Logging), the right `settings.system`,
|
|
the screen shows where a value comes from, and `manager:settings` knows the new groups. Tests for every level and for the mail check.
|
|
2. **v0.11.0, tiers (built).** `tier()` on every module, the architecture test, the settings screen and the docs grouped by tier, and the integration tier named as such. Accept ADR-0017 first.
|
|
3. **Audit of the move** (no release, a document): go through the table of section 5 line by line against the real code and data of `iriks-it.nl`, with a dry run of `manager:import` on a copy of its database. Output: a list with "covered", "add to the package", "stays in the site".
|
|
4. **v0.12.0, what was missing** from step 3 (navigation, social links, the article inbox, ...), each as a resource, preset or small module in the right tier.
|
|
5. **The move of `iriks-it.nl`**, as `bouwbedrijf` was done: on a branch, tables adopted, old code removed, checked in the simple and the full face.
|
|
6. After that: browser tests in CI (point 6 of section 4) and the one-source translations (point 5).
|
|
|
|
## 7. Open questions for the maintainer
|
|
|
|
- Should `support` and `costs` move out of the public package into a private one, or stay with a clear label? (ADR-0017 stays with a label.)
|
|
- Mail: may a normal editor change the "from" address, or is it `secret` level? (ADR-0018 says normal.)
|
|
- Is maintenance mode (down/up) a setting of the screen, or a command only?
|
|
- Which of the rows of section 5 does `iriks-it.nl` really use today, and which are dead code like the old audit code of `bouwbedrijf` was?
|