hale-commenting-system 3.4.0 → 3.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hale-commenting-system",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "A commenting system for PatternFly React applications that allows designers and developers to add comments directly on design pages, sync with GitHub Issues, and link Jira tickets.",
5
5
  "homepage": "https://www.npmjs.com/package/hale-commenting-system",
6
6
  "license": "MIT",
@@ -72,10 +72,13 @@ export const CommentOverlay: React.FunctionComponent = () => {
72
72
  position: 'absolute',
73
73
  top: 0,
74
74
  left: 0,
75
+ right: 0,
76
+ bottom: 0,
75
77
  width: '100%',
76
78
  height: '100%',
77
79
  pointerEvents: 'none',
78
80
  zIndex: 999,
81
+ overflow: 'visible', // Ensure pins can be visible even if slightly outside
79
82
  }}
80
83
  >
81
84
  {currentThreads.map((thread) => (
@@ -463,14 +463,18 @@ export const CommentProvider: React.FunctionComponent<{ children: React.ReactNod
463
463
  };
464
464
  });
465
465
 
466
+ // Track which issue numbers were returned from GitHub
467
+ const githubIssueNumbers = new Set(ghThreads.map(gt => gt.issueNumber).filter((n): n is number => !!n));
468
+
466
469
  // Keep local threads on this route/version that:
467
470
  // 1. Don't have an issueNumber yet, OR
468
- // 2. Are actively syncing (prevents race condition where issue was created but GitHub API hasn't returned it yet)
471
+ // 2. Are actively syncing (prevents race condition where issue was created but GitHub API hasn't returned it yet), OR
472
+ // 3. Have an issueNumber but GitHub didn't return it (preserve existing threads even if GitHub API fails or issue is hidden)
469
473
  const localUnlinked = prev.filter(
470
474
  (t) =>
471
475
  t.route === route &&
472
476
  (t.version ?? '1') === (version ?? '1') &&
473
- (!t.issueNumber || t.syncStatus === 'syncing'),
477
+ (!t.issueNumber || t.syncStatus === 'syncing' || !githubIssueNumbers.has(t.issueNumber)),
474
478
  );
475
479
 
476
480
  // Remove duplicates: if a thread is both in localUnlinked and merged, prefer the merged version