@starlove/orbit 1.3.5 → 1.4.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.
Files changed (129) hide show
  1. package/Dockerfile +2 -1
  2. package/README.md +10 -9
  3. package/SKILL-ORBIT.md +41 -17
  4. package/dist/full/fonts/Chakra_Petch/ChakraPetch-Bold.ttf +0 -0
  5. package/dist/full/fonts/Chakra_Petch/ChakraPetch-BoldItalic.ttf +0 -0
  6. package/dist/full/fonts/Chakra_Petch/ChakraPetch-Italic.ttf +0 -0
  7. package/dist/full/fonts/Chakra_Petch/ChakraPetch-Light.ttf +0 -0
  8. package/dist/full/fonts/Chakra_Petch/ChakraPetch-LightItalic.ttf +0 -0
  9. package/dist/full/fonts/Chakra_Petch/ChakraPetch-Medium.ttf +0 -0
  10. package/dist/full/fonts/Chakra_Petch/ChakraPetch-MediumItalic.ttf +0 -0
  11. package/dist/full/fonts/Chakra_Petch/ChakraPetch-Regular.ttf +0 -0
  12. package/dist/full/fonts/Chakra_Petch/ChakraPetch-SemiBold.ttf +0 -0
  13. package/dist/full/fonts/Chakra_Petch/ChakraPetch-SemiBoldItalic.ttf +0 -0
  14. package/dist/full/fonts/Chakra_Petch/OFL.txt +93 -0
  15. package/dist/full/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf +0 -0
  16. package/dist/full/fonts/Inter/Inter-VariableFont_opsz,wght.ttf +0 -0
  17. package/dist/full/fonts/Inter/OFL.txt +93 -0
  18. package/dist/full/fonts/Inter/README.txt +118 -0
  19. package/dist/full/fonts/JetBrains_Mono/JetBrainsMono-Italic-VariableFont_wght.ttf +0 -0
  20. package/dist/full/fonts/JetBrains_Mono/JetBrainsMono-VariableFont_wght.ttf +0 -0
  21. package/dist/full/fonts/JetBrains_Mono/OFL.txt +93 -0
  22. package/dist/full/fonts/JetBrains_Mono/README.txt +79 -0
  23. package/dist/full/fonts/OpenRing-Regular.ttf +0 -0
  24. package/dist/full/fonts/Open_Sans/OFL.txt +93 -0
  25. package/dist/full/fonts/Open_Sans/OpenSans-Italic-VariableFont_wdth,wght.ttf +0 -0
  26. package/dist/full/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf +0 -0
  27. package/dist/full/fonts/Open_Sans/README.txt +100 -0
  28. package/dist/full/fonts/Orbitron/OFL.txt +93 -0
  29. package/dist/full/fonts/Orbitron/Orbitron-VariableFont_wght.ttf +0 -0
  30. package/dist/full/fonts/Orbitron/README.txt +68 -0
  31. package/dist/full/fonts/Rajdhani/OFL.txt +93 -0
  32. package/dist/full/fonts/Rajdhani/Rajdhani-Bold.ttf +0 -0
  33. package/dist/full/fonts/Rajdhani/Rajdhani-Light.ttf +0 -0
  34. package/dist/full/fonts/Rajdhani/Rajdhani-Medium.ttf +0 -0
  35. package/dist/full/fonts/Rajdhani/Rajdhani-Regular.ttf +0 -0
  36. package/dist/full/fonts/Rajdhani/Rajdhani-SemiBold.ttf +0 -0
  37. package/dist/full/fonts/runescape-uf.ttf +0 -0
  38. package/dist/full/index.html +135 -25
  39. package/dist/full/js/app.62905fcb.js +952 -0
  40. package/dist/full/js/app.62905fcb.js.map +7 -0
  41. package/dist/full/styles.4e60d824.css +1 -0
  42. package/dist/full/version.json +2 -2
  43. package/docs/AGENT_PROTOCOL.md +20 -13
  44. package/docs/ORBIT_DISPATCH.md +73 -38
  45. package/docs/UPDATING.md +114 -0
  46. package/package.json +5 -7
  47. package/public/fonts/Chakra_Petch/ChakraPetch-Bold.ttf +0 -0
  48. package/public/fonts/Chakra_Petch/ChakraPetch-BoldItalic.ttf +0 -0
  49. package/public/fonts/Chakra_Petch/ChakraPetch-Italic.ttf +0 -0
  50. package/public/fonts/Chakra_Petch/ChakraPetch-Light.ttf +0 -0
  51. package/public/fonts/Chakra_Petch/ChakraPetch-LightItalic.ttf +0 -0
  52. package/public/fonts/Chakra_Petch/ChakraPetch-Medium.ttf +0 -0
  53. package/public/fonts/Chakra_Petch/ChakraPetch-MediumItalic.ttf +0 -0
  54. package/public/fonts/Chakra_Petch/ChakraPetch-Regular.ttf +0 -0
  55. package/public/fonts/Chakra_Petch/ChakraPetch-SemiBold.ttf +0 -0
  56. package/public/fonts/Chakra_Petch/ChakraPetch-SemiBoldItalic.ttf +0 -0
  57. package/public/fonts/Chakra_Petch/OFL.txt +93 -0
  58. package/public/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf +0 -0
  59. package/public/fonts/Inter/Inter-VariableFont_opsz,wght.ttf +0 -0
  60. package/public/fonts/Inter/OFL.txt +93 -0
  61. package/public/fonts/Inter/README.txt +118 -0
  62. package/public/fonts/JetBrains_Mono/JetBrainsMono-Italic-VariableFont_wght.ttf +0 -0
  63. package/public/fonts/JetBrains_Mono/JetBrainsMono-VariableFont_wght.ttf +0 -0
  64. package/public/fonts/JetBrains_Mono/OFL.txt +93 -0
  65. package/public/fonts/JetBrains_Mono/README.txt +79 -0
  66. package/public/fonts/OpenRing-Regular.ttf +0 -0
  67. package/public/fonts/Open_Sans/OFL.txt +93 -0
  68. package/public/fonts/Open_Sans/OpenSans-Italic-VariableFont_wdth,wght.ttf +0 -0
  69. package/public/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf +0 -0
  70. package/public/fonts/Open_Sans/README.txt +100 -0
  71. package/public/fonts/Orbitron/OFL.txt +93 -0
  72. package/public/fonts/Orbitron/Orbitron-VariableFont_wght.ttf +0 -0
  73. package/public/fonts/Orbitron/README.txt +68 -0
  74. package/public/fonts/Rajdhani/OFL.txt +93 -0
  75. package/public/fonts/Rajdhani/Rajdhani-Bold.ttf +0 -0
  76. package/public/fonts/Rajdhani/Rajdhani-Light.ttf +0 -0
  77. package/public/fonts/Rajdhani/Rajdhani-Medium.ttf +0 -0
  78. package/public/fonts/Rajdhani/Rajdhani-Regular.ttf +0 -0
  79. package/public/fonts/Rajdhani/Rajdhani-SemiBold.ttf +0 -0
  80. package/public/fonts/runescape-uf.ttf +0 -0
  81. package/public/index.html +133 -23
  82. package/public/js/artifact-drawer.js +79 -0
  83. package/public/js/board-export.js +161 -0
  84. package/public/js/board-menu.js +219 -17
  85. package/public/js/card-actions.js +1 -1
  86. package/public/js/create-card.js +60 -23
  87. package/public/js/drawer.js +164 -4
  88. package/public/js/font-preference.js +229 -0
  89. package/public/js/format.js +0 -10
  90. package/public/js/icons.js +16 -0
  91. package/public/js/local-backend.js +31 -4
  92. package/public/js/main.js +7 -1
  93. package/public/js/modal.js +3 -1
  94. package/public/js/panel.js +58 -0
  95. package/public/js/settings-tabs.js +1 -1
  96. package/public/js/settings.js +606 -275
  97. package/public/js/sse.js +3 -0
  98. package/public/js/state.js +1 -1
  99. package/public/js/text-editing.js +128 -0
  100. package/public/js/ticket-detail.js +377 -148
  101. package/public/js/ticket-typeahead.js +49 -0
  102. package/public/js/toast.js +19 -4
  103. package/public/js/topbar-notes.js +3 -3
  104. package/public/js/typeahead.js +206 -0
  105. package/public/js/update-check.js +58 -0
  106. package/public/styles.css +5447 -3572
  107. package/src/cli/orbit.js +9 -5
  108. package/src/core/agent.js +12 -4
  109. package/src/core/agents-md.js +3 -3
  110. package/src/core/artifacts.js +149 -0
  111. package/src/core/board.js +3 -2
  112. package/src/core/boards.js +0 -1
  113. package/src/core/css-bundle.js +1 -0
  114. package/src/core/db.js +6 -0
  115. package/src/core/dispatch.js +344 -34
  116. package/src/core/http.js +9 -2
  117. package/src/core/paths.js +26 -2
  118. package/src/core/router.js +33 -0
  119. package/src/core/search.js +3 -2
  120. package/src/core/snapshots.js +10 -5
  121. package/src/core/tickets.js +34 -3
  122. package/src/core/util.js +3 -2
  123. package/src/core/version-check.js +154 -0
  124. package/src/mcp/orbit-client.js +18 -2
  125. package/src/mcp-server.js +19 -14
  126. package/src/server.js +28 -3
  127. package/dist/full/js/app.4ae80764.js +0 -742
  128. package/dist/full/js/app.4ae80764.js.map +0 -7
  129. package/dist/full/styles.b9e0c130.css +0 -1
