@botbuddy/react 0.24.0 → 0.27.0

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
@@ -1,5 +1,29 @@
1
1
  # @botbuddy/react — Changelog
2
2
 
3
+ ## 0.27.0
4
+
5
+ ### Added
6
+
7
+ - **Merge time, project and a time window on the team's feed (BOT-3724).**
8
+ `ReleaseNoteEntry` gains `merged_at` (UTC ISO, null until every pull request
9
+ merged) and `project` (`ReleaseNoteProject`: `id`, `name`,
10
+ `percent_complete`, else null). The feed accepts `?since=1h|24h|7d|30d|90d|all`
11
+ (`ReleaseNotesSince`), applied on the server before the 200-note limit and
12
+ keyed on `released_at`, else `delivery_since`, else `merged_at`; `filters`
13
+ gains Project, whose values are project ids (`?tag=project:<id>`). The
14
+ customers' feed carries none of these.
15
+
16
+ ## 0.26.0
17
+
18
+ ### Added
19
+
20
+ - **`ReleaseNoteEntry.feature_flag` (BOT-3763).** The team's feed now names the
21
+ feature flag a note's change is behind: `{ name, toggle, toggle_url }`
22
+ (`ReleaseNoteFeatureFlag`), else `null`. `toggle_url` is the toggle as a full
23
+ link (https as written, or an app path on the tenant's one production
24
+ origin), else `null`: show `toggle` as text. The customers' feed never
25
+ carries it.
26
+
3
27
  ## 0.24.0
4
28
 
5
29
  ### Added
package/dist/index.d.cts CHANGED
@@ -149,6 +149,16 @@ interface ReleaseNoteFilter {
149
149
  label: string;
150
150
  values: string[];
151
151
  }
152
+ /** BOT-3724: a note's Linear project (the team's feed only; never customers'). */
153
+ interface ReleaseNoteProject {
154
+ /** The project's identifier, e.g. "P-ENT-98"; also the Project filter's value (`?tag=project:<id>`). */
155
+ id: string;
156
+ name: string | null;
157
+ /** 0–100 as of the read, else null. */
158
+ percent_complete: number | null;
159
+ }
160
+ /** BOT-3724: the feed's optional `?since=` window (`all`, or no parameter, is the whole feed). It keys on the latest delivery time: released_at, else delivery_since, else merged_at. */
161
+ type ReleaseNotesSince = "1h" | "24h" | "7d" | "30d" | "90d" | "all";
152
162
  /** BOT-3169: `draft_on_your_branch` (local) and `in_this_preview` (preview) mark the viewer's own branch drafts. BOT-3167: `in_staging`. BOT-3168: `released`. BOT-3428: `rolled_back` (production moved back past the change). */
153
163
  type ReleaseNoteDeliveryBadge = "not_bound" | "draft_on_branch" | "draft_on_pr" | "merged" | "draft_on_your_branch" | "in_this_preview" | "in_staging" | "released" | "rolled_back";
154
164
  /** BOT-3635: the "Try it" part of a pack: where to find the change (an app path or https URL, plus its screen name), what to do, and what to look for. */
@@ -202,9 +212,26 @@ interface ReleaseNoteEntry {
202
212
  released_at?: string | null;
203
213
  /** BOT-3635: the note's pack as the CEO reads it, else null. Absent from older servers. */
204
214
  pack?: ReleaseNotePackView | null;
215
+ /** BOT-3763: the team's feed only: the feature flag that gates the change, else null. Never sent to customers. Absent from older servers. */
216
+ feature_flag?: ReleaseNoteFeatureFlag | null;
217
+ /** BOT-3724: when the note's change merged (UTC ISO; the latest merge of several pull requests), null until every live pull request merged. Absent from older servers. */
218
+ merged_at?: string | null;
219
+ /** BOT-3724: the Linear project of the note's ticket, with % complete as of the read, else null. Absent from older servers. */
220
+ project?: ReleaseNoteProject | null;
205
221
  created_at: string;
206
222
  updated_at: string;
207
223
  }
