@gaia-ai/addon-gaia-ui 0.17.0 → 0.17.2

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.
@@ -54,11 +54,6 @@ export declare const STATE_FILTER_VALUES: string[];
54
54
  export declare function hasActiveCriteria(criteria: TicketCriteria): boolean;
55
55
  /** Human-readable active-criteria summary, or '' when none. */
56
56
  export declare function describeCriteria(criteria: TicketCriteria): string;
57
- /**
58
- * Build the JSON:API query for a project's tickets under the given criteria.
59
- * project + state + closed + parent + who are AND filters at the top level; the
60
- * free-text search is one `filter[search]` the server resolves (GAIA-544).
61
- */
62
57
  /** How a caller narrows the shared builder (GAIA-292 D1/D8). */
63
58
  export interface TicketQueryOptions {
64
59
  /** Rows per page + which page. Defaults to the list's own `LIST_PAGE_SIZE`
@@ -74,6 +69,11 @@ export interface TicketQueryOptions {
74
69
  * buildUserTicketQueryParams so My work can narrow by project (GAIA-540). */
75
70
  projectFromCriteria?: boolean;
76
71
  }
72
+ /**
73
+ * Build the JSON:API query for a project's tickets under the given criteria.
74
+ * project + state + closed + parent + who are AND filters at the top level; the
75
+ * free-text search is one `filter[search]` the server looks up on the ticket index.
76
+ */
77
77
  export declare function buildTicketQueryParams(projectId: string, criteria: TicketCriteria, options?: TicketQueryOptions): DrupalJsonApiParams;
78
78
  /**
79
79
  * Build the JSON:API query for one assignee's tickets (GAIA-377 D2).
@@ -66,6 +66,11 @@ export function describeCriteria(criteria) {
66
66
  parts.push(`project:${criteria.project.label}`);
67
67
  return parts.join(' · ');
68
68
  }
69
+ /**
70
+ * Build the JSON:API query for a project's tickets under the given criteria.
71
+ * project + state + closed + parent + who are AND filters at the top level; the
72
+ * free-text search is one `filter[search]` the server looks up on the ticket index.
73
+ */
69
74
  export function buildTicketQueryParams(projectId, criteria, options = {}) {
70
75
  const params = new DrupalJsonApiParams();
71
76
  params.addFilter('project_id.id', projectId);
@@ -118,10 +123,8 @@ export function buildConductorTicketQueryParams(conductorId, page = { size: PAGE
118
123
  return params;
119
124
  }
120
125
  function applyTicketCriteria(params, criteria, options) {
121
- // The typed line goes to the server verbatim (GAIA-544): it resolves
122
- // `#19`, `gaia#19` and origin URLs to their tickets, and turns anything else
123
- // into the identifier OR title CONTAINS match this used to build. The grammar
124
- // lives once, server-side, so the terminal and the web list cannot drift.
126
+ // The typed line goes to the server verbatim. The collection looks it up in
127
+ // the same ticket index the web list uses and filters by the matching ids.
125
128
  if (criteria.query)
126
129
  params.addFilter('search', criteria.query);
127
130
  if (criteria.state)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaia-ai/addon-gaia-ui",
3
- "version": "0.17.0",
3
+ "version": "0.17.2",
4
4
  "description": "GAIA TUI: interactive terminal UI (dashboard, projects, tickets) as a dropsh `tui` renderer plugin.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -29,6 +29,6 @@
29
29
  "zustand": "^5.0.15"
30
30
  },
31
31
  "peerDependencies": {
32
- "@gaia-ai/core": "^0.17.0"
32
+ "@gaia-ai/core": "^0.17.2"
33
33
  }
34
34
  }