hale-commenting-system 2.1.0 → 2.1.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/README.md CHANGED
@@ -20,7 +20,7 @@ After installation, the onboarding flow will automatically start to help you con
20
20
 
21
21
  ## Requirements
22
22
 
23
- - PatternFly Seed project
23
+ - PatternFly Seed project with PatternFly v6+ (`@patternfly/react-core` ^6.0.0)
24
24
  - GitHub account with OAuth app
25
25
  - Jira access (Red Hat Jira: issues.redhat.com)
26
26
 
package/bin/generators.js CHANGED
@@ -121,8 +121,8 @@ async function integrateIntoProject() {
121
121
  return;
122
122
  }
123
123
  // Read the template
124
- // In compiled output, templates will be in the package root
125
- const packageRoot = path.resolve(__dirname, '../../..');
124
+ // In compiled output, templates are in the package root (same level as bin/)
125
+ const packageRoot = path.resolve(__dirname, '..');
126
126
  const templatePath = path.join(packageRoot, 'templates', 'webpack-middleware.js');
127
127
  if (!fs.existsSync(templatePath)) {
128
128
  console.log(' ⚠️ Template file not found. Manual integration required.');
package/bin/onboarding.js CHANGED
@@ -276,14 +276,19 @@ async function runOnboarding() {
276
276
  console.log('🎫 Step 3: Jira Setup\n');
277
277
  console.log('You can link Jira tickets to pages in your design. This helps connect');
278
278
  console.log('design work to development tracking.\n');
279
- console.log('For Red Hat Jira, generate a Personal Access Token from:');
280
- console.log('https://issues.redhat.com/secure/ViewProfile.jspa\n');
279
+ console.log('For Red Hat Jira, generate a Personal Access Token:');
280
+ console.log('1. Visit: https://issues.redhat.com/secure/ViewProfile.jspa');
281
+ console.log('2. Click "Personal Access Tokens" in the left sidebar');
282
+ console.log('3. Click "Create token"');
283
+ console.log('4. Give it a name (e.g., "Hale Commenting System")');
284
+ console.log('5. Remove expiration (or set a long expiration)');
285
+ console.log('6. Click "Create" and copy the token\n');
281
286
  console.log('Note: We use Bearer token authentication (no email required for Red Hat Jira).\n');
282
287
  const jiraAnswers = await inquirer_1.default.prompt([
283
288
  {
284
289
  type: 'input',
285
290
  name: 'baseUrl',
286
- message: 'Jira Base URL:',
291
+ message: 'Jira Base URL (press Enter for Red Hat Jira):',
287
292
  default: 'https://issues.redhat.com',
288
293
  validate: (input) => {
289
294
  if (!input.trim())
@@ -338,7 +343,7 @@ async function runOnboarding() {
338
343
  await generators.integrateIntoProject();
339
344
  console.log('\n✅ Setup complete!');
340
345
  console.log('\nNext steps:');
341
- console.log('1. Review the generated .env and .env.server files');
342
- console.log('2. Restart your dev server: npm run start:dev');
343
- console.log('3. The commenting system will be available in your app!\n');
346
+ console.log('1. Start your dev server: npm run start:dev');
347
+ console.log(' (If it\'s already running, restart it to load the new configuration)');
348
+ console.log('2. The commenting system will be available in your app!\n');
344
349
  }
@@ -121,8 +121,8 @@ async function integrateIntoProject() {
121
121
  return;
122
122
  }
123
123
  // Read the template
124
- // In compiled output, templates will be in the package root
125
- const packageRoot = path.resolve(__dirname, '../../..');
124
+ // In compiled output, templates are in the package root (same level as bin/)
125
+ const packageRoot = path.resolve(__dirname, '..');
126
126
  const templatePath = path.join(packageRoot, 'templates', 'webpack-middleware.js');
127
127
  if (!fs.existsSync(templatePath)) {
128
128
  console.log(' ⚠️ Template file not found. Manual integration required.');
@@ -276,14 +276,19 @@ async function runOnboarding() {
276
276
  console.log('🎫 Step 3: Jira Setup\n');
277
277
  console.log('You can link Jira tickets to pages in your design. This helps connect');
278
278
  console.log('design work to development tracking.\n');
279
- console.log('For Red Hat Jira, generate a Personal Access Token from:');
280
- console.log('https://issues.redhat.com/secure/ViewProfile.jspa\n');
279
+ console.log('For Red Hat Jira, generate a Personal Access Token:');
280
+ console.log('1. Visit: https://issues.redhat.com/secure/ViewProfile.jspa');
281
+ console.log('2. Click "Personal Access Tokens" in the left sidebar');
282
+ console.log('3. Click "Create token"');
283
+ console.log('4. Give it a name (e.g., "Hale Commenting System")');
284
+ console.log('5. Remove expiration (or set a long expiration)');
285
+ console.log('6. Click "Create" and copy the token\n');
281
286
  console.log('Note: We use Bearer token authentication (no email required for Red Hat Jira).\n');
282
287
  const jiraAnswers = await inquirer_1.default.prompt([
283
288
  {
284
289
  type: 'input',
285
290
  name: 'baseUrl',
286
- message: 'Jira Base URL:',
291
+ message: 'Jira Base URL (press Enter for Red Hat Jira):',
287
292
  default: 'https://issues.redhat.com',
288
293
  validate: (input) => {
289
294
  if (!input.trim())
@@ -338,7 +343,7 @@ async function runOnboarding() {
338
343
  await generators.integrateIntoProject();
339
344
  console.log('\n✅ Setup complete!');
340
345
  console.log('\nNext steps:');
341
- console.log('1. Review the generated .env and .env.server files');
342
- console.log('2. Restart your dev server: npm run start:dev');
343
- console.log('3. The commenting system will be available in your app!\n');
346
+ console.log('1. Start your dev server: npm run start:dev');
347
+ console.log(' (If it\'s already running, restart it to load the new configuration)');
348
+ console.log('2. The commenting system will be available in your app!\n');
344
349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hale-commenting-system",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Commenting system for PatternFly Seed projects with GitHub and Jira integration",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",