224
+ /**
225
+ * BOT-3763: the feature flag a note's change is behind (internal only).
226
+ * `toggle` is an app path or https URL as submitted; `toggle_url` is it as a
227
+ * full link (https as-is, an app path on the tenant's one production origin),
228
+ * else null — show `toggle` as text.
229
+ */
230
+ interface ReleaseNoteFeatureFlag {
231
+ name: string;
232
+ toggle: string | null;
233
+ toggle_url: string | null;
234
+ }
208
235
  /**
209
236
  * BOT-3163: one note as your customers see it (a viewer token with aud
210
237
  * external): only its external wording and external links. It has no source
@@ -673,4 +700,4 @@ declare function useReleaseNoteAnnouncements({ feed, viewer }: UseReleaseNoteAnn
673
700
 
674
701
  declare const RELEASE_NOTES_TOKENS: readonly ReleaseNotesToken[];
675
702
 
676
- export { type BotBuddyConfig, type FindItLink, type FindItLinkOptions, MissingReleaseNotes, type MissingReleaseNotesProps, NOTHING_CUSTOMER_FACING, RELEASE_NOTES_TOKENS, RELEASE_RANGE_UNAVAILABLE, RELEASE_SECTION_TITLES, ReleaseFacts, type ReleaseFactsProps, ReleaseHeader, type ReleaseHeaderProps, type ReleaseNoteAnnouncement, type ReleaseNoteAnnouncementEntry, type ReleaseNoteAnnouncementMode, type ReleaseNoteAnnouncementsFeed, type ReleaseNoteBlock, ReleaseNoteBody, type ReleaseNoteBody$1 as ReleaseNoteBodyData, ReleaseNoteCard, type ReleaseNoteCardProps, type ReleaseNoteEntry, type ReleaseNoteExternalEntry, type ReleaseNoteFilter, type ReleaseNoteInline, type ReleaseNoteLink, type ReleaseNoteLinkProps, ReleaseNotePack, type ReleaseNotePackProps, type ReleaseNotePackTour, type ReleaseNotePackView, type ReleaseNoteTag, ReleaseNotes, ReleaseNotesAnnouncement, type ReleaseNotesAnnouncementProps, ReleaseNotesBadge, type ReleaseNotesBadgeProps, type ReleaseNotesClassNames, type ReleaseNotesComponents, type ReleaseNotesFeed, type ReleaseNotesProps, type ReleaseNotesSlot, type ReleaseNotesTheme, type ReleaseNotesToken, ReleaseSection, type ReleaseSectionProps, ReleaseView, type ReleaseViewFacts, type ReleaseViewProps, type ReleaseViewPullRequest, type ReleaseViewSections, type TestCase, type TestRun, type TestRunSummary, TestRunWidget, type TestRunWidgetProps, type UseReleaseNoteAnnouncementsOptions, type UseReleaseNoteAnnouncementsState, type UseReleaseNotesOptions, type UseReleaseNotesState, type Verdict, type WidgetMode, type WidgetState, findItLink, isCustomerFacing, missingNoteDraft, releaseCommitUrl, releaseDeployedLine, releaseRunUrl, releaseSections, releaseSummary, releaseTime, safeHref, useDraggable, useRealtimeRefresh, useReleaseNoteAnnouncements, useReleaseNotes, useTestRun, useWidgetAuth };
703
+ export { type BotBuddyConfig, type FindItLink, type FindItLinkOptions, MissingReleaseNotes, type MissingReleaseNotesProps, NOTHING_CUSTOMER_FACING, RELEASE_NOTES_TOKENS, RELEASE_RANGE_UNAVAILABLE, RELEASE_SECTION_TITLES, ReleaseFacts, type ReleaseFactsProps, ReleaseHeader, type ReleaseHeaderProps, type ReleaseNoteAnnouncement, type ReleaseNoteAnnouncementEntry, type ReleaseNoteAnnouncementMode, type ReleaseNoteAnnouncementsFeed, type ReleaseNoteBlock, ReleaseNoteBody, type ReleaseNoteBody$1 as ReleaseNoteBodyData, ReleaseNoteCard, type ReleaseNoteCardProps, type ReleaseNoteEntry, type ReleaseNoteExternalEntry, type ReleaseNoteFeatureFlag, type ReleaseNoteFilter, type ReleaseNoteInline, type ReleaseNoteLink, type ReleaseNoteLinkProps, ReleaseNotePack, type ReleaseNotePackProps, type ReleaseNotePackTour, type ReleaseNotePackView, type ReleaseNoteProject, type ReleaseNoteTag, ReleaseNotes, ReleaseNotesAnnouncement, type ReleaseNotesAnnouncementProps, ReleaseNotesBadge, type ReleaseNotesBadgeProps, type ReleaseNotesClassNames, type ReleaseNotesComponents, type ReleaseNotesFeed, type ReleaseNotesProps, type ReleaseNotesSince, type ReleaseNotesSlot, type ReleaseNotesTheme, type ReleaseNotesToken, ReleaseSection, type ReleaseSectionProps, ReleaseView, type ReleaseViewFacts, type ReleaseViewProps, type ReleaseViewPullRequest, type ReleaseViewSections, type TestCase, type TestRun, type TestRunSummary, TestRunWidget, type TestRunWidgetProps, type UseReleaseNoteAnnouncementsOptions, type UseReleaseNoteAnnouncementsState, type UseReleaseNotesOptions, type UseReleaseNotesState, type Verdict, type WidgetMode, type WidgetState, findItLink, isCustomerFacing, missingNoteDraft, releaseCommitUrl, releaseDeployedLine, releaseRunUrl, releaseSections, releaseSummary, releaseTime, safeHref, useDraggable, useRealtimeRefresh, useReleaseNoteAnnouncements, useReleaseNotes, useTestRun, useWidgetAuth };
package/dist/index.d.ts CHANGED
@@ -149,6 +149,16 @@ interface ReleaseNoteFilter {
149
149
  label: string;
150
150
  values: string[];
151
151
  }
152
+ /** BOT-3724: a note's Linear project (the team's feed only; never customers'). */
153
+ interface ReleaseNoteProject {
154
+ /** The project's identifier, e.g. "P-ENT-98"; also the Project filter's value (`?tag=project:<id>`). */
155
+ id: string;
156
+ name: string | null;
157
+ /** 0–100 as of the read, else null. */
158
+ percent_complete: number | null;
159
+ }
160
+ /** BOT-3724: the feed's optional `?since=` window (`all`, or no parameter, is the whole feed). It keys on the latest delivery time: released_at, else delivery_since, else merged_at. */
161
+ type ReleaseNotesSince = "1h" | "24h" | "7d" | "30d" | "90d" | "all";
152
162
  /** BOT-3169: `draft_on_your_branch` (local) and `in_this_preview` (preview) mark the viewer's own branch drafts. BOT-3167: `in_staging`. BOT-3168: `released`. BOT-3428: `rolled_back` (production moved back past the change). */
