From 29d751f58060b5330e8bfec7c37d9d17aa8c0ce9 Mon Sep 17 00:00:00 2001 From: Lindsey Bieda Date: Sat, 31 Jan 2026 20:02:52 -0800 Subject: [PATCH 1/6] wip commit to get on the codespace --- config.py | 2 +- static/css/style.css | 33 +++++++++++++++++++++++++++++++++ templates/index.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 5d4fd7f..b764bd9 100644 --- a/config.py +++ b/config.py @@ -40,4 +40,4 @@ 10: "10th House (Career/Reputation) 🏆", 11: "11th House (Friends/Hopes) 👥", 12: "12th House (Spirituality/Subconscious) 🔮" -} +} \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css index 80b0968..ba3e47b 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -458,6 +458,39 @@ input[readonly] { min-width: 180px; } +/* Main CTA Button - Experiment Variant */ +.button-group button.main-cta { + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + color: #ffffff; + font-size: 1.1em; + font-weight: 700; + padding: 18px 32px; + border: 2px solid transparent; + box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4); + transform: scale(1); + transition: all 0.3s ease; +} + +.button-group button.main-cta:hover { + transform: scale(1.05); + box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5); + background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); +} + +.button-group button.main-cta:active { + transform: scale(0.98); +} + +.dark-mode .button-group button.main-cta { + background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); + box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4); +} + +.dark-mode .button-group button.main-cta:hover { + background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); + box-shadow: 0 12px 28px rgba(124, 58, 237, 0.5); +} + /* Responsive design for location search */ @media (max-width: 600px) { .location-search { diff --git a/templates/index.html b/templates/index.html index 1dbde44..64d9393 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,6 +9,50 @@ + + + + {% endblock %} {% block content %} From fdd6fa5901827d24dfcc8e9dc6ef41f2b6462497 Mon Sep 17 00:00:00 2001 From: Lindsey Bieda Date: Sun, 1 Feb 2026 04:24:17 +0000 Subject: [PATCH 2/6] fix swisseph diff changes --- .gitignore | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7bd8769..51e2c44 100644 --- a/.gitignore +++ b/.gitignore @@ -207,4 +207,9 @@ marimo/_lsp/ __marimo__/ # Mac stuff -.DS_Store \ No newline at end of file +.DS_Store + +# swisseph stuff +swisseph/sepl_18.se1.* +swisseph/semo_18.se1.* +swisseph/seas_18.se1.* \ No newline at end of file From 7f9daa25798bea6038f588912b929800b1a6aa62 Mon Sep 17 00:00:00 2001 From: Lindsey Bieda Date: Sun, 1 Feb 2026 04:31:10 +0000 Subject: [PATCH 3/6] Update classes and move into own files --- static/css/style.css | 42 ++++++++++++++++++++++----------- static/js/ld-experiment.js | 48 ++++++++++++++++++++++++++++++++++++++ templates/index.html | 42 +-------------------------------- 3 files changed, 77 insertions(+), 55 deletions(-) create mode 100644 static/js/ld-experiment.js diff --git a/static/css/style.css b/static/css/style.css index ba3e47b..e18afdd 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -110,10 +110,10 @@ input:focus, select:focus { button { font-family: 'Space Mono', monospace; - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - color: white; + background: transparent; + color: #667eea; padding: 15px 30px; - border: none; + border: 2px solid #667eea; border-radius: 25px; font-size: 18px; font-weight: bold; @@ -121,13 +121,14 @@ button { width: 100%; margin-top: 10px; transition: all 0.3s ease; - box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); + box-shadow: none; } button:hover { transform: translateY(-2px); - box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); - background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%); + background: rgba(102, 126, 234, 0.1); + border-color: #5a67d8; + color: #5a67d8; } button:disabled, @@ -140,7 +141,7 @@ button.loading { button:disabled:hover, button.loading:hover { transform: none; - box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); + background: transparent; } /* Spinner Animation */ @@ -386,10 +387,10 @@ button.loading:hover { .location-search button { font-family: 'Space Mono', monospace; - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - color: white; + background: transparent; + color: #667eea; padding: 12px 24px; - border: none; + border: 2px solid #667eea; border-radius: 25px; font-size: 16px; font-weight: bold; @@ -398,14 +399,15 @@ button.loading:hover { width: auto; min-width: auto; transition: all 0.3s ease; - box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); + box-shadow: none; margin-top: 0; } .location-search button:hover { transform: translateY(-2px); - box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); - background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%); + background: rgba(102, 126, 234, 0.1); + border-color: #5a67d8; + color: #5a67d8; } .location-search button:disabled { @@ -416,7 +418,7 @@ button.loading:hover { .location-search button:disabled:hover { transform: none; - box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); + background: transparent; } #locationMap { @@ -491,6 +493,18 @@ input[readonly] { box-shadow: 0 12px 28px rgba(124, 58, 237, 0.5); } +/* Dark mode outline buttons */ +.dark-mode button:not(.main-cta) { + color: #a78bfa; + border-color: #a78bfa; +} + +.dark-mode button:not(.main-cta):hover { + background: rgba(167, 139, 250, 0.1); + border-color: #c4b5fd; + color: #c4b5fd; +} + /* Responsive design for location search */ @media (max-width: 600px) { .location-search { diff --git a/static/js/ld-experiment.js b/static/js/ld-experiment.js new file mode 100644 index 0000000..e4685b2 --- /dev/null +++ b/static/js/ld-experiment.js @@ -0,0 +1,48 @@ +// LaunchDarkly Experiment - Main CTA Button +(function() { + const ldClientId = "692742d0a95e1a0ac789ca56"; + + if (!ldClientId) { + return; + } + + // Wait for LaunchDarkly SDK to be available + if (typeof window.LDClient === 'undefined') { + console.warn('LaunchDarkly SDK not loaded'); + return; + } + + const context = { + kind: 'user', + key: 'anonymous-' + Math.random().toString(36).substring(7), + anonymous: true + }; + + const ldClient = window.LDClient.initialize(ldClientId, context, { + plugins: [ + new SessionReplay() + ] + }); + + ldClient.on('ready', () => { + const showMainCta = ldClient.variation('get-horoscope-main-button-experiment', false); + + if (showMainCta) { + const horoscopeButton = document.querySelector('button[formaction="/chart"]'); + if (horoscopeButton) { + horoscopeButton.classList.add('main-cta'); + } + } + }); + + ldClient.on('change:get-horoscope-main-button-experiment', (value) => { + const horoscopeButton = document.querySelector('button[formaction="/chart"]'); + if (horoscopeButton) { + if (value) { + horoscopeButton.classList.add('main-cta'); + } else { + horoscopeButton.classList.remove('main-cta'); + } + } + }); +})(); diff --git a/templates/index.html b/templates/index.html index 64d9393..0ae5303 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,47 +12,7 @@ - + {% endblock %} {% block content %} From f9ad9677ca30c6c5233c498bd8d8b10fd7293ac2 Mon Sep 17 00:00:00 2001 From: Lindsey Bieda Date: Sat, 31 Jan 2026 20:34:40 -0800 Subject: [PATCH 4/6] Update static/js/ld-experiment.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- static/js/ld-experiment.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/ld-experiment.js b/static/js/ld-experiment.js index e4685b2..697aa08 100644 --- a/static/js/ld-experiment.js +++ b/static/js/ld-experiment.js @@ -18,11 +18,11 @@ anonymous: true }; - const ldClient = window.LDClient.initialize(ldClientId, context, { - plugins: [ - new SessionReplay() - ] - }); + const ldClient = window.LDClient.initialize(ldClientId, context); + + + + ldClient.on('ready', () => { const showMainCta = ldClient.variation('get-horoscope-main-button-experiment', false); From 0cb55b3d6a66e95400f58f45949de3c49e8c6163 Mon Sep 17 00:00:00 2001 From: Lindsey Bieda Date: Sat, 31 Jan 2026 20:34:53 -0800 Subject: [PATCH 5/6] Update static/js/ld-experiment.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- static/js/ld-experiment.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/static/js/ld-experiment.js b/static/js/ld-experiment.js index 697aa08..fe139fd 100644 --- a/static/js/ld-experiment.js +++ b/static/js/ld-experiment.js @@ -2,10 +2,6 @@ (function() { const ldClientId = "692742d0a95e1a0ac789ca56"; - if (!ldClientId) { - return; - } - // Wait for LaunchDarkly SDK to be available if (typeof window.LDClient === 'undefined') { console.warn('LaunchDarkly SDK not loaded'); From 1136679c157b3d225ceae755a91149d675c37e6e Mon Sep 17 00:00:00 2001 From: Lindsey Bieda Date: Sun, 1 Feb 2026 04:44:35 +0000 Subject: [PATCH 6/6] update the permissions for the action --- .github/workflows/launchdarkly-code-refs.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/launchdarkly-code-refs.yml b/.github/workflows/launchdarkly-code-refs.yml index c9f90b4..437da16 100644 --- a/.github/workflows/launchdarkly-code-refs.yml +++ b/.github/workflows/launchdarkly-code-refs.yml @@ -5,6 +5,11 @@ on: types: [opened, synchronize, reopened] branches: [main] +permissions: + contents: read + pull-requests: write + issues: write + jobs: find-feature-flags: runs-on: ubuntu-latest