Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

91 changes: 63 additions & 28 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,74 @@
---
name: Bug Report
about: Report a bug or unexpected behavior
labels: ["bug"]
description: Report a bug or unexpected behavior
labels: ['bug']
assignees: []
---

## Bug Description
body:
- type: textarea
attributes:
label: Bug Description
description: |
Please describe the bug you encountered in as much detail as possible.

Please describe the bug you encountered in as much detail as possible.
- What happened?
- What did you expect to happen?
- Are there any error messages shown?
placeholder: |
Describe the bug clearly and concisely.
validations:
required: true

- What happened?
- What did you expect to happen?
- Are there any error messages shown?
- type: textarea
attributes:
label: Steps to Reproduce
description: |
Please include exact steps so we can reproduce the issue.
placeholder: |
1.
2.
3.
4.
validations:
required: true

## Steps to Reproduce
- type: textarea
attributes:
label: Screenshots / Logs
description: |
If applicable, add screenshots or logs to help explain your problem.
placeholder: |
Paste logs here or attach screenshots.

1.
2.
3.
4.
- type: markdown
attributes:
value: |
## Environment

_(Please include exact steps so we can reproduce the issue.)_
- type: input
attributes:
label: OS
placeholder: macOS / Windows / Linux
validations:
required: true

## Screenshots / Logs
- type: input
attributes:
label: Datary Version
placeholder: 0.0.1
validations:
required: true

If applicable, add screenshots or logs to help explain your problem.
- type: input
attributes:
label: Database
placeholder: PostgreSQL / MySQL / MariaDB / Microsoft SQL Server
validations:
required: true

## Environment

| Feature | Details |
|---------|---------|
| OS | |
| Datary Version | |
| Database | |

## Additional Context

Add any other context about the problem here.
- type: textarea
attributes:
label: Additional Context
description: |
Add any other context about the problem here.
placeholder: |
Any extra information that may help.
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/feature-request.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Feature Request
description: Suggest a new idea or improvement for Datary
labels: ['enhancement']
assignees: []

body:
- type: markdown
attributes:
value: |
Thanks for taking the time to suggest an improvement!
Datary is a database management tool, so features related to databases, UX, performance, or integrations are especially welcome.

- type: textarea
attributes:
label: Feature description
description: |
What feature are you requesting?
Explain what it does and why it would be valuable.
placeholder: |
Example:
Add support for exporting query results to CSV/JSON directly from the results table.
validations:
required: true

- type: textarea
attributes:
label: Use case / motivation
description: |
Describe the problem this feature solves and who would benefit from it.
placeholder: |
Example:
When working with large datasets, I often need to share query results with teammates.
Currently, I have to copy data manually or use external tools.
validations:
required: true

- type: textarea
attributes:
label: Suggested implementation
description: |
If you have ideas on how this could work (UI, behavior, API), describe them here.
This is optional but very helpful.
placeholder: |
Example:
- Add an "Export" button near the results table
- Allow selecting format (CSV / JSON)
- Save file via native OS dialog

- type: textarea
attributes:
label: Examples / references
description: |
If similar functionality exists in other tools, add links, screenshots, or descriptions.
placeholder: |
Example:
DBeaver has a similar export dialog with format selection and preview.
63 changes: 63 additions & 0 deletions .github/scripts/telegram-notify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import fetch from 'node-fetch'
import fs from 'fs'

const {
TELEGRAM_BOT_TOKEN,
TELEGRAM_CHAT_ID,
GITHUB_EVENT_NAME,
GITHUB_EVENT_PATH,
GITHUB_REPOSITORY,
GITHUB_ACTOR,
GITHUB_REF,
} = process.env

if (!TELEGRAM_BOT_TOKEN || !TELEGRAM_CHAT_ID) {
console.error('Telegram env vars are missing')
process.exit(1)
}

let message = `*GitHub Notification*\n\n`
message += `Repo: ${GITHUB_REPOSITORY}\n`
message += `Actor: ${GITHUB_ACTOR}\n`
message += `Event: ${GITHUB_EVENT_NAME}\n`

if (GITHUB_EVENT_PATH && fs.existsSync(GITHUB_EVENT_PATH)) {
const payload = JSON.parse(fs.readFileSync(GITHUB_EVENT_PATH, 'utf8'))

if (GITHUB_EVENT_NAME === 'push') {
message += `\n*Push*\n`
message += `Branch: ${GITHUB_REF?.replace('refs/heads/', '')}\n`

payload.commits?.slice(0, 3).forEach((c, i) => {
message += `${i + 1}. ${c.message.split('\n')[0]}\n`
})
}

if (GITHUB_EVENT_NAME === 'pull_request' || GITHUB_EVENT_NAME === 'pull_request_target') {
const pr = payload.pull_request
message += `\n*Pull Request*\n`
message += `Title: ${pr.title}\n`
message += `Action: ${payload.action}\n`
message += `URL: ${pr.html_url}\n`
}

if (GITHUB_EVENT_NAME === 'issues') {
const issue = payload.issue
message += `\n*Issue*\n`
message += `Title: ${issue.title}\n`
message += `Action: ${payload.action}\n`
message += `URL: ${issue.html_url}\n`
}
}

await fetch(`https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
chat_id: TELEGRAM_CHAT_ID,
text: message,
parse_mode: 'Markdown'
})
})
6 changes: 3 additions & 3 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches:
- main
- develop
pull_request:
types: [opened, closed, reopened, merged]
pull_request_target:
types: [opened, reopened, closed]
issues:
types: [opened, closed, reopened]

Expand Down Expand Up @@ -41,4 +41,4 @@ jobs:
run: npm install node-fetch

- name: Send Telegram notification
run: node scripts/telegram-notify.js
run: node .github/scripts/telegram-notify.js
5 changes: 3 additions & 2 deletions apps/desktop/main/app/window.manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { mainWindow } from './app.state'
export function createMainWindow() {
const preloadPath = getPreloadPath(__dirname)

console.log('preloadPath: ', preloadPath)

const win = new BrowserWindow({
width: 1200,
height: 800,
Expand All @@ -28,6 +26,9 @@ export function createMainWindow() {
mainWindow.set(win)

if (isDev && DEV_SERVER_URL) {
win.webContents.closeDevTools()
win.webContents.setVisualZoomLevelLimits(1, 1)

win.loadURL(DEV_SERVER_URL)
} else {
win.loadFile(getRendererIndex(__dirname))
Expand Down
Loading
Loading