153
163
  type ReleaseNoteDeliveryBadge = "not_bound" | "draft_on_branch" | "draft_on_pr" | "merged" | "draft_on_your_branch" | "in_this_preview" | "in_staging" | "released" | "rolled_back";
154
164
  /** BOT-3635: the "Try it" part of a pack: where to find the change (an app path or https URL, plus its screen name), what to do, and what to look for. */
@@ -202,9 +212,26 @@ interface ReleaseNoteEntry {
202
212
  released_at?: string | null;
203
213
  /** BOT-3635: the note's pack as the CEO reads it, else null. Absent from older servers. */
204
214
  pack?: ReleaseNotePackView | null;
215
+ /** BOT-3763: the team's feed only: the feature flag that gates the change, else null. Never sent to customers. Absent from older servers. */
216
+ feature_flag?: ReleaseNoteFeatureFlag | null;
217
+ /** BOT-3724: when the note's change merged (UTC ISO; the latest merge of several pull requests), null until every live pull request merged. Absent from older servers. */
218
+ merged_at?: string | null;
219
+ /** BOT-3724: the Linear project of the note's ticket, with % complete as of the read, else null. Absent from older servers. */
220
+ project?: ReleaseNoteProject | null;
205
221
  created_at: string;
206
222
  updated_at: string;
207
223
  }