@@ -0,0 +1,93 @@
1
+ Copyright 2018 The Orbitron Project Authors (https://github.com/theleagueof/orbitron), with Reserved Font Name: "Orbitron"
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,68 @@
1
+ Orbitron Variable Font
2
+ ======================
3
+
4
+ This download contains Orbitron as both a variable font and static fonts.
5
+
6
+ Orbitron is a variable font with this axis:
7
+ wght
8
+
9
+ This means all the styles are contained in a single file:
10
+ Orbitron/Orbitron-VariableFont_wght.ttf
11
+
12
+ If your app fully supports variable fonts, you can now pick intermediate styles
13
+ that aren’t available as static fonts. Not all apps support variable fonts, and
14
+ in those cases you can use the static font files for Orbitron:
15
+ Orbitron/static/Orbitron-Regular.ttf
16
+ Orbitron/static/Orbitron-Medium.ttf
17
+ Orbitron/static/Orbitron-SemiBold.ttf
18
+ Orbitron/static/Orbitron-Bold.ttf
19
+ Orbitron/static/Orbitron-ExtraBold.ttf
20
+ Orbitron/static/Orbitron-Black.ttf
21
+
22
+ Get started
23
+ -----------
24
+
25
+ 1. Install the font files you want to use
26
+
27
+ 2. Use your app's font picker to view the font family and all the
28
+ available styles
29
+
30
+ Learn more about variable fonts
31
+ -------------------------------
32
+
33
+ https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
34
+ https://variablefonts.typenetwork.com
35
+ https://medium.com/variable-fonts
36
+
37
+ In desktop apps
38
+
39
+ https://theblog.adobe.com/can-variable-fonts-illustrator-cc
40
+ https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
41
+
42
+ Online
43
+
44
+ https://developers.google.com/fonts/docs/getting_started
45
+ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
46
+ https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
47
+
48
+ Installing fonts
49
+
50
+ MacOS: https://support.apple.com/en-us/HT201749
51
+ Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
52
+ Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
53
+
54
+ Android Apps
55
+
56
+ https://developers.google.com/fonts/docs/android
57
+ https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
58
+
59
+ License
60
+ -------
61
+ Please read the full license text (OFL.txt) to understand the permissions,
62
+ restrictions and requirements for usage, redistribution, and modification.
63
+
64
+ You can use them in your products & projects – print or digital,
65
+ commercial or otherwise.
66
+
67
+ This isn't legal advice, please consider consulting a lawyer and see the full
68
+ license for all details.
@@ -0,0 +1,93 @@
1
+ Copyright (c) 2014, Indian Type Foundry (info@indiantypefoundry.com).
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
package/public/index.html CHANGED
@@ -15,11 +15,14 @@
15
15
  sizes="180x180"
16
16
  href="./apple-touch-icon.png"
17
17
  />
18
- <!-- Apply the stored theme + motion preference before first paint, so
19
- the app underneath the splash paints in the right theme (no flash)
20
- and the splash respects an explicit reduce-motion choice. Mirrors
21
- theme-preference.js (mab_theme) and motion-preference.js
22
- (mab_reduce_motion → data-motion); main.js reconciles on load. -->
18
+ <!-- Apply the stored theme + motion + font/size preferences before first
19
+ paint, so the app underneath the splash paints in the right theme
20
+ (no flash) and at the right type size (no layout jump), and the
21
+ splash respects an explicit reduce-motion choice. Mirrors
22
+ theme-preference.js (mab_theme), motion-preference.js
23
+ (mab_reduce_motion → data-motion), and font-preference.js
24
+ (orbit_font_preferences → --orbit-font-* / --type-*); main.js
25
+ reconciles on load. -->
23
26
  <script>
24
27
  try {
25
28
  var t = localStorage.getItem("mab_theme");
@@ -30,6 +33,57 @@
30
33
  document.documentElement.setAttribute("data-motion", "reduce");
31
34
  else if (rm === "false")
32
35
  document.documentElement.setAttribute("data-motion", "full");
36
+ var fp = JSON.parse(localStorage.getItem("orbit_font_preferences") || "{}");
37
+ var stacks = {
38
+ inter: '"Orbit Inter", "Inter", "Segoe UI Variable", "Segoe UI", Arial, sans-serif',
39
+ openSans: '"Orbit Open Sans", "Open Sans", "Segoe UI Variable", "Segoe UI", Arial, sans-serif',
40
+ jetBrainsMono: '"Orbit JetBrains Mono", "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace',
41
+ chakraPetch: '"Orbit Chakra Petch", "Chakra Petch", "Segoe UI Variable", "Segoe UI", Arial, sans-serif',
42
+ orbitron: '"Orbit Orbitron", "Orbitron", "Segoe UI Variable", "Segoe UI", Arial, sans-serif',
43
+ rajdhani: '"Orbit Rajdhani", "Rajdhani", "Segoe UI Variable", "Segoe UI", Arial, sans-serif',
44
+ runescapeUF: '"Orbit Runescape UF", "Cascadia Mono", monospace',
45
+ openRing: '"Orbit Open Ring", "Segoe UI Variable", "Segoe UI", Arial, sans-serif'
46
+ };
47
+ var defaults = {
48
+ control: "inter",
49
+ heading: "inter",
50
+ label: "inter",
51
+ badge: "orbitron"
52
+ };
53
+ var aliases = { ui: "control" };
54
+ var targets = {
55
+ control: "--orbit-font-control",
56
+ heading: "--orbit-font-heading",
57
+ label: "--orbit-font-label",
58
+ badge: "--orbit-font-badge"
59
+ };
60
+ var dataAttrs = {
61
+ control: "data-font-control",
62
+ heading: "data-font-heading",
63
+ label: "data-font-label",
64
+ badge: "data-font-badge"
65
+ };
66
+ if (!fp.badge && fp.label && fp.label !== "inter" && stacks[fp.label]) {
67
+ fp.badge = fp.label;
68
+ }
69
+ Object.keys(targets).forEach(function (target) {
70
+ var id = stacks[fp[target]] ? fp[target] : defaults[target];
71
+ Object.keys(aliases).forEach(function (legacy) {
72
+ if (aliases[legacy] === target && !stacks[fp[target]] && stacks[fp[legacy]]) {
73
+ id = fp[legacy];
74
+ }
75
+ });
76
+ document.documentElement.style.setProperty(targets[target], stacks[id]);
77
+ document.documentElement.setAttribute(dataAttrs[target], id);
78
+ });
79
+ var siteFont = stacks[fp.site] ? fp.site : "inter";
80
+ // Body text always follows the primary font.
81
+ document.documentElement.style.setProperty("--orbit-font-body", stacks[siteFont]);
82
+ var userScale = Number(fp.userScale);
83
+ if (!isFinite(userScale)) userScale = 1;
84
+ userScale = Math.min(1.3, Math.max(0.85, userScale));
85
+ document.documentElement.style.setProperty("--type-user-scale", String(userScale));
86
+ document.documentElement.setAttribute("data-font-site", siteFont);
33
87
  } catch (e) {}
34
88
  </script>
35
89
  <link rel="preload" as="image" href="./orbits-logo.png" />
@@ -162,11 +216,13 @@
162
216
  id="brandFocusPopover"
163
217
  class="brand-focus-popover"
164
218
  role="dialog"
165
- aria-label="Board notes"
219
+ aria-label="Notes For You"
166
220
  hidden
167
221
  >
168
- <div class="brand-focus-popover__eyebrow">Board notes</div>
169
- <div id="brandFocusNotes" class="brand-focus-notes-body">No board notes yet</div>
222
+ <div class="inline-md-field brand-focus-notes-field">
223
+ <span class="inline-md-field-label font-orbitron">Notes For You</span>
224
+ <div id="brandFocusNotes" class="brand-focus-notes-body"></div>
225
+ </div>
170
226
  </div>
171
227
  </div>
172
228
  <div class="controls">
@@ -193,11 +249,12 @@
193
249
  <button
194
250
  id="newTicketBtn"
195
251
  type="button"
196
- class="topbar-btn btn-sun topbar-ctl-shrink"
252
+ class="topbar-btn topbar-ctl-shrink"
197
253
  data-variant="cta"
254
+ aria-label="New Card"
198
255
  >
199
- <span class="btn-plus" aria-hidden="true">+</span>
200
- <span class="btn-sun-label">New Card</span>
256
+ <span class="btn-plus" aria-hidden="true"></span>
257
+ <span class="topbar-btn-label">New Card</span>
201
258
  </button>
202
259
  <div class="topbar-menu">
203
260
  <button
@@ -219,18 +276,18 @@
219
276
  >
220
277
  <rect
221
278
  x="4"
222
- y="4"
279
+ y="2"
223
280
  width="6"
224
- height="16"
281
+ height="20"
225
282
  rx="0.75"
226
283
  stroke="currentColor"
227
284
  stroke-width="2"
228
285
  />
229
286
  <rect
230
287
  x="14"
231
- y="4"
288
+ y="2"
232
289
  width="6"
233
- height="16"
290
+ height="20"
234
291
  rx="0.75"
235
292
  stroke="currentColor"
236
293
  stroke-width="2"
@@ -320,6 +377,7 @@
320
377
  <circle cx="12" cy="12" r="3" />
321
378
  </svg>
322
379
  <span class="topbar-btn-label">Settings</span>
380
+ <span class="topbar-update-dot" title="Update available" hidden></span>
323
381
  </button>
324
382
  </div>
325
383
  </header>
@@ -359,12 +417,13 @@
359
417
  id="drawerTitleBlock"
360
418
  class="drawer-title-block"
361
419
  ></div>
362
- <nav
363
- id="drawerTabs"
364
- class="drawer-tabs"
365
- role="tablist"
366
- hidden
367
- ></nav>
420
+ <div id="drawerTabsShell" class="drawer-tabs-shell" hidden>
421
+ <nav
422
+ id="drawerTabs"
423
+ class="drawer-tabs"
424
+ role="tablist"
425
+ ></nav>
426
+ </div>
368
427
  <button
369
428
  type="button"
370
429
  id="drawerArchiveBtn"
@@ -399,12 +458,55 @@
399
458
  class="drawer-close"
400
459
  aria-label="Close panel"
401
460
  >
402
- ×
461
+ <svg
462
+ class="ui-icon ui-icon-x"
463
+ viewBox="0 0 24 24"
464
+ aria-hidden="true"
465
+ focusable="false"
466
+ >
467
+ <path d="M6 6l12 12M18 6 6 18" />
468
+ </svg>
403
469
  </button>
404
470
  </header>
405
471
  <div id="drawerInner" class="drawer-inner"></div>
406
472
  </aside>
407
473
 
474
+ <div
475
+ id="artifactDrawerBackdrop"
476
+ class="artifact-drawer-backdrop"
477
+ hidden
478
+ aria-hidden="true"
479
+ ></div>
480
+ <aside
481
+ id="artifactDrawer"
482
+ class="artifact-drawer"
483
+ hidden
484
+ aria-label="Linked markdown artifact"
485
+ >
486
+ <header class="artifact-drawer-header">
487
+ <div class="artifact-drawer-title-block">
488
+ <h2 id="artifactDrawerTitle" class="artifact-drawer-title">Artifact</h2>
489
+ <p id="artifactDrawerMeta" class="artifact-drawer-meta"></p>
490
+ </div>
491
+ <button
492
+ type="button"
493
+ id="artifactDrawerCloseBtn"
494
+ class="drawer-close artifact-drawer-close"
495
+ aria-label="Close artifact"
496
+ >
497
+ <svg
498
+ class="ui-icon ui-icon-x"
499
+ viewBox="0 0 24 24"
500
+ aria-hidden="true"
501
+ focusable="false"
502
+ >
503
+ <path d="M6 6l12 12M18 6 6 18" />
504
+ </svg>
505
+ </button>
506
+ </header>
507
+ <div id="artifactDrawerBody" class="artifact-drawer-body"></div>
508
+ </aside>
509
+
408
510
  <template id="commentFormTemplate">
409
511
  <form class="comment-form">
410
512
  <textarea
@@ -477,6 +579,7 @@
477
579
  <button
478
580
  type="button"
479
581
  class="welcome-dialog-cta"
582
+ data-modal-initial-focus
480
583
  data-modal-close
481
584
  >
482
585
  Get started
@@ -512,7 +615,14 @@
512
615
  aria-label="Close"
513
616
  data-modal-close
514
617
  >
515
- ×
618
+ <svg
619
+ class="ui-icon ui-icon-x"
620
+ viewBox="0 0 24 24"
621
+ aria-hidden="true"
622
+ focusable="false"
623
+ >
624
+ <path d="M6 6l12 12M18 6 6 18" />
625
+ </svg>
516
626
  </button>
517
627
  </div>
518
628
  <div class="welcome-dialog-body">
@@ -0,0 +1,79 @@
1
+ import { api, withBoardQuery } from "./api.js";
2
+ import { escapeHtml, renderMarkdown } from "./format.js";
3
+ import { toast } from "./toast.js";
4
+
5
+ const backdrop = document.getElementById("artifactDrawerBackdrop");
6
+ const drawer = document.getElementById("artifactDrawer");
7
+ const titleEl = document.getElementById("artifactDrawerTitle");
8
+ const metaEl = document.getElementById("artifactDrawerMeta");
9
+ const bodyEl = document.getElementById("artifactDrawerBody");
10
+ const closeBtn = document.getElementById("artifactDrawerCloseBtn");
11
+
12
+ function setOpen(open) {
13
+ if (!drawer || !backdrop) return;
14
+ drawer.hidden = false;
15
+ backdrop.hidden = false;
16
+ requestAnimationFrame(() => {
17
+ drawer.classList.toggle("is-open", open);
18
+ backdrop.classList.toggle("is-visible", open);
19
+ });
20
+ if (!open) {
21
+ setTimeout(() => {
22
+ if (drawer.classList.contains("is-open")) return;
23
+ drawer.hidden = true;
24
+ backdrop.hidden = true;
25
+ if (bodyEl) bodyEl.innerHTML = "";
26
+ }, 260);
27
+ }
28
+ }
29
+
30
+ export function closeArtifactDrawer() {
31
+ setOpen(false);
32
+ }
33
+
34
+ function localPathHint(path, error) {
35
+ const code = error?.payload?.error || error?.message || "Unable to load artifact";
36
+ const parts = [escapeHtml(code)];
37
+ if (code === "artifact_path_outside_allowed_roots" || code === "artifact_not_found") {
38
+ parts.push("<br><br>The Orbit server could not read that artifact path. If this webapp is hosted on another machine, the file needs to be stored on the hosted Orbit server or linked as a server-readable/repo-relative path.");
39
+ }
40
+ const mntDrive = String(path || "").match(/^\/mnt\/([a-z])\/(.+)$/i);
41
+ const slashDrive = String(path || "").match(/^\/([a-z])\/Users\/(.+)$/i);
42
+ if (mntDrive) {
43
+ const drive = mntDrive[1].toUpperCase();
44
+ parts.push(`<br><br>Windows spelling for this WSL path: <code>${escapeHtml(`${drive}:\\${mntDrive[2].replace(/\//g, "\\")}`)}</code>`);
45
+ } else if (slashDrive) {
46
+ const drive = slashDrive[1].toUpperCase();
47
+ parts.push(`<br><br>Windows spelling for this path: <code>${escapeHtml(`${drive}:\\Users\\${slashDrive[2].replace(/\//g, "\\")}`)}</code>`);
48
+ }
49
+ return parts.join("");
50
+ }
51
+
52
+ export async function openArtifactDrawer({ ticketId, path, title = "Linked artifact" }) {
53
+ if (!ticketId || !path) return false;
54
+ if (!drawer || !bodyEl || !titleEl || !metaEl) return false;
55
+ titleEl.textContent = title;
56
+ metaEl.textContent = path;
57
+ bodyEl.innerHTML = `<p class="artifact-drawer-loading">Loading artifact…</p>`;
58
+ setOpen(true);
59
+
60
+ try {
61
+ const result = await api(
62
+ withBoardQuery(`/api/tickets/${encodeURIComponent(ticketId)}/artifacts/markdown?path=${encodeURIComponent(path)}`),
63
+ );
64
+ titleEl.textContent = title;
65
+ metaEl.textContent = result.path || path;
66
+ bodyEl.innerHTML = `<article class="markdown-body artifact-markdown-body">${renderMarkdown(result.content || "") || `<p>${escapeHtml("Empty artifact.")}</p>`}</article>`;
67
+ return true;
68
+ } catch (err) {
69
+ bodyEl.innerHTML = `<p class="artifact-drawer-error">${localPathHint(path, err)}</p>`;
70
+ toast.error("Artifact could not be opened");
71
+ return false;
72
+ }
73
+ }
74
+
75
+ closeBtn?.addEventListener("click", closeArtifactDrawer);
76
+ backdrop?.addEventListener("click", closeArtifactDrawer);
77
+ document.addEventListener("keydown", (event) => {
78
+ if (event.key === "Escape" && drawer && !drawer.hidden) closeArtifactDrawer();
79
+ });