@ridit/lens 0.3.0 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ridit/lens",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Know Your Codebase.",
5
5
  "author": "Ridit Jangra <riditjangra09@gmail.com> (https://ridit.space)",
6
6
  "license": "MIT",
@@ -369,11 +369,9 @@ function CommitRunner({
369
369
  <Text color={ACCENT} bold>
370
370
  ◈ COMMIT
371
371
  </Text>
372
- <Text color="gray" dimColor>
373
- {cwd}
374
- </Text>
372
+ <Text color="gray">{cwd}</Text>
375
373
  {files.length > 0 && (
376
- <Text color={CYAN} dimColor>
374
+ <Text color={CYAN}>
377
375
  {files.length} file{files.length !== 1 ? "s" : ""}
378
376
  </Text>
379
377
  )}
@@ -383,32 +381,26 @@ function CommitRunner({
383
381
  <Box flexDirection="column" marginBottom={1}>
384
382
  {files.map((f, i) => (
385
383
  <Box key={i} gap={1}>
386
- <Text color="gray" dimColor>
387
- {" ·"}
388
- </Text>
384
+ <Text color="gray">{" ·"}</Text>
389
385
  <Text color="white">{f}</Text>
390
386
  </Box>
391
387
  ))}
392
388
  </Box>
393
389
  )}
394
390
 
395
- <Text color="gray" dimColor>
396
- {div}
397
- </Text>
391
+ <Text color="gray">{div}</Text>
398
392
 
399
393
  {phase.type === "checking" && (
400
394
  <Box gap={1} marginTop={1}>
401
395
  <Text color={ACCENT}>*</Text>
402
- <Text color="gray" dimColor>
403
- checking changes…
404
- </Text>
396
+ <Text color="gray">checking changes…</Text>
405
397
  </Box>
406
398
  )}
407
399
 
408
400
  {phase.type === "staging" && (
409
401
  <Box gap={1} marginTop={1}>
410
402
  <Text color={ACCENT}>*</Text>
411
- <Text color="gray" dimColor>
403
+ <Text color="gray">
412
404
  {phase.files.length > 0
413
405
  ? `staging ${phase.files.length} file${phase.files.length !== 1 ? "s" : ""}…`
414
406
  : "staging all changes…"}
@@ -433,11 +425,9 @@ function CommitRunner({
433
425
  </Box>
434
426
  {phase.hasUnstaged && (
435
427
  <Box flexDirection="column" marginLeft={2} gap={1}>
436
- <Text color="gray" dimColor>
437
- you have unstaged changes. try:
438
- </Text>
428
+ <Text color="gray">you have unstaged changes. try:</Text>
439
429
  {phase.files.length > 0 ? (
440
- <Text color="gray" dimColor>
430
+ <Text color="gray">
441
431
  {" "}
442
432
  <Text color={ACCENT}>
443
433
  lens commit {phase.files.join(" ")}
@@ -445,7 +435,7 @@ function CommitRunner({
445
435
  {" "}(stages and commits those files)
446
436
  </Text>
447
437
  ) : (
448
- <Text color="gray" dimColor>
438
+ <Text color="gray">
449
439
  {" "}
450
440
  <Text color={ACCENT}>git add {"<files>"}</Text>
451
441
  {" "}or{" "}
@@ -483,27 +473,23 @@ function CommitRunner({
483
473
  </Box>
484
474
  {phase.splitGroups.length > 0 && (
485
475
  <Box flexDirection="column" marginLeft={2} marginBottom={1}>
486
- <Text color="yellow" dimColor>
476
+ <Text color="yellow">
487
477
  ⚡ large diff — consider splitting into{" "}
488
478
  {phase.splitGroups.length} commits:
489
479
  </Text>
490
480
  {phase.splitGroups.map((g, i) => (
491
- <Text key={i} color="gray" dimColor>
481
+ <Text key={i} color="gray">
492
482
  {" · "}
493
483
  {g}
494
484
  </Text>
495
485
  ))}
496
486
  </Box>
497
487
  )}
498
- <Text color="gray" dimColor>
499
- {div}
500
- </Text>
488
+ <Text color="gray">{div}</Text>
501
489
  <Box gap={3} marginTop={1}>
502
490
  <Text color={GREEN}>y/enter commit</Text>
503
491
  <Text color={CYAN}>e edit</Text>
504
- <Text color="gray" dimColor>
505
- n/esc cancel
506
- </Text>
492
+ <Text color="gray">n/esc cancel</Text>
507
493
  </Box>
508
494
  </Box>
509
495
  )}
@@ -534,9 +520,7 @@ function CommitRunner({
534
520
  )
535
521
  }
536
522
  />
537
- <Text color="gray" dimColor>
538
- enter confirm · esc back
539
- </Text>
523
+ <Text color="gray">enter confirm · esc back</Text>
540
524
  </Box>
541
525
  </Box>
542
526
  )}
@@ -544,9 +528,7 @@ function CommitRunner({
544
528
  {phase.type === "committing" && (
545
529
  <Box gap={1} marginTop={1}>
546
530
  <Text color={ACCENT}>*</Text>
547
- <Text color="gray" dimColor>
548
- committing…
549
- </Text>
531
+ <Text color="gray">committing…</Text>
550
532
  </Box>
551
533
  )}
552
534
 
@@ -561,9 +543,7 @@ function CommitRunner({
561
543
  </Box>
562
544
  <Box gap={1} marginLeft={2}>
563
545
  <Text color={ACCENT}>*</Text>
564
- <Text color="gray" dimColor>
565
- pushing…
566
- </Text>
546
+ <Text color="gray">pushing…</Text>
567
547
  </Box>
568
548
  </Box>
569
549
  )}
@@ -582,21 +562,17 @@ function CommitRunner({
582
562
  .slice(2)
583
563
  .filter(Boolean)
584
564
  .map((line, i) => (
585
- <Text key={i} color="gray" dimColor>
565
+ <Text key={i} color="gray">
586
566
  {line}
587
567
  </Text>
588
568
  ))}
589
569
  {phase.pushed && (
590
570
  <Box gap={2} marginTop={1}>
591
571
  <Text color={GREEN}>{figures.tick}</Text>
592
- <Text color="gray" dimColor>
593
- pushed to remote
594
- </Text>
572
+ <Text color="gray">pushed to remote</Text>
595
573
  </Box>
596
574
  )}
597
- <Text color="gray" dimColor>
598
- press any key to exit
599
- </Text>
575
+ <Text color="gray">press any key to exit</Text>
600
576
  </Box>
601
577
  )}
602
578
 
@@ -612,9 +588,7 @@ function CommitRunner({
612
588
  </Text>
613
589
  ))}
614
590
  </Box>
615
- <Text color="gray" dimColor>
616
- (preview only — not committed)
617
- </Text>
591
+ <Text color="gray">(preview only — not committed)</Text>
618
592
  </Box>
619
593
  )}
620
594
 
@@ -628,7 +602,7 @@ function CommitRunner({
628
602
  .split("\n")
629
603
  .slice(1)
630
604
  .map((line, i) => (
631
- <Text key={i} color="gray" dimColor>
605
+ <Text key={i} color="gray">
632
606
  {line}
633
607
  </Text>
634
608
  ))}