Skip to content

Commit 68af013

Browse files
committed
feat(providers): introduce collapsible groups and enhance auth feedback
Group connected providers into collapsible sections - Improves organization and reduces visual clutter for many accounts. - Allows users to expand and collapse provider lists as needed. Add toast notifications for authentication success and failure - Provides immediate and clear user feedback on authentication outcomes. Display specific error messages in failure toasts - Helps users understand reasons for authentication issues. Add new i18n keys for auth success and OAuth callback instructions - Supports new toast messages and future OAuth flow improvements. Make "Add New Provider" cards fully clickable - Enhances user experience and discoverability for connecting providers. Optimize file grouping with `useMemo` - Improves performance by memoizing the grouped files array.
1 parent c92e329 commit 68af013

8 files changed

Lines changed: 217 additions & 113 deletions

File tree

src/i18n/locales/en.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
"completeLogin": "Complete the login in your browser",
6767
"openLink": "Open Link",
6868
"verify": "Verify",
69-
"manualCallback": "If valid callback is not detected automatically:"
69+
"manualCallback": "If valid callback is not detected automatically:",
70+
"authSuccess": "Provider connected successfully!"
71+
},
72+
"oauth": {
73+
"pasteCallback": "Paste callback URL here..."
7074
},
7175
"quota": {
7276
"title": "Quota",

src/i18n/locales/id.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
"completeLogin": "Selesaikan login di browser Anda",
6767
"openLink": "Buka Tautan",
6868
"verify": "Verifikasi",
69-
"manualCallback": "Jika callback valid tidak terdeteksi otomatis:"
69+
"manualCallback": "Jika callback valid tidak terdeteksi otomatis:",
70+
"authSuccess": "Penyedia berhasil terhubung!"
71+
},
72+
"oauth": {
73+
"pasteCallback": "Tempelkan URL callback di sini..."
7074
},
7175
"quota": {
7276
"title": "Kuota",

src/i18n/locales/ja.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
"completeLogin": "ブラウザでログインを完了してください",
6767
"openLink": "リンクを開く",
6868
"verify": "確認",
69-
"manualCallback": "有効なコールバックが自動検出されない場合:"
69+
"manualCallback": "有効なコールバックが自動検出されない場合:",
70+
"authSuccess": "プロバイダーの接続に成功しました!"
71+
},
72+
"oauth": {
73+
"pasteCallback": "コールバックURLをここに貼り付け..."
7074
},
7175
"quota": {
7276
"title": "クォータ",

src/i18n/locales/ko.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
"completeLogin": "브라우저에서 로그인을 완료하세요",
6767
"openLink": "링크 열기",
6868
"verify": "확인",
69-
"manualCallback": "유효한 콜백이 자동으로 감지되지 않는 경우:"
69+
"manualCallback": "유효한 콜백이 자동으로 감지되지 않는 경우:",
70+
"authSuccess": "제공자가 성공적으로 연결되었습니다!"
71+
},
72+
"oauth": {
73+
"pasteCallback": "콜백 URL을 여기에 붙여넣기..."
7074
},
7175
"quota": {
7276
"title": "할당량",

src/i18n/locales/th.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
"completeLogin": "กรุณาเข้าสู่ระบบให้เสร็จสิ้นในเบราว์เซอร์",
6767
"openLink": "เปิดลิงก์",
6868
"verify": "ตรวจสอบ",
69-
"manualCallback": "หากระบบไม่ตรวจพบ callback ที่ถูกต้องโดยอัตโนมัติ:"
69+
"manualCallback": "หากระบบไม่ตรวจพบ callback ที่ถูกต้องโดยอัตโนมัติ:",
70+
"authSuccess": "เชื่อมต่อผู้ให้บริการสำเร็จ!"
71+
},
72+
"oauth": {
73+
"pasteCallback": "วาง URL callback ที่นี่..."
7074
},
7175
"quota": {
7276
"title": "โควตา",

src/i18n/locales/vi.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
"completeLogin": "Hoàn tất đăng nhập trong trình duyệt của bạn",
6767
"openLink": "Mở liên kết",
6868
"verify": "Xác minh",
69-
"manualCallback": "Nếu không tự động phát hiện callback hợp lệ:"
69+
"manualCallback": "Nếu không tự động phát hiện callback hợp lệ:",
70+
"authSuccess": "Kết nối nhà cung cấp thành công!"
71+
},
72+
"oauth": {
73+
"pasteCallback": "Dán URL callback vào đây..."
7074
},
7175
"quota": {
7276
"title": "Hạn mức",

src/i18n/locales/zh-CN.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
"completeLogin": "在浏览器中完成登录",
6767
"openLink": "打开链接",
6868
"verify": "验证",
69-
"manualCallback": "如果未自动检测到回调:"
69+
"manualCallback": "如果未自动检测到回调:",
70+
"authSuccess": "提供商连接成功!"
71+
},
72+
"oauth": {
73+
"pasteCallback": "在此粘贴回调 URL..."
7074
},
7175
"quota": {
7276
"title": "配额",

0 commit comments

Comments
 (0)