collavre_github 0.6.0 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10db15f8f1d4877e2b2b8c3c52b6a7bc6b906f742b6ef22d72c5edcdee89ee22
4
- data.tar.gz: cc55e2500dafc1b6d19e59f6cb003b966de5ec9394009def30525c0a5b3c00b3
3
+ metadata.gz: 82dd93990d2dc692575a20c51b26144b69c9af885b36e60b4868fa7559c76363
4
+ data.tar.gz: b929db48adbbdcb8c56d8cb72efb171bac40cf852721aa98927af101ee41d82b
5
5
  SHA512:
6
- metadata.gz: ce8c29467f23b907a04ef532588d059ca1e7fa2f838e600fd730ba04becc5aba205f2669828a3ac520cd7ace29f29bfb0cc9eec10da776aa5f55693c42860143
7
- data.tar.gz: 456701d9b38e6b8498064cede91e6931d2abea3c1d9671d73e6a370aa8e251d207e69b0d5000aac29dd5db597fbb4d1cb28b556bbed02b117dd813ef54f75c6d
6
+ metadata.gz: e2d9681cdc7f1872a0b821b1288886c575207d3370c373d062f630ed23015e5fef8ad5c8c76b6e48ecbb7fd7c6dde99788ff3b5c68bbd690a2bcd4b7ed6c8d6e
7
+ data.tar.gz: 67382060fae2662cee2481f0cef2ae6fb979f4b4653f3ef63db141cdfb95d35347f845259c9ca205b9e90c81efaac419470b75e48969579abac86bf5e0fdaa01
@@ -1,4 +1,5 @@
1
1
  import { csrfToken, showError, clearError, updateStepVisibility, openOAuthPopup, fetchWithCsrf, setupModalClose } from 'collavre/modules/integration_wizard';
2
+ import { alertDialog, confirmDialog } from 'collavre/lib/utils/dialog';
2
3
 
3
4
  let githubIntegrationInitialized = false;
4
5
 
@@ -513,7 +514,7 @@ if (!githubIntegrationInitialized) {
513
514
 
514
515
 
515
516
  updateSummary();
516
- alert(modal.dataset.successMessage);
517
+ alertDialog(modal.dataset.successMessage);
517
518
  })
518
519
  .catch(function () {
519
520
  showError('연동 정보를 저장하지 못했습니다.');
@@ -523,7 +524,7 @@ if (!githubIntegrationInitialized) {
523
524
  openBtn.addEventListener('click', function () {
524
525
  creativeId = openBtn.dataset.creativeId;
525
526
  if (!creativeId) {
526
- alert(modal.dataset.noCreative);
527
+ alertDialog(modal.dataset.noCreative);
527
528
  return;
528
529
  }
529
530
  resetWizard();
@@ -598,9 +599,9 @@ if (!githubIntegrationInitialized) {
598
599
  });
599
600
  });
600
601
 
601
- deleteBtn?.addEventListener('click', function () {
602
+ deleteBtn?.addEventListener('click', async function () {
602
603
  if (!creativeId) {
603
- alert(modal.dataset.noCreative);
604
+ alertDialog(modal.dataset.noCreative);
604
605
  return;
605
606
  }
606
607
  clearError();
@@ -609,7 +610,7 @@ if (!githubIntegrationInitialized) {
609
610
  showError(deleteSelectWarning);
610
611
  return;
611
612
  }
612
- if (!window.confirm(deleteConfirm)) return;
613
+ if (!(await confirmDialog(deleteConfirm, { danger: true }))) return;
613
614
 
614
615
  fetch(`/github/creatives/${creativeId}/integration`, {
615
616
  method: 'DELETE',
@@ -648,7 +649,7 @@ if (!githubIntegrationInitialized) {
648
649
  });
649
650
  });
650
651
 
651
- resyncBtn?.addEventListener('click', function () {
652
+ resyncBtn?.addEventListener('click', async function () {
652
653
  if (!creativeId) return;
653
654
  clearError();
654
655
  const checkboxes = existingList ? existingList.querySelectorAll('.github-existing-repo-checkbox:checked') : [];
@@ -657,7 +658,7 @@ if (!githubIntegrationInitialized) {
657
658
  showError(resyncSelectWarning);
658
659
  return;
659
660
  }
660
- if (!window.confirm(resyncConfirm)) return;
661
+ if (!(await confirmDialog(resyncConfirm))) return;
661
662
 
662
663
  resyncBtn.disabled = true;
663
664
  let completed = 0;
data/db/seeds.rb CHANGED
@@ -122,7 +122,7 @@ module CollavreGithub
122
122
  end
123
123
 
124
124
  def default_llm_model
125
- ENV.fetch("COLLAVRE_DEFAULT_LLM_MODEL", "gemini-3-flash-preview")
125
+ ENV.fetch("COLLAVRE_DEFAULT_LLM_MODEL", "gemini-3.1-flash-lite")
126
126
  end
127
127
  end
128
128
  end
@@ -1,3 +1,3 @@
1
1
  module CollavreGithub
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collavre_github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Collavre