@aastrika/ai-elements 0.5.0 → 0.6.1

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
@@ -6,6 +6,75 @@ see at a glance what to expect when they upgrade.
6
6
  Versions follow semver: a **minor** adds something, a **patch** fixes something,
7
7
  and neither removes anything a host was using.
8
8
 
9
+ ## 0.6.1
10
+
11
+ **Fixed**
12
+ - The usage report showed one person's figures instead of the whole
13
+ organisation's — and nothing at all when the signed-in name did not match the
14
+ name recorded on their content. Every request body was given the signed-in
15
+ `creator`, including the report, where that field means "filter to this
16
+ person" rather than "this is who I am". The report is no longer given one; the
17
+ dashboard's own picker still filters as before
18
+
19
+ **Added**
20
+ - `creatorName` in `configure()` — the signed-in person's display name, shown in
21
+ the report while `creator` stays what it groups by. A host can now use a
22
+ stable handle as `creator` and let people rename themselves without splitting
23
+ their history across two creators. Optional: omit it and the report shows
24
+ `creator`, exactly as today
25
+
26
+ Needs the service to be on a build that stores `creator_name`; on an older one
27
+ the field is ignored and nothing changes.
28
+
29
+ ## 0.6.0
30
+
31
+ Adds behaviour rather than API: the tags, attributes and events are exactly
32
+ those of 0.5.0, so a host upgrades without touching a line. What changed is what
33
+ the elements do while someone is using them.
34
+
35
+ **Added**
36
+ - A run survives leaving the screen. The work already happened server-side; the
37
+ job id is now remembered, so coming back to Content Studio or Assessment picks
38
+ the run up again instead of showing an empty form beside a job that is still
39
+ producing
40
+ - Drop a file on the Content Studio upload zone. It said "choose a file" and
41
+ accepted nothing else; it now takes a drop, and says so
42
+ - Steps you have finished collapse to one line naming what you chose, with a way
43
+ back in that reopens the step as it stands. Five open forms made you hunt for
44
+ the one you were on
45
+ - Reports opens with a shimmer skeleton shaped like the page it is loading,
46
+ rather than the word "Loading"
47
+ - Reports pages its tables, ten rows at a time, and switches between videos and
48
+ assessments with a filter instead of stacking both
49
+ - `--aastrika-accent-2` and `--aastrika-accent-3` name the second and third
50
+ hues. A spend split drawn in one hue at two darknesses reads as one bar; two
51
+ hues read as a comparison
52
+
53
+ **Changed**
54
+ - Reports is one screen rather than four stacked tables: the figures carry their
55
+ own context, spend carries its own breakdown, and picking a person is a
56
+ control in the header rather than a table whose job was to be clicked
57
+ - A column appears only when it has something to say — an empty "Feedback
58
+ rounds" column took width from the titles, which need it
59
+ - "Production" is now "Creating your video", and "Your video" is "Finished
60
+ video"
61
+
62
+ **Fixed**
63
+ - A focused field drew two borders. `:focus` and `:focus-visible` both applied,
64
+ because a text field matches `:focus-visible` on a plain click
65
+ - Resting the cursor on the field you just clicked reset its edge to grey:
66
+ `:hover` outranked `:focus`
67
+ - The actions column in Reports collapsed to nothing. `width: 1%` is taken
68
+ literally under `table-layout: fixed`, so View, Export and Delete were clipped
69
+ out of sight; the buttons also sat above their row's centre line
70
+ - The confirmation dialog's buttons were unstyled — a bare red rectangle and a
71
+ line of plain text — because that component never had the shared stylesheet
72
+ in scope
73
+ - Content Studio's progress panel had no styling at all: it lived in
74
+ Assessment's stylesheet while both screens used it
75
+ - Colour fallbacks carried the palette from before 0.4.2, so a token that failed
76
+ to resolve would have rendered in a dead colour scheme
77
+
9
78
  ## 0.5.0
10
79
 
11
80
  A visual pass over all three elements. Nothing a host calls has changed — same
@@ -43,8 +43,20 @@ export interface AastrikaConfig {
43
43
  apiBase: string;
44
44
  /** Headers proving the caller may use the service. Called before every request. */
45
45
  getAuthHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
46
- /** The username signed into YOUR application. Attribution, never verified. */
46
+ /**
47
+ * A STABLE key for whoever is signed into YOUR application — a login handle
48
+ * or an id, never a display name. The usage report groups and filters by it,
49
+ * so renaming somebody must not change it. Attribution, never verified.
50
+ */
47
51
  creator?: () => string | null;
52
+ /**
53
+ * The same person's display name, e.g. "Prince Gupta". Shown in the usage
54
+ * report; `creator` remains what it groups by, so people can rename
55
+ * themselves without splitting their history. Optional — omit it and the
56
+ * report shows `creator`, so send one whenever `creator` is an opaque id,
57
+ * or the report fills with UUIDs.
58
+ */
59
+ creatorName?: () => string | null;
48
60
  /** Called whenever a request fails, so your monitoring hears about it. */
49
61
  onError?: (error: AastrikaError) => void;
50
62
  }