224
+ /**
225
+ * BOT-3763: the feature flag a note's change is behind (internal only).
226
+ * `toggle` is an app path or https URL as submitted; `toggle_url` is it as a
227
+ * full link (https as-is, an app path on the tenant's one production origin),
228
+ * else null — show `toggle` as text.
229
+ */
230
+ interface ReleaseNoteFeatureFlag {
231
+ name: string;
232
+ toggle: string | null;
233
+ toggle_url: string | null;
234
+ }
208
235
  /**
209
236
  * BOT-3163: one note as your customers see it (a viewer token with aud
210
237
  * external): only its external wording and external links. It has no source
@@ -673,4 +700,4 @@ declare function useReleaseNoteAnnouncements({ feed, viewer }: UseReleaseNoteAnn
673
700
 
674
701
  declare const RELEASE_NOTES_TOKENS: readonly ReleaseNotesToken[];
675
702
 
676
- export { type BotBuddyConfig, type FindItLink, type FindItLinkOptions, MissingReleaseNotes, type MissingReleaseNotesProps, NOTHING_CUSTOMER_FACING, RELEASE_NOTES_TOKENS, RELEASE_RANGE_UNAVAILABLE, RELEASE_SECTION_TITLES, ReleaseFacts, type ReleaseFactsProps, ReleaseHeader, type ReleaseHeaderProps, type ReleaseNoteAnnouncement, type ReleaseNoteAnnouncementEntry, type ReleaseNoteAnnouncementMode, type ReleaseNoteAnnouncementsFeed, type ReleaseNoteBlock, ReleaseNoteBody, type ReleaseNoteBody$1 as ReleaseNoteBodyData, ReleaseNoteCard, type ReleaseNoteCardProps, type ReleaseNoteEntry, type ReleaseNoteExternalEntry, type ReleaseNoteFilter, type ReleaseNoteInline, type ReleaseNoteLink, type ReleaseNoteLinkProps, ReleaseNotePack, type ReleaseNotePackProps, type ReleaseNotePackTour, type ReleaseNotePackView, type ReleaseNoteTag, ReleaseNotes, ReleaseNotesAnnouncement, type ReleaseNotesAnnouncementProps, ReleaseNotesBadge, type ReleaseNotesBadgeProps, type ReleaseNotesClassNames, type ReleaseNotesComponents, type ReleaseNotesFeed, type ReleaseNotesProps, type ReleaseNotesSlot, type ReleaseNotesTheme, type ReleaseNotesToken, ReleaseSection, type ReleaseSectionProps, ReleaseView, type ReleaseViewFacts, type ReleaseViewProps, type ReleaseViewPullRequest, type ReleaseViewSections, type TestCase, type TestRun, type TestRunSummary, TestRunWidget, type TestRunWidgetProps, type UseReleaseNoteAnnouncementsOptions, type UseReleaseNoteAnnouncementsState, type UseReleaseNotesOptions, type UseReleaseNotesState, type Verdict, type WidgetMode, type WidgetState, findItLink, isCustomerFacing, missingNoteDraft, releaseCommitUrl, releaseDeployedLine, releaseRunUrl, releaseSections, releaseSummary, releaseTime, safeHref, useDraggable, useRealtimeRefresh, useReleaseNoteAnnouncements, useReleaseNotes, useTestRun, useWidgetAuth };
703
+ export { type BotBuddyConfig, type FindItLink, type FindItLinkOptions, MissingReleaseNotes, type MissingReleaseNotesProps, NOTHING_CUSTOMER_FACING, RELEASE_NOTES_TOKENS, RELEASE_RANGE_UNAVAILABLE, RELEASE_SECTION_TITLES, ReleaseFacts, type ReleaseFactsProps, ReleaseHeader, type ReleaseHeaderProps, type ReleaseNoteAnnouncement, type ReleaseNoteAnnouncementEntry, type ReleaseNoteAnnouncementMode, type ReleaseNoteAnnouncementsFeed, type ReleaseNoteBlock, ReleaseNoteBody, type ReleaseNoteBody$1 as ReleaseNoteBodyData, ReleaseNoteCard, type ReleaseNoteCardProps, type ReleaseNoteEntry, type ReleaseNoteExternalEntry, type ReleaseNoteFeatureFlag, type ReleaseNoteFilter, type ReleaseNoteInline, type ReleaseNoteLink, type ReleaseNoteLinkProps, ReleaseNotePack, type ReleaseNotePackProps, type ReleaseNotePackTour, type ReleaseNotePackView, type ReleaseNoteProject, type ReleaseNoteTag, ReleaseNotes, ReleaseNotesAnnouncement, type ReleaseNotesAnnouncementProps, ReleaseNotesBadge, type ReleaseNotesBadgeProps, type ReleaseNotesClassNames, type ReleaseNotesComponents, type ReleaseNotesFeed, type ReleaseNotesProps, type ReleaseNotesSince, type ReleaseNotesSlot, type ReleaseNotesTheme, type ReleaseNotesToken, ReleaseSection, type ReleaseSectionProps, ReleaseView, type ReleaseViewFacts, type ReleaseViewProps, type ReleaseViewPullRequest, type ReleaseViewSections, type TestCase, type TestRun, type TestRunSummary, TestRunWidget, type TestRunWidgetProps, type UseReleaseNoteAnnouncementsOptions, type UseReleaseNoteAnnouncementsState, type UseReleaseNotesOptions, type UseReleaseNotesState, type Verdict, type WidgetMode, type WidgetState, findItLink, isCustomerFacing, missingNoteDraft, releaseCommitUrl, releaseDeployedLine, releaseRunUrl, releaseSections, releaseSummary, releaseTime, safeHref, useDraggable, useRealtimeRefresh, useReleaseNoteAnnouncements, useReleaseNotes, useTestRun, useWidgetAuth };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbuddy/react",
3
- "version": "0.24.0",
3
+ "version": "0.27.0",
4
4
  "description": "BotBuddy test coordination widgets for React — draggable, translucent overlays for human-in-the-loop QA",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",