Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

feat(store): add review on Microsoft Store button and refine branding aesthetics

Deepender257fdfd8fd5b47
diff --git a/scripts/generate_translations_ts.cjs b/scripts/generate_translations_ts.cjs
index f822e93..299f60d 100644
--- a/scripts/generate_translations_ts.cjs
+++ b/scripts/generate_translations_ts.cjs
@@ -240,6 +240,7 @@ const masterEn = {
supportPromo: 'Edge-Drop is 100% free & open-source. If it helps your daily workflow, consider supporting development to make it even better!',
supportOnKofi: 'Support via Ko-fi / UPI',
starOnGithub: 'Star on GitHub',
+ reviewOnStore: 'Review on Microsoft Store',
githubPromo: 'Enjoying Edge-Drop? Show your support by starring the project on GitHub!',
version: 'Version'
}
@@ -676,6 +677,7 @@ let fileContent = `export interface TranslationKeys {
supportPromo: string
supportOnKofi: string
starOnGithub: string
+ reviewOnStore?: string
githubPromo: string
version: string
}
diff --git a/src/components/PreviewFlyout.tsx b/src/components/PreviewFlyout.tsx
index 8934c79..c20e6a4 100644
--- a/src/components/PreviewFlyout.tsx
+++ b/src/components/PreviewFlyout.tsx
@@ -602,17 +602,6 @@ function ExplorerButton({
)
}
-// Heuristic: if text looks like code, a path, or a log — use monospace. Otherwise system font.
-function looksLikeCode(text: string): boolean {
- const firstLine = text.split('\n')[0] || ''
- return (
- firstLine.startsWith('/') ||
- firstLine.startsWith('C:\\') ||
- /[{}\[\]();=>]/.test(firstLine) ||
- /^\s*(import|export|const|let|var|function|class|def|if|for)\b/.test(firstLine)
- )
-}
-
const SYS_FONT = 'var(--font-ui)'
const CODE_FONT = 'var(--font-ui)'
@@ -691,7 +680,6 @@ function PreviewContent({
const text: string = activeText.length > 20000
? activeText.slice(0, 20000) + `\n\n${t('flyout.contentTruncated')}`
: activeText
- const isCode = looksLikeCode(text)
const isUrl = item.data.isUrl
if (isUrl) {
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index b80f5ff..1af5cdd 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -4,7 +4,7 @@ import { useStore } from '../store/appStore'
import type { DisplayInfo } from '../../shared/types'
import { LiquidOctopusLoader } from './LiquidOctopusLoader'
import { TickIndicatorIcon, CopyIndicatorIcon, SparkleIndicatorIcon } from './CopyIndicatorCurve'
-import { ChevronRightIcon, CloseIcon, LogOutIcon, StarIcon, GithubOctocatLogo } from './icons'
+import { ChevronRightIcon, CloseIcon, LogOutIcon, StarIcon, GithubOctocatLogo, MicrosoftStoreLogo } from './icons'
import { HotkeyRecorder } from './HotkeyRecorder'
import { playDialTickSound, playToggleSound, playButtonClickSound } from '../lib/soundEffects'
import { useTranslation } from '../i18n'
@@ -209,18 +209,33 @@ export function Settings({ inlineIndicatorStyle }: { inlineIndicatorStyle?: bool
<span>{t('footer.supportOnKofi')}</span>
</button>
- {/* Secondary Action: GitHub Star */}
- <button
- className="github-promo-btn"
- onClick={() => {
- playButtonClickSound()
- window.open('https://github.com/Deepender25/Edge-Drop', '_blank')
- }}
- >
- <GithubOctocatLogo width={14} height={14} className="github-octocat-icon" />
- <span>{t('footer.starOnGithub')}</span>
- <StarIcon width={13} height={13} className="star-icon" fill="#fbbf24" stroke="#fbbf24" style={{ marginLeft: 2 }} />
- </button>
+ {/* Secondary Action: GitHub Star on GitHub builds / Review on Microsoft Store for Store builds */}
+ {isStoreBuild ? (
+ <button
+ type="button"
+ className="store-review-promo-btn"
+ onClick={() => {
+ playButtonClickSound()
+ window.open('ms-windows-store://review/?ProductId=9P3JMHN9M4NR', '_blank')
+ }}
+ >
+ <MicrosoftStoreLogo width={14} height={14} className="store-logo-icon" />
+ <span>{t('footer.reviewOnStore')}</span>
+ </button>
+ ) : (
+ <button
+ type="button"
+ className="github-promo-btn"
+ onClick={() => {
+ playButtonClickSound()
+ window.open('https://github.com/Deepender25/Edge-Drop', '_blank')
+ }}
+ >
+ <GithubOctocatLogo width={14} height={14} className="github-octocat-icon" />
+ <span>{t('footer.starOnGithub')}</span>
+ <StarIcon width={13} height={13} className="star-icon" fill="#fbbf24" stroke="#fbbf24" style={{ marginLeft: 2 }} />
+ </button>
+ )}
</div>
<div className="app-version-footer">
<span>{t('footer.version')} {currentVersion || '0.3.1'}</span>
diff --git a/src/components/icons.tsx b/src/components/icons.tsx
index 20f1107..c50e484 100644
--- a/src/components/icons.tsx
+++ b/src/components/icons.tsx
@@ -39,7 +39,6 @@ import {
Files,
Globe,
Smile,
- Clock,
Users,
PawPrint,
Utensils,
@@ -77,6 +76,18 @@ export const GithubOctocatLogo = (p: P) => (
</svg>
)
+export const MicrosoftStoreLogo = (p: P) => {
+ const size = Number(p.width ?? p.height ?? 14)
+ return (
+ <svg viewBox="0 0 16 16" width={size} height={size} fill="none" style={{ flexShrink: 0 }} {...(p as any)}>
+ <rect x="1" y="1" width="6.5" height="6.5" rx="0.5" fill="#f25022" />
+ <rect x="8.5" y="1" width="6.5" height="6.5" rx="0.5" fill="#7fba00" />
+ <rect x="1" y="8.5" width="6.5" height="6.5" rx="0.5" fill="#00a4ef" />
+ <rect x="8.5" y="8.5" width="6.5" height="6.5" rx="0.5" fill="#ffb900" />
+ </svg>
+ )
+}
+
export const RotateCcwIcon = uiIcon(RotateCcw)
export const CoffeeIcon = uiIcon(Coffee)
export const HeartIcon = uiIcon(Heart)
diff --git a/src/i18n/translations.ts b/src/i18n/translations.ts
index 4918f29..6270010 100644
--- a/src/i18n/translations.ts
+++ b/src/i18n/translations.ts
@@ -281,6 +281,7 @@ export interface TranslationKeys {
supportPromo: string
supportOnKofi: string
starOnGithub: string
+ reviewOnStore?: string
githubPromo: string
version: string
}
@@ -739,6 +740,7 @@ export const en: TranslationKeys = {
"quitTitle": "Quit Edge-Drop",
"quitDesc": "Close application and stop background process",
"starOnGithub": "Star on GitHub",
+ "reviewOnStore": "Review on Microsoft Store",
"githubPromo": "If you like Edge-Drop, please consider starring the project on GitHub!",
"version": "Version",
"supportPromo": "Edge-Drop is 100% free & open-source. If it helps your daily workflow, consider supporting development to make it even better!",
diff --git a/src/styles/settings.css b/src/styles/settings.css
index 1c9cb4a..ff478ba 100644
--- a/src/styles/settings.css
+++ b/src/styles/settings.css
@@ -540,8 +540,9 @@
transform: scale(0.98);
}
-/* GitHub Star Promo Footer */
-.github-promo-btn {
+/* Secondary Action Promo Footer (GitHub Star on GitHub builds / Store Review on Store builds) */
+.github-promo-btn,
+.store-review-promo-btn {
display: inline-flex;
align-items: center;
justify-content: center;
@@ -561,17 +562,21 @@
transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
-.github-promo-btn:hover {
+.github-promo-btn:hover,
+.store-review-promo-btn:hover {
background: #252525;
color: #ffffff;
transform: translateY(-1px);
}
-.github-promo-btn:active {
+.github-promo-btn:active,
+.store-review-promo-btn:active {
transform: scale(0.98);
}
-.github-promo-btn .github-octocat-icon {
+.github-promo-btn .github-octocat-icon,
+.store-review-promo-btn .store-logo-icon {
+ flex-shrink: 0;
color: rgba(255, 255, 255, 0.9);
}
diff --git a/tests/storePackaging.test.ts b/tests/storePackaging.test.ts
index 30d0536..31079f0 100644
--- a/tests/storePackaging.test.ts
+++ b/tests/storePackaging.test.ts
@@ -188,6 +188,15 @@ describe('GitHub vs Store packaging contracts (on-disk, not assumed)', () => {
expect(src).toContain('hasUpdatePrompt = !isStoreBuild &&')
})
+ it('Settings renders Store review button on Store builds and GitHub star on GitHub builds', () => {
+ const src = read('src/components/Settings.tsx')
+ expect(src).toContain('isStoreBuild ? (')
+ expect(src).toContain('store-review-promo-btn')
+ expect(src).toContain('ms-windows-store://review/?ProductId=9P3JMHN9M4NR')
+ expect(src).toContain('github-promo-btn')
+ expect(src).toContain('https://github.com/Deepender25/Edge-Drop')
+ })
+
it('updater module hard-returns on Store for every public entry', () => {
const src = read('electron/main/updater.ts')
expect(src).toMatch(/export function quitAndInstallUpdate[\s\S]*if \(isStoreBuild\(\)\) return/)