@coolms/core-angular 2.0.0-alpha.6 → 2.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,8 +9,40 @@ currently serves. Earlier alphas are deliberately not reconstructed: entries are
9
9
  in the same commit as the work they describe, and inventing the ones that
10
10
  predate this file would be a worse record than not having them.
11
11
 
12
+ ## 2.0.0-alpha.7 - 2026-11-17
13
+
12
14
  ### Changed
13
15
 
16
+ - **A failure says the server's words only when the server declared the problem.** `ErrorHandlerService.humanize()`
17
+ now follows the components contract's rule: a problem with a declared type (anything but `about:blank` or a
18
+ framework's own `/errors/5NN`) says its `detail` as given, whatever the status, or "Not available right now" when it
19
+ gives none; a validation refusal (422 with `violations`) says its first field message; anything else, an undeclared
20
+ problem, a network failure or a thrown error, says "Something went wrong. Try again." It no longer words a status
21
+ ("Resource not found.", "Session expired. Please sign in again." and the others are gone) and no longer reads
22
+ `hydra:description` or `message`. A caller that showed those sentences now shows the server's or the generic one.
23
+ - **Interface preferences are saved one entry at a time.** `UserPreferencesService` sends each changed entry with all
24
+ of its fields, as the server now keeps them, and reads the server's 422 (`/errors/identity/preferences-refused`)
25
+ for an entry it cannot store. A save that failed for any other reason (offline, a 5xx, a timeout) is sent again,
26
+ instead of waiting for the next change.
27
+
28
+ - **Only a refusal of entry signs out.** The server answers a token sent to the other interface with 403
29
+ `/errors/identity/wrong-interface` (`WRONG_INTERFACE`), and keeps `/errors/identity/audience-not-granted` for an
30
+ account that may no longer enter. `ConsoleAccessService` read every 403 on the admin manifest as a refusal, and the
31
+ guard signed the person out; now only `audience-not-granted` is `refused` (`audience-required` still asks for a new
32
+ sign-in), and a token for the other interface, or any other 403, is no answer: not kept, nobody signed out. The
33
+ start-up session check (`AppInitService`) no longer refreshes and ends a session on such a 403 either:
34
+ `sessionEndsOn(error)` says which refusals may. An older server's bare 403 at the legacy manifest address is no
35
+ longer a refusal.
36
+
37
+ - **The theme and the accent are read from the person's `appearance` settings.** `ThemeService` reads
38
+ `appearance.theme` and `appearance.accentColor` from `GET /auth/me/settings`, the section the server declares for
39
+ them; it no longer reads them from `preferences`.
40
+ - **One settings read for the callers that ask together.** `IdentityApiClient.getSettings()` shares a read in flight with every caller that asks meanwhile: the services reading their own section of the person's settings at start-up (calendar, calls) made one request each. A call after the read has answered reads again, and a failed read is not kept.
41
+ - **`cms-loader` turns the state component's spinner** (design-tokens' `--cms-spinner-*`, each with its value as the
42
+ fallback) in place of the drawn exclamation mark, so every wait shows the one spinner `cms-state` turns. Its inputs
43
+ (`label`, `inline`, `overlay`) and `--cms-loader-size` are unchanged; under reduced motion it breathes. A spec now
44
+ covers it.
45
+
14
46
  - **A person's refused write opens the elevation prompt, and is sent again
15
47
  once they elevate.** A write refused for want of elevation (a stamped 403)
16
48
  holds the request and opens the prompt above whatever the person is in. An
@@ -21,6 +53,28 @@ predate this file would be a worse record than not having them.
21
53
  passes no prompt a second time. Reads and background requests still open
22
54
  nothing.
23
55
 
56
+ ### Added
57
+
58
+ - **The shared rule for a failure's words**, exported from `errors/problem-words`: `refusalWords(error)`,
59
+ `declaredProblemOf`, `declaredTypeOf`, `problemOf`, `isRefusal`, `sentenceOf`, and the two sentences
60
+ `SOMETHING_WENT_WRONG` and `NOT_AVAILABLE`, so a host reads the rule from one place. The elevation service names the
61
+ refusal types a prompt acts on: `ELEVATION_CODE_REQUIRED_TYPE` and `ELEVATION_RETRY_TYPES`.
62
+ - **`ApiManifest.modules`**: the modules' own blocks of the manifest, by module name, each a record the client reads
63
+ by the keys it knows; `{}` when no module has a block.
64
+ - **A sign-in can name its application's audience.** `AUTH_AUDIENCE` (default `null`) is the application a sign-in is
65
+ for, typed `AuthAudience` (`'admin' | 'workspace'`); when provided, `IdentityApiClient.login()` sends it as
66
+ `audience`. The admin reads the two refusals of entry by audience, `/errors/identity/audience-not-granted` and
67
+ `/errors/identity/audience-required`.
68
+ - **The identity manifest names the signed-in sessions' addresses.**
69
+ `sessionsUrl` lists the live sign-ins; `sessionUrl` (`{sessionId}`) ends
70
+ one; `userSessionsUrl` (`{id}`) ends every sign-in of one account. All
71
+ three are optional: a server that does not send them has no sessions page.
72
+
73
+ ### Fixed
74
+
75
+ - **The store needs no `'unsafe-eval'`.** `provideConsole` sets up NGXS with `strictContentSecurityPolicy`, so a
76
+ selector's path is read with its plain getter, not one built with `new Function`.
77
+
24
78
  ## 2.0.0-alpha.6 - 2026-10-22
25
79
 
26
80
  ### Changed
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Dmitry Popov / CoolMS contributors
3
+ Copyright (c) 2026 Dmitry Popov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal