Skip to content

v1.0.0-rc1

Pre-release
Pre-release

Choose a tag to compare

@LukeSavefrogs LukeSavefrogs released this 27 Nov 19:04
· 11 commits to main since this release
262b530

Added

  • Users: in production, the root user can hand its role over to another super administrator who can log in, with
    Make root user on their page after confirming its password; the former root user stays a super administrator,
    and the protections of the root user move to the new one
    (#113).
  • Setup wizard: a new installation can be completed from the browser, protected by a SETUP_TOKEN: it checks the
    server, fills in the missing values of .env (testing the database and the emails first, and keeping a copy of the
    file), shows how to run the scheduled tasks and the queue, creates the database and the root user, and sets the name,
    logo and colour of the app, its administrators and its features. A summary comes before installing, reloading the
    page goes on from the last step, and the token is removed from .env once installed
    (#107).
  • Settings: the name of the app can be changed from the General settings, instead of APP_NAME in .env
    (#107).
  • och:doctor also checks the PHP version and extensions, the HTTPS certificate, the push notifications, the timezone,
    the two-factor authentication of the root user and a SETUP_TOKEN left after the installation
    (#107).
  • Assignments: assigning a territory again for a campaign in which it has already been worked now asks for a
    confirmation (from the territories list and the campaign assignments); the bulk assignment skips such territories
    unless asked to include them, and the AI assistants ask the user before assigning it again
    (#114).
  • End-to-end tests: browser tests of every feature of the app and of the main workflows (e.g. a zone, then a
    territory in it, assigned and returned), run on every pull request on MySQL (the setup wizard on SQLite and MySQL),
    while the unit and feature tests run on MySQL and SQLite; the ones for phones run on Android and on iPhone (Safari's
    engine), and a failed test keeps a video and a trace to replay it
    (#116,
    #117,
    #118).
  • The busy timeout and the journal mode of SQLite can be set with DB_BUSY_TIMEOUT and DB_JOURNAL_MODE
    (#116).
  • User guide: the new Backup and restore page explains what to back up (database, .env, uploaded files and
    keys of the AI assistants), how and how often, with or without shell access, and how to restore a backup
    (#119).

Changed

  • The table prefix (DB_PREFIX) now applies to every database (MariaDB, PostgreSQL, SQLite and SQL Server too), not
    only to MySQL (#107).
  • Users: the Access enabled? filter of the list is now Access, with the options With access and
    Virtual, and the new Email verified and Two-factor authentication filters show the users who have (or
    have not) verified their email or set up two-factor authentication; each option shows how many users it matches
    (#94).
  • Users: on phones the list shows each user as a card, with picture, name, email and access plus the enabled
    columns; the role and whether the email has been verified are hidden by default, like the new two-factor
    authentication column, and access (now a key icon) can be hidden too, all from the columns button
    (#94).
  • Tables: on phones the other lists (territories, zones, assignments, campaigns, publications, requests, posters,
    storage locations, departments and their members, tags, roles and contacts) show each row as a card too, with its
    name and status at the top and the enabled columns below, instead of a table to scroll sideways; the totals stay
    below the list
    (#95).
  • Tables: more secondary columns can be hidden from the columns button, such as the publications of the
    subscribers, the tags of territories and zones, the campaign of the assignments and the email of the users; the
    creator of the campaigns and the guard and last update of the roles are now hidden by default
    (#96).
  • User guide: every page now matches what the app does, e.g. the import columns, the deletion rules of territories
    and zones, the map drawings that publishers don't see, return requests, the sidebar, notifications, two-factor setup
    and the settings reserved to super administrators.
  • Welcome page: lists notifications, publications and public witnessing among the features, and no longer mentions
    teams, which the app doesn't have.
  • Shared assignment page: no sidebar any more, the assignment dates are shown in the language of the page and in
    the timezone of the congregation, and each section has its own description. The page of an assignment in the app
    shows the start and end dates the same way, and the same section descriptions
    (#86).
  • Assignments: End Assignment returns a territory from the rows of the assignments in progress (also in the
    assignment history of a territory, a user or a campaign) and from the top of the page of an assignment, instead of
    editing its end date. On the rows, Edit, Delete, Force delete and Restore move to the ⋮ menu.
    Deleting an assignment now explains that it leaves the history and the statistics of the territory, and that
    permanently deleting it cannot be undone (#110).

Removed

  • The teams inherited from the Jetstream starter kit, which the app never used: the database update drops their empty
    tables (teams, team_user, team_invitations) and the current_team_id column of the users.

Fixed

  • Assignments: the assignments of a campaign no longer fail to open while some are in progress, nor do the other
    lists of assignments with the campaign column hidden
    (#114).
  • AI assistants: the connectors (e.g. in Claude) show the icon of the app, which the site lacked as favicon.ico
    (#115).
  • Roles: every permission that the policies check (e.g. those of posters, publications, requests, storage
    locations and tags) is now created on installation and on every update, and the role editor offers only the
    permissions of the actions each resource has (e.g. no more Replicate or Restore where nothing can be
    replicated or restored); the activity and mail logs, which only the super administrators read, have no permissions
    any more. The permissions no longer offered stay on the roles that had them, but they allow nothing
    (#111).
  • Users: there is always a super administrator who can log in: the last one can no longer lose its access or its
    super_admin role, nor be deleted (from the list, its page or its profile), and the super_admin role can no
    longer be deleted, renamed or moved to another guard. In production, the profile of the root user no longer offers
    to delete the account, which always failed (#113).
  • Migrations: the settings migrations can be rolled back, so that running the migrations again after a
    migrate:rollback no longer fails because a setting already exists
    (#119).
  • scripts/remote_artisan.sh runs on macOS too (#!/usr/bin/env bash)
    (#119).
  • Territory maps: the lines drawn on the map of a territory (e.g. a street to work) are now shown on the assignment
    page, on the shared page and on the dashboard, as are the areas split in two with Cut Layers; they were shown
    only on the territory's own map. The Draw Text tool is removed.
  • Territories: Assign Massively and End Assignments tell how many territories were assigned or returned
    and which were skipped, and why (already assigned, not assigned, not allowed or refused); they were skipped
    silently.
  • Tags: deleting a tag asks for a confirmation that says how many territories and zones use it, since it is
    removed from all of them; it was removed silently, while the guide said that a tag in use could not be deleted.
  • Roles: no longer have a Pages tab, whose permissions did nothing: the profile is open to everyone, the
    settings and the application logs only to the super administrators.
  • Users: Impersonate on the page of a user asks for a confirmation, as it already did from the list, instead
    of signing in as the user right away.
  • Users: a user who has assignments can no longer be deleted, from their page, the bulk action or their profile:
    it permanently deleted the history of every territory they had (dates, coverage, campaigns) and freed their
    territories in progress. The delete modal explains why and offers to disable their access instead, making them a
    virtual user (#93).
  • Accessibility: territory images have the territory name as alternative text, and the "— or —" separator of the
    image field is hidden from screen readers (#78).
  • Translated the texts still in English: the image fields of territories, the API Tokens menu item and the Italian
    mail log; the contacts of a user have a singular label ("Crea Contatto", not "Crea Informazioni Di Contatto")
    (#85).
  • The territories of a zone, the assignment history of a territory and the assignments of a user have translated
    titles, breadcrumbs and columns, and users' pages show their name in the breadcrumbs
    (#83).
  • Assignments: the start time of a new assignment uses the app's timezone instead of the database clock, so a
    territory returned soon after being assigned no longer ends before it started; from the AI assistant, a territory
    assigned today starts now instead of at midnight
    (#75).
  • New assignments, territories and zones remember the user who created them: the Create forms left their creator
    empty (#82).
  • Assignments: the dates in the table, on the assignment page and in its banners follow the user's language
    instead of a fixed dd/mm/yyyy format, and the start and end dates are no longer shown raw
    (#90).
  • Territories: the counts in the zone and campaign group headers now match the rows below them: they follow the
    filters and the search, no longer count returned assignments, and include under "No campaign" the territories
    assigned outside a campaign (#87).
  • Campaigns: the slices of the assignment status chart have different colours (gray, amber and green), so "To be
    assigned", "In progress" and "Completed" can be told apart
    (#89).
  • Migrations: splitting the full name of the users keeps it in the first and last name, rolling it back joins
    them again, a failed creation of the app tables no longer drops them, the two-factor column is added only when
    missing and the mail log table can be rolled back
    (#84).
  • Contacts: setting a contact as primary from the user's page in the admin panel now replaces the previous primary
    contact, as in the profile, instead of leaving the user with several
    (#76).
  • Zone territories: creating or editing a territory with an uploaded image from a zone's Territories tab no
    longer fails, and the image is saved. A territory with an uploaded image can be edited again without the image being
    rejected as an invalid URL (#73).
  • Campaigns: the assignment status chart counts each territory once, so "To be assigned" no longer goes negative
    and the slices add up to the number of territories; the chart and the completion percentage leave out deleted
    territories, so the completion no longer goes over 100%
    (#77).
  • Notifications: recording an assignment that is already returned no longer notifies it as assigned, correcting the
    date of a return no longer notifies it again, and virtual users no longer receive assignment or return request
    notifications (#74).
  • Territories: the page of a territory, its edit page and its form in the Territories tab of a zone open on
    the Map tab when the territory has a map and on the Image tab when it has only an image. The edit page and
    the form opened on the other tab, and the page of a territory with both a map and an image opened on the Image
    tab (#108).
  • AI assistants: the deployments of the environments that keep their database (e.g. TEST) keep the keys signing
    the tokens of the assistants, which were replaced on every deployment, disconnecting every assistant
    (#112).
  • The fake data (FakeDataSeeder, used by the PR previews) could fail to seed when an assignment picked a campaign that
    had already ended (#116).

Security

  • Dashboard: the statistics, the territory coverage and the territory map are shown only to who can view the
    territories (View Any on Territory). A user without it, e.g. with no role yet, sees a welcome message instead
    of every territory, zone and count. The roles no longer have a Widgets tab, whose permissions did nothing.
  • The public /guest address no longer shows a dashboard with the Filament version: it redirects to the welcome page
    (#79).
  • Opening Share on an assignment no longer publishes a link: it is created only with the new Create link
    button. Returned or deleted assignments can no longer be shared, and their leftover links stop working. An
    assignment has one link at most: the database update keeps only the oldest link of each one, deleting the others
    (#72).
  • The unused /api endpoints (/api/user, /api/assignees, /api/assignments, /api/territories, /api/zones)
    are removed: they returned whole user and assignment records
    (#81).
  • Every response now sends the X-Frame-Options, X-Content-Type-Options and Referrer-Policy headers, so other
    sites can no longer frame the app, and no longer reveals the PHP version in X-Powered-By
    (#88).
  • Passwords: in production they need at least 12 characters and must not appear in a known data leak, checked with
    Have I Been Pwned (Refuse compromised passwords in the Security settings, by default PASSWORD_LEAK_CHECK: on in
    production only), wherever they are chosen: invitation, password reset, profile, and och:install and
    och:recover-root, including INITIAL_ROOT_PASSWORD
    (#80).
  • Updated the libraries used for passkeys, CSV imports and exports, emails, HTML sanitizing and URL generation, which
    had known vulnerabilities (e.g. forged passkey attestations, memory exhaustion while reading a crafted CSV file, a
    man in the middle bypassing the TLS required to send emails, and generated URLs pointing to another host).
  • Login: at most 10 attempts to sign in with the same email (whatever its case or accents) are allowed every 15
    minutes, whatever the device or network they come from, and a successful login starts over: changing the IP address
    on each attempt no longer allows guessing a password, or a two-factor code, indefinitely. Whoever knows an email can
    still block the sign-in with it for up to 15 minutes at a time. The new TRUSTED_PROXIES setting lists the addresses
    of the proxies in front of the app (by default *, any address, as Altervista needs): set it to the address of your
    proxy, or leave it empty if there is none, so that visitors can no longer pass themselves off as another IP address.
  • Users: outside of the production environment, the other users, super administrators included, can no longer
    edit the root user by opening its edit page from the address bar (e.g. /app/users/1/edit): only the root user can
    edit itself, as its disabled Edit button already said.