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

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,47 @@ 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.8 - 2026-11-21
13
+
14
+ ### Added
15
+
16
+ - `IdentityApiClient.getDeclaredSettings(host?)`: the person's settings as declared, each key with the value in force and
17
+ the person's own (null when they set none), so a reader can tell a chosen value from the installation's.
18
+
19
+ ## 2.0.0-alpha.7 - 2026-11-17
20
+
12
21
  ### Changed
13
22
 
23
+ - **A failure says the server's words only when the server declared the problem.** `ErrorHandlerService.humanize()`
24
+ now follows the components contract's rule: a problem with a declared type (anything but `about:blank` or a
25
+ framework's own `/errors/5NN`) says its `detail` as given, whatever the status, or "Not available right now" when it
26
+ gives none; a validation refusal (422 with `violations`) says its first field message; anything else, an undeclared
27
+ problem, a network failure or a thrown error, says "Something went wrong. Try again." It no longer words a status
28
+ ("Resource not found.", "Session expired. Please sign in again." and the others are gone) and no longer reads
29
+ `hydra:description` or `message`. A caller that showed those sentences now shows the server's or the generic one.
30
+ - **Interface preferences are saved one entry at a time.** `UserPreferencesService` sends each changed entry with all
31
+ of its fields, as the server now keeps them, and reads the server's 422 (`/errors/identity/preferences-refused`)
32
+ for an entry it cannot store. A save that failed for any other reason (offline, a 5xx, a timeout) is sent again,
33
+ instead of waiting for the next change.
34
+
35
+ - **Only a refusal of entry signs out.** The server answers a token sent to the other interface with 403
36
+ `/errors/identity/wrong-interface` (`WRONG_INTERFACE`), and keeps `/errors/identity/audience-not-granted` for an
37
+ account that may no longer enter. `ConsoleAccessService` read every 403 on the admin manifest as a refusal, and the
38
+ guard signed the person out; now only `audience-not-granted` is `refused` (`audience-required` still asks for a new
39
+ sign-in), and a token for the other interface, or any other 403, is no answer: not kept, nobody signed out. The
40
+ start-up session check (`AppInitService`) no longer refreshes and ends a session on such a 403 either:
41
+ `sessionEndsOn(error)` says which refusals may. An older server's bare 403 at the legacy manifest address is no
42
+ longer a refusal.
43
+
44
+ - **The theme and the accent are read from the person's `appearance` settings.** `ThemeService` reads
45
+ `appearance.theme` and `appearance.accentColor` from `GET /auth/me/settings`, the section the server declares for
46
+ them; it no longer reads them from `preferences`.
47
+ - **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.
48
+ - **`cms-loader` turns the state component's spinner** (design-tokens' `--cms-spinner-*`, each with its value as the
49
+ fallback) in place of the drawn exclamation mark, so every wait shows the one spinner `cms-state` turns. Its inputs
50
+ (`label`, `inline`, `overlay`) and `--cms-loader-size` are unchanged; under reduced motion it breathes. A spec now
51
+ covers it.
52
+
14
53
  - **A person's refused write opens the elevation prompt, and is sent again
15
54
  once they elevate.** A write refused for want of elevation (a stamped 403)
16
55
  holds the request and opens the prompt above whatever the person is in. An
@@ -21,6 +60,28 @@ predate this file would be a worse record than not having them.
21
60
  passes no prompt a second time. Reads and background requests still open
22
61
  nothing.
23
62
 
63
+ ### Added
64
+
65
+ - **The shared rule for a failure's words**, exported from `errors/problem-words`: `refusalWords(error)`,
66
+ `declaredProblemOf`, `declaredTypeOf`, `problemOf`, `isRefusal`, `sentenceOf`, and the two sentences
67
+ `SOMETHING_WENT_WRONG` and `NOT_AVAILABLE`, so a host reads the rule from one place. The elevation service names the
68
+ refusal types a prompt acts on: `ELEVATION_CODE_REQUIRED_TYPE` and `ELEVATION_RETRY_TYPES`.
69
+ - **`ApiManifest.modules`**: the modules' own blocks of the manifest, by module name, each a record the client reads
70
+ by the keys it knows; `{}` when no module has a block.
71
+ - **A sign-in can name its application's audience.** `AUTH_AUDIENCE` (default `null`) is the application a sign-in is
72
+ for, typed `AuthAudience` (`'admin' | 'workspace'`); when provided, `IdentityApiClient.login()` sends it as
73
+ `audience`. The admin reads the two refusals of entry by audience, `/errors/identity/audience-not-granted` and
74
+ `/errors/identity/audience-required`.
75
+ - **The identity manifest names the signed-in sessions' addresses.**
76
+ `sessionsUrl` lists the live sign-ins; `sessionUrl` (`{sessionId}`) ends
77
+ one; `userSessionsUrl` (`{id}`) ends every sign-in of one account. All
78
+ three are optional: a server that does not send them has no sessions page.
79
+
80
+ ### Fixed
81
+
82
+ - **The store needs no `'unsafe-eval'`.** `provideConsole` sets up NGXS with `strictContentSecurityPolicy`, so a
83
+ selector's path is read with its plain getter, not one built with `new Function`.
84
+
24
85
  ## 2.0.0-alpha.6 - 2026-10-22
25
86
 
26
87
  ### 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