From 099425d240a3f86273a7d08b899cc9900e52c593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Mata?= Date: Tue, 5 Aug 2025 14:35:01 -0700 Subject: [PATCH] First quick Sure rebrand (#74) * First cut of smallest rebrand, pending icons * Leave SQL schema tokens/user names the same for now * First batch of logos * Release notes/what's new * /releases missing * redirect_uri for sureapp:// * Padded logo * Test the correct /releases URL * Missed a few mobile URIs * Some icons/asssets from /website/ repo * Seed/sample data user @sure.local now * New screenshot * Want to keep their legal "boilerplate" from the upstream repo --- .cursor/rules/ui-ux-design-guidelines.mdc | 2 +- .env.example | 6 +- CONTRIBUTING.md | 18 +++--- README.md | 10 ++-- app/assets/images/logo.svg | 24 ++++++-- app/assets/images/logomark-color.svg | 47 ++++++++++++---- app/assets/images/logomark.svg | 53 ++++++++++++------ ...ackground.png => sure-plus-background.png} | Bin ...ackground.svg => sure-plus-background.svg} | 0 ...maybe-plus-logo.png => sure-plus-logo.png} | Bin app/controllers/pages_controller.rb | 6 +- app/mailers/application_mailer.rb | 2 +- app/models/demo/generator.rb | 6 +- app/models/provider/github.rb | 4 +- .../authorizations/form_post.html.erb | 2 +- .../doorkeeper/authorizations/new.html.erb | 6 +- app/views/layouts/shared/_footer.html.erb | 2 +- app/views/layouts/shared/_head.html.erb | 4 +- app/views/pwa/manifest.json.erb | 6 +- app/views/settings/billings/show.html.erb | 4 +- compose.example.yml | 4 +- config/locales/views/layout/en.yml | 2 +- config/locales/views/onboardings/en.yml | 2 +- config/locales/views/settings/en.yml | 2 +- config/locales/views/subscriptions/en.yml | 2 +- config/locales/views/subscriptions/tr.yml | 2 +- docs/hosting/docker.md | 4 +- lib/tasks/benchmarking.rake | 2 +- package.json | 4 +- perf.rake | 2 +- public/android-chrome-192x192.png | Bin 2552 -> 17715 bytes public/android-chrome-512x512.png | Bin 5234 -> 72063 bytes public/apple-touch-icon.png | Bin 2583 -> 16430 bytes public/favicon-16x16.png | Bin 486 -> 695 bytes public/favicon-32x32.png | Bin 969 -> 1521 bytes public/favicon.ico | Bin 15086 -> 15406 bytes public/safari-pinned-tab.svg | 15 ++++- test/controllers/pages_controller_test.rb | 2 +- test/integration/oauth_mobile_test.rb | 8 +-- .../vcr_cassettes/stripe/checkout_session.yml | 4 +- 40 files changed, 161 insertions(+), 96 deletions(-) rename app/assets/images/{maybe-plus-background.png => sure-plus-background.png} (100%) rename app/assets/images/{maybe-plus-background.svg => sure-plus-background.svg} (100%) rename app/assets/images/{maybe-plus-logo.png => sure-plus-logo.png} (100%) diff --git a/.cursor/rules/ui-ux-design-guidelines.mdc b/.cursor/rules/ui-ux-design-guidelines.mdc index cabe097f9..af3334325 100644 --- a/.cursor/rules/ui-ux-design-guidelines.mdc +++ b/.cursor/rules/ui-ux-design-guidelines.mdc @@ -1,5 +1,5 @@ --- -description: This file describes Maybe's design system and how views should be styled +description: This file describes Sure's design system and how views should be styled globs: app/views/**,app/helpers/**,app/javascript/controllers/** alwaysApply: true --- diff --git a/.env.example b/.env.example index 00bde4ad0..ae54687a9 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ # ================================ PLEASE READ =========================================================== -# This file outlines all the possible environment variables supported by the Maybe app for self hosting. +# This file outlines all the possible environment variables supported by the Sure app for self hosting. # # If you're a developer setting up your local environment, please use `.env.local.example` instead. # ======================================================================================================== @@ -32,7 +32,7 @@ SECURITIES_PROVIDER=twelve_data PORT=3000 # SMTP Configuration -# This is only needed if you intend on sending emails from your Maybe instance (such as for password resets or email financial reports). +# This is only needed if you intend on sending emails from your Sure instance (such as for password resets or email financial reports). # Resend.com is a good option that offers a free tier for sending emails. SMTP_ADDRESS= SMTP_PORT=465 @@ -50,7 +50,7 @@ POSTGRES_PASSWORD=postgres POSTGRES_USER=postgres # App Domain -# This is the domain that your Maybe instance will be hosted at. It is used to generate links in emails and other places. +# This is the domain that your Sure instance will be hosted at. It is used to generate links in emails and other places. APP_DOMAIN= # Disable enforcing SSL connections diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 45c1b4264..e032cd731 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,21 +1,21 @@ -# Contributing to Maybe +# Contributing to Sure -It means so much that you're interested in contributing to Maybe! Seriously. Thank you. The entire community benefits from these contributions! +It means so much that you're interested in contributing to Sure! Seriously. Thank you. The entire community benefits from these contributions! ## House Rules -- Before contributing, familiarize yourself with our project conventions. You should read through our [Project Conventions Rule](https://github.com/maybe-finance/maybe/.cursor/rules/project-conventions.mdc), which is intended for LLMs, but is also an excellent primer on how we write code for Maybe. +- Before contributing, familiarize yourself with our project conventions. You should read through our [Project Conventions Rule](https://github.com/we-promise/sure/blob/main/.cursor/rules/project-conventions.mdc), which is intended for LLMs, but is also an excellent primer on how we write code for Sure. - While totally optional, consider using Cursor + VSCode as it will automatically apply our project conventions to your code via the `.cursor/rules` directory. -- Before contributing, please check if it already exists in [issues](https://github.com/maybe-finance/maybe/issues) or [PRs](https://github.com/maybe-finance/maybe/pulls) +- Before contributing, please check if it already exists in [issues](https://github.com/we-promise/sure/issues) or [PRs](https://github.com/we-promise/sure/pulls) - Given the speed at which we're moving on the codebase, we don't assign issues or "give" issues to anyone. - When multiple PRs are submitted for the same issue, we take the one that most succinctly & efficiently solves a given problem and stays within the scope of work. - Priority is generally given to previous committers as they've proven familiarity with the codebase and product. ## What should I contribute? -As we are still in the early days of this project, we recommend [heading over to the Wiki](https://github.com/maybe-finance/maybe/wiki) to get a better idea of _what_ to contribute. +As we are still in the early days of this project, we recommend [heading over to the Wiki](https://github.com/we-promise/sure/wiki) to get a better idea of _what_ to contribute. -In general, _full features_ that get us closer to [our Vision](https://github.com/maybe-finance/maybe/wiki/Vision) are the most valuable contributions at this stage. +In general, _full features_ that get us closer to [our šŸ”œ Vision](https://github.com/we-promise/sure/wiki/Vision) are the most valuable contributions at this stage. ## Development @@ -25,9 +25,9 @@ To get setup for local development, you have two options: 1. [Dev Containers](https://code.visualstudio.com/docs/devcontainers/containers) with VSCode (see the `.devcontainer` folder) 2. Local Development - - [Mac Setup Guide](https://github.com/maybe-finance/maybe/wiki/Mac-Dev-Setup-Guide) - - [Linux Setup Guide](https://github.com/maybe-finance/maybe/wiki/Linux-Dev-Setup-Guide) - - [Windows Setup Guide](https://github.com/maybe-finance/maybe/wiki/Windows-Dev-Setup-Guide) + - [Mac Setup Guide](https://github.com/we-promise/sure/wiki/Mac-Dev-Setup-Guide) + - [Linux Setup Guide](https://github.com/we-promise/sure/wiki/Linux-Dev-Setup-Guide) + - [Windows Setup Guide](https://github.com/we-promise/sure/wiki/Windows-Dev-Setup-Guide) ### Making a Pull Request diff --git a/README.md b/README.md index 5a33be797..64cca23f5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -maybe_hero +sure_hero

@@ -30,11 +30,11 @@ The business end of things didn't work out, and so they stopped developing the a After spending nearly $1 million on development (employees, contractors, data providers, infra, etc.), the team open-sourced the app. Their goal was to let users self-host it for free — and eventually launch a hosted version for a small fee. -They actually did launch that hosted version… briefly. +They actually did launch that hosted version … briefly. That also didn’t work out — at least not as a sustainable B2C business — so now here we are: hosting a community-maintained fork to keep the codebase alive and see where this can go next. -Wanna join us? +Join us! ## Hosting ~Maybe~Sure @@ -48,7 +48,7 @@ You’re free to fork it under the AGPLv3 license — but we’d love it if you To stay compliant and avoid trademark issues: - Be sure to include the original [AGPLv3 license](https://github.com/maybe-finance/maybe/blob/main/LICENSE) and clearly state in your README that your fork is based on Maybe Finance but is **not affiliated with or endorsed by** Maybe Finance Inc. -- Don’t use the word ā€œMaybeā€ in your project name or logo — it’s a trademark of Maybe Finance Inc. +- "Maybe" is a trademark of Maybe Finance Inc. and therefore, use of it is NOT allowed in forked repositories (or the logo) ## Local Development Setup @@ -74,7 +74,7 @@ rake demo_data:default Visit http://localhost:3000 to view the app. You can log in with these demo credentials (from the DB seed): -- Email: `user@maybe.local` +- Email: `user@sure.local` - Password: `password` For further instructions, see guides below. diff --git a/app/assets/images/logo.svg b/app/assets/images/logo.svg index 013ffe189..afbf499b5 100644 --- a/app/assets/images/logo.svg +++ b/app/assets/images/logo.svg @@ -1,7 +1,19 @@ - - - - - - + + + + + + + + sure + diff --git a/app/assets/images/logomark-color.svg b/app/assets/images/logomark-color.svg index 2c1bf71d3..d7556c509 100644 --- a/app/assets/images/logomark-color.svg +++ b/app/assets/images/logomark-color.svg @@ -1,12 +1,35 @@ - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/assets/images/logomark.svg b/app/assets/images/logomark.svg index ac572615b..332f7bd32 100644 --- a/app/assets/images/logomark.svg +++ b/app/assets/images/logomark.svg @@ -1,19 +1,36 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/assets/images/maybe-plus-background.png b/app/assets/images/sure-plus-background.png similarity index 100% rename from app/assets/images/maybe-plus-background.png rename to app/assets/images/sure-plus-background.png diff --git a/app/assets/images/maybe-plus-background.svg b/app/assets/images/sure-plus-background.svg similarity index 100% rename from app/assets/images/maybe-plus-background.svg rename to app/assets/images/sure-plus-background.svg diff --git a/app/assets/images/maybe-plus-logo.png b/app/assets/images/sure-plus-logo.png similarity index 100% rename from app/assets/images/maybe-plus-logo.png rename to app/assets/images/sure-plus-logo.png diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 1fe96e271..52e180425 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -33,11 +33,11 @@ class PagesController < ApplicationController # Fallback if no release notes are available if @release_notes.nil? @release_notes = { - avatar: "https://github.com/maybe-finance.png", - username: "maybe-finance", + avatar: "https://github.com/we-promise.png", + username: "we-promise", name: "Release notes unavailable", published_at: Date.current, - body: "

Unable to fetch the latest release notes at this time. Please check back later or visit our GitHub releases page directly.

" + body: "

Unable to fetch the latest release notes at this time. Please check back later or visit our GitHub releases page directly.

" } end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 149b8a787..7ab4f5d27 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,4 +1,4 @@ class ApplicationMailer < ActionMailer::Base - default from: email_address_with_name(ENV.fetch("EMAIL_SENDER", "sender@maybe.local"), "Maybe Finance") + default from: email_address_with_name(ENV.fetch("EMAIL_SENDER", "sender@sure.local"), "Sure Finance") layout "mailer" end diff --git a/app/models/demo/generator.rb b/app/models/demo/generator.rb index b530b2736..9a1c98818 100644 --- a/app/models/demo/generator.rb +++ b/app/models/demo/generator.rb @@ -38,7 +38,7 @@ class Demo::Generator end puts "šŸ‘„ Creating empty family..." - create_family_and_users!("Demo Family", "user@maybe.local", onboarded: true, subscribed: true) + create_family_and_users!("Demo Family", "user@sure.local", onboarded: true, subscribed: true) puts "āœ… Empty demo data loaded successfully!" end @@ -53,14 +53,14 @@ class Demo::Generator end puts "šŸ‘„ Creating new user family..." - create_family_and_users!("Demo Family", "user@maybe.local", onboarded: false, subscribed: false) + create_family_and_users!("Demo Family", "user@sure.local", onboarded: false, subscribed: false) puts "āœ… New user demo data loaded successfully!" end end # Generate comprehensive realistic demo data with multi-currency - def generate_default_data!(skip_clear: false, email: "user@maybe.local") + def generate_default_data!(skip_clear: false, email: "user@sure.local") if skip_clear puts "ā­ļø Skipping data clearing (appending new family)..." else diff --git a/app/models/provider/github.rb b/app/models/provider/github.rb index 208049c53..e4c0ccf9d 100644 --- a/app/models/provider/github.rb +++ b/app/models/provider/github.rb @@ -2,8 +2,8 @@ class Provider::Github attr_reader :name, :owner, :branch def initialize - @name = "maybe" - @owner = "maybe-finance" + @name = "sure" + @owner = "we-promise" @branch = "main" end diff --git a/app/views/doorkeeper/authorizations/form_post.html.erb b/app/views/doorkeeper/authorizations/form_post.html.erb index d9c0a15be..3caec37e0 100644 --- a/app/views/doorkeeper/authorizations/form_post.html.erb +++ b/app/views/doorkeeper/authorizations/form_post.html.erb @@ -8,7 +8,7 @@ -<% turbo_disabled = @pre_auth.redirect_uri&.start_with?("maybeapp://") || params[:display] == "mobile" %> +<% turbo_disabled = @pre_auth.redirect_uri&.start_with?("sureapp://") || params[:display] == "mobile" %> <%= form_tag @pre_auth.redirect_uri, method: :post, name: :redirect_form, authenticity_token: false, data: { turbo: !turbo_disabled } do %> <% auth.body.compact.each do |key, value| %> <%= hidden_field_tag key, value %> diff --git a/app/views/doorkeeper/authorizations/new.html.erb b/app/views/doorkeeper/authorizations/new.html.erb index 30c3ebfa7..6bd9859dd 100644 --- a/app/views/doorkeeper/authorizations/new.html.erb +++ b/app/views/doorkeeper/authorizations/new.html.erb @@ -1,4 +1,4 @@ -<% if params[:redirect_uri]&.start_with?('maybeapp://') || params[:display] == 'mobile' %> +<% if params[:redirect_uri]&.start_with?('sureapp://') || params[:display] == 'mobile' %> <% end %> @@ -24,7 +24,7 @@ <% end %>
- <% turbo_disabled = params[:redirect_uri]&.start_with?("maybeapp://") || params[:display] == "mobile" %> + <% turbo_disabled = params[:redirect_uri]&.start_with?("sureapp://") || params[:display] == "mobile" %> <%= form_tag oauth_authorization_path, method: :post, class: "w-full", data: { turbo: !turbo_disabled } do %> <%= hidden_field_tag :client_id, @pre_auth.client.uid, id: nil %> <%= hidden_field_tag :redirect_uri, @pre_auth.redirect_uri, id: nil %> @@ -71,6 +71,6 @@

- By authorizing, you allow this app to access your Maybe data according to the permissions above. + By authorizing, you allow this app to access your Sure data according to the permissions above.

diff --git a/app/views/layouts/shared/_footer.html.erb b/app/views/layouts/shared/_footer.html.erb index 029a0b5a5..bb8b8aa35 100644 --- a/app/views/layouts/shared/_footer.html.erb +++ b/app/views/layouts/shared/_footer.html.erb @@ -1,6 +1,6 @@