v0.10.0
This commit is contained in:
commit
d94473aff6
305 files changed
+22017
No files matched your search
@@ -0,0 +1,48 @@
|
||||
# Building pages and choosing photos
|
||||
|
||||
For the people who look after a site with this manager, and for whoever sets it up. The same words are in the tour that a new account sees
|
||||
(the cross closes it; "Show the tour" in the menu opens it again).
|
||||
|
||||
## Who shows the website
|
||||
|
||||
On the settings screen (only in the whole manager, with the right `settings.manage`), group **The website**:
|
||||
|
||||
| Setting | What it does |
|
||||
| --- | --- |
|
||||
| **Who shows the website** | *The website itself*: the site has its own code and draws the pages (the usual choice). *This manager*: the manager draws every page made of blocks at its own address, nothing else is needed. *Another website reads it (headless)*: the pages go out as data for a website or app elsewhere. |
|
||||
| **Show the real page next to the editor** | While building a page you see it on a phone, tablet and computer before you save. |
|
||||
| **Let another website read the pages** | The pages as JSON at `/api/manager/pages/{slug}`. Always on in headless mode. |
|
||||
|
||||
Switching does not delete anything: a page is the same whoever draws it.
|
||||
|
||||
## The simple face (for people who are not webmasters)
|
||||
|
||||
An account in the **simple** face sees the same page editor with plainer words and fewer buttons:
|
||||
|
||||
- "The parts of your page", "Add something to the page"; every block type has a sentence of its own ("A text with a picture next to it").
|
||||
- A part is **taken off the site** (and put back) instead of deleted; there is no drag-and-drop, no duplicate, no red delete. The arrows move a part.
|
||||
- How a part looks (width, background, …) is folded away under "Change how it looks".
|
||||
- A photo is **picked, not managed**: "Choose a photo" opens the phone's own photo picker (or the camera); several at once for a gallery. The photo is turned upright and made smaller in the browser (longest side 2400 pixels), which also drops where and when it was taken. There is no file name or address to see.
|
||||
- Fields marked `advanced` are left out.
|
||||
|
||||
A field or block type of your own gets plain words with `'simple' => ['label' => '…', 'help' => '…']`.
|
||||
|
||||
## Which photos do I need?
|
||||
|
||||
| Where | Shape | At least | Tip |
|
||||
| --- | --- | --- | --- |
|
||||
| Big opening (hero) | wide (landscape) | 1600 px across | the edges are cut to fit: keep what matters in the middle |
|
||||
| Text with picture | landscape or square | 1000 px across | any sharp photo |
|
||||
| One picture | any | 1200 px across | shown as wide as the part allows |
|
||||
| Several pictures | any | 800 px across each | shown as squares or a grid; pick them in one go, the first comes first |
|
||||
| Before and after | same spot, same angle | 800 px across | take both from the same place |
|
||||
|
||||
A phone photo is big enough for all of these. Nobody has to resize anything; a photo of up to 40 MB is accepted (`manager.media.max_file_mb`), and the library has room for `manager.media.max_total_gb`.
|
||||
The tour's own pictures (the mascot) live in `manager.mascot.path`; the names are `welcome`, `point`, `calm`, `write`, `photos`, `pages`, `undo`, `oops`, `party`, `profile` and `peek`, as 512 × 512 `.webp` or `.png` with a transparent background. This release needs no new ones; a missing one is a paw.
|
||||
|
||||
## For the person who sets it up
|
||||
|
||||
1. `manager.frontend.mode` (`MANAGER_FRONTEND`): `site`, `package` or `headless`. In `package` mode `manager.frontend.layout` is the Blade view (`manager::public.layout`, publish and change it, or point it at a view of your own with `$title`, `$description`, `$blocks`, `$css` and `$slug`).
|
||||
2. Give a page definition `'blocks' => true` and give the accounts that build pages `pages.layout` (and `pages.edit`, `media.view`, `media.upload`).
|
||||
3. Switch on the preview with `manager.blocks.preview.enabled` and set its address if the page is not at `/{slug}`.
|
||||
4. Look at the page as an account in the simple face: press "Simple view" in the menu. If you cannot do it without help, so cannot the owner.
|
||||
@@ -0,0 +1,37 @@
|
||||
# Two-step login
|
||||
|
||||
Two-step login means you type a code of 6 digits from an app on your phone after your password. Someone who only has your password cannot get in. This page is for the people who use the manager, and for whoever sets a site up.
|
||||
|
||||
## If you use the manager
|
||||
|
||||
**Setting it up** (about two minutes): open *My account*, scroll to *Extra safe login*, press *Set up* and follow the steps.
|
||||
|
||||
1. Install an **authenticator app** on your phone. Google Authenticator, Microsoft Authenticator and 2FAS all work, and so does the one in a password manager.
|
||||
2. Put your account in the app. On a computer, **scan the picture** with the app. On the phone you are using right now, you cannot scan your own screen: press **Open in the app** instead, and the app opens by itself. If neither works, or you keep your codes in a **password manager such as Bitwarden**, use the **setup key under the picture**: add a key (or secret) by hand, paste it, and leave the other options as they are (time based, 6 digits). The key is shown in groups of four to be easy to read; the *Copy the key* button copies it in one piece.
|
||||
3. Type the 6 digits the app shows, and press *Turn on*.
|
||||
4. You get **eight recovery codes**. Save them somewhere safe, for example in a password manager (the *Download* button makes a text file). Each works once, instead of the 6 digits, if you lose your phone. They are shown only this once.
|
||||
|
||||
From then on, after your password the manager asks for the 6 digits, once for each time you log in. The app shows a new code every 30 seconds; a code works once.
|
||||
|
||||
**Lost your phone?** On the question for the code, press *I lost my phone* and type a recovery code. Then set it up again with the new phone (*My account*: *New recovery codes* gives you fresh ones). No recovery codes either? Ask someone who manages accounts to reset your second step; you set it up again at your next login.
|
||||
|
||||
## If you are a super admin
|
||||
|
||||
Two-step login is **required** for super admins. You get **30 days** from the first time the manager sees you without it. A yellow line at the top of every screen counts the days down. When the days are over, the manager shows nothing but the screen to set it up, until you have.
|
||||
|
||||
You cannot turn it off once it is required of you.
|
||||
|
||||
## Groups and accounts
|
||||
|
||||
- A group can **require** it: on the group form, tick *Requires two-step login*. Everyone in that group then has the same 30 days. An account that is in several groups has to as soon as one of them says so.
|
||||
- Everyone else can switch it on for themselves, and off again (with their password and a code).
|
||||
- On the accounts screen you see who has it. Someone who manages accounts can **reset** the second step of an account they outrank, for a lost phone; the account sets it up again at its next login. A reset does not give the 30 days back. Nobody resets their own that way.
|
||||
- The last super admin who has lost everything: `php artisan manager:two-factor-reset [email protected]` on the server.
|
||||
|
||||
## If you set a site up
|
||||
|
||||
- It is a gate of the manager, not part of a login, so it works with your own login as well as the manager's. The screens of your own site are not protected by it.
|
||||
- `config/manager.php`, `two_factor`: `enabled` (env `MANAGER_TWO_FACTOR`, set `false` to switch the whole feature off), `super_admins` (`MANAGER_TWO_FACTOR_SUPER_ADMINS`), `grace_days` (`MANAGER_TWO_FACTOR_GRACE_DAYS`, 30) and `issuer` (the name the app shows; the name of the manager by default). It is not on the settings screen on purpose.
|
||||
- **When you upgrade**, every super admin starts its 30 days at its next visit. Tell them first.
|
||||
- It needs the table `manager_two_factor` and the column `groups.require_two_factor`, which the migrations add (a site that has its own `groups` table keeps it; the column is added).
|
||||
- The reasons and what is not built (trusted devices, SMS, passkeys) are in ADR-0016.
|
||||
@@ -0,0 +1,93 @@
|
||||
# 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` | `audit` is off by default today; making it core changes that, so it needs a decision. |
|
||||
| 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.** `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
|
||||
|
||||
- Is `audit` core (on for every site) or an add-on? It changes nothing for a site that already turns it on.
|
||||
- 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?
|
||||
Reference in new issue
Block a user