Commit graph

374 commits

Author SHA1 Message Date
Andrii Andrushchyshyn
dd5b79c1c6
refactor: improve dashed line display logic
• consolidate display conditions into shouldNotDisplay flag
• use today and currentMonth for date comparisons
2025-05-09 22:45:59 +03:00
Andrii Andrushchyshyn
97b7bfb974
Add dashed line style for incomplete chart data (#176)
Implemented a dashed line style for the parts of the chart that represent data which may still change — such as the current hour in today's view.
2025-05-09 10:48:07 -07:00
Bill Yang
417849f42c Merge branch 'master' of github.com:goldflag/frogstats 2025-05-08 21:14:00 -07:00
Bill Yang
473eac01a5 Enhance filter functionality in BaseStandardSection component and update Google Tag Manager documentation formatting 2025-05-08 21:13:57 -07:00
Bill Yang
06100f3373
improve favicon and docs (#169) 2025-05-08 20:41:50 -07:00
s0ders
175d889e62
chore(client/Dockerfile): replaced legacy ENV syntax for key/value. (#149)
See https://docs.docker.com/reference/dockerfile/#env explaining that
the legacy syntax "ENV key value" is now deprecated. The new syntax "ENV
key=value foo=bar" allows for clearer Dockerfiles.
2025-05-08 19:41:13 +03:00
Bill Yang
240668a1ac Refactor NoData component and update tracking script URL in documentation
- Refactored the NoData component to always display the alert with tracking instructions.
- Updated the tracking script URL in the documentation from `https://api.ribbit.io` to `https://app.rybbit.io` for consistency.
2025-05-07 14:53:45 -07:00
Bill Yang
222484e5c5 Update script source URLs in components to use /api path
- Changed script source URLs in NoData, SignupPage, and ScriptBuilder components to point to /api/script.js for consistency and improved structure.
2025-05-07 14:42:43 -07:00
Bill Yang
4c3b8977a5 Update script source URLs to use global origin
- Changed script source URLs in NoData, SignupPage, and ScriptBuilder components to use globalThis.location.origin instead of BACKEND_URL.
- Updated the script tag to use data-site-id attribute for consistency across components.
2025-05-07 11:08:07 -07:00
Bill Yang
4f5eb6f36d
Origin fallback (#136)
* origin fallback

* Revert "origin fallback"

This reverts commit ac5e17aff4.

* origin fallback
2025-05-07 10:57:37 -07:00
Andrii Andrushchyshyn
3a57f982d9
add MIUI Browser logo (#127) 2025-05-07 01:13:14 +03:00
Andrii Andrushchyshyn
a7be8971d3
add Quark browser logo (#126) 2025-05-07 00:36:41 +03:00
Andrii Andrushchyshyn
9da01364ea
Fix realtime page (#124)
* Fix CSS styles causing scrollbar visibility on non scrollable page.

* Fix Crimea's geographic boundaries

to align with internationally recognized borders

* Fix hexagon flickering on the globe during zoom

Implemented a mechanism for deferred change of the height of the base hexagons, depending on the distance from the globe.
2025-05-06 09:41:55 -07:00
Bill Yang
ff4f2e1246 Add page titles using useSetPageTitle hook across various components
- Implemented the useSetPageTitle hook to set appropriate titles for the Home, Events, Funnels, Goals, Journeys, Main, Map, Realtime, Reports, Retention, Sessions, User, Users, Login, Account, Organizations, Subscription, and Signup pages.
- This enhances SEO and user experience by providing clear context for each page.
2025-05-05 17:19:24 -07:00
Andrii Andrushchyshyn
8d56c47059
Fix geo-boundaries for Crimea in accordance with international recognition (#115)
- Correct administrative boundaries of Crimea to reflect Ukraine's sovereignty
2025-05-06 01:08:58 +03:00
Andrii Andrushchyshyn
f4ca270abe
Fix users page (sorting) (#114)
* fix sortings in users page
* use DESC sorting by default
2025-05-06 01:04:11 +03:00
Bill Yang
cf06bbc8ca Fix reverse color 2025-05-05 08:43:16 -07:00
Bill Yang
88a365ad2f Fix script tag formatting in NoData and Signup components; update conditional rendering in BaseStandardSection; adjust layout in Countries, Devices, Pages, and Referrers sections for improved alignment and consistency. 2025-05-04 21:57:07 -07:00
Bill Yang
0728b85cad Update Pages and RealtimePage components to truncate labels and adjust layout
- Modified `getLabel` in the Pages component to truncate strings to a maximum of 30 characters for better readability.
- Added `items-start` class to the layout of the RealtimePage component for improved alignment of elements.
2025-05-04 12:16:31 -07:00
Bill Yang
09f0568d14 Remove example HTML file and fix script tag formatting in ScriptBuilder component 2025-05-04 09:23:41 -07:00
Bill Yang
cdd40216ce Enhance StandardSection components with expandable functionality
- Added `expanded` and `close` props to StandardSection and its dialog components for better state management.
- Integrated expand/collapse button in various sections (Countries, Devices, Pages, Referrers) to improve user interaction.
- Updated layout to accommodate new button and ensure consistent styling across sections.
2025-05-04 09:21:47 -07:00
Bill Yang
4447e5d6e7 Remove CLAUDE.md file and update styling in various components for improved mobile responsiveness. Added MobileSidebar to JourneysPage and adjusted padding in MapPage. Enhanced Overview component to support reverse color logic in ChangePercentage and Stat components. 2025-05-04 08:40:39 -07:00
Bill Yang
9e61993269
Continue (#110)
* continue

* continue
2025-05-04 00:51:55 -07:00
Bill Yang
9e39883b37 Update contact methods to improve user experience
- Replaced email links with a direct contact page URL across multiple components, including Subscribe, PricingSection, Contact, and PrivacyPolicy.
- Enhanced navigation for custom pricing inquiries by redirecting users to the contact page instead of email.
2025-05-04 00:18:31 -07:00
Bill Yang
1f782b6274 Enhance subscription pricing options and custom tier handling
- Added "Custom" tier option to event pricing in the subscription page and PricingSection component.
- Updated logic to handle custom pricing inquiries via email redirection.
- Adjusted pricing display to accommodate custom tier scenarios.
- Changed contact email from founders@rybbit.io to hello@rybbit.io across relevant components.
2025-05-04 00:12:05 -07:00
Bill Yang
0f43f62103 Refactor Stripe pricing retrieval and update pricing constants
- Replaced direct usage of STRIPE_PRICES with a new getStripePrices function for improved flexibility in pricing retrieval.
- Updated pricing details in the STRIPE_PRICES constant to reflect new price IDs.
- Enhanced subscription handling in various components to utilize the updated pricing structure.
2025-05-03 22:51:42 -07:00
Bill Yang
e1adb3a2a3 Update subscription pricing and improve subscription handling
- Changed subscription cancellation message from "Ends on" to "Cancels on" for clarity.
- Updated subscription data structure to require `cancelAtPeriodEnd` field.
- Adjusted Stripe pricing for various plans, increasing monthly and annual prices.
- Modified pricing display logic in the PricingSection component to reflect new prices.
- Increased default event limit for users without an active subscription from 10,000 to 100,000.
- Enhanced subscription retrieval to include `cancelAtPeriodEnd` status.
2025-05-03 22:17:41 -07:00
Bill Yang
2988e7b079 Add demo mode support and improve EventList component
- Introduced NEXT_PUBLIC_DEMO environment variable in docker-compose for demo mode configuration.
- Updated EventList component to display a "No Data" message when in small size mode.
- Enhanced TopBar component to show a sign-up link when in demo mode.
- Added IS_DEMO constant to manage demo mode state in the application.
2025-05-03 17:45:04 -07:00
Bill Yang
97c29dafac
Fix callbacks (#107)
* Fix callbacks

* fix layout

* Remove callbacks

* Disable redirects

* fix caddy

* test disable basepath

* wip

* test caddy fix

* remove basepath

* fml

* pray

* kms

* pray

* wip

* Test
2025-05-03 16:27:46 -07:00
Bill Yang
dd3739a716 fix layout 2025-05-03 14:12:25 -07:00
Bill Yang
8b4529d9e4 Remove NoData component and clean up SiteLayout structure
- Deleted the NoData component to streamline the codebase as it is no longer needed.
- Refactored the SiteLayout component by removing unused NoData handling logic and commented-out code, enhancing clarity and maintainability.
2025-05-03 14:00:21 -07:00
Bill Yang
46b7e85488 Implement NoData component and enhance layout structure
- Introduced a new NoData component to display relevant messages when no data is available.
- Updated the Header component to include the NoData component for better user feedback.
- Refactored the SiteLayout component to remove the previous NoData handling logic, improving clarity.
- Replaced placeholder text in various components with the new NothingFound component for consistent empty state messaging.
2025-05-03 13:58:46 -07:00
Bill Yang
fb70db8718 Enhance login and signup pages with new logo and styling updates
- Added a new Logo component for consistent branding across the application.
- Updated the login page to include the logo at the top of the sign-in card.
- Enhanced the signup page with improved styling for input fields and buttons, including background colors and hover effects.
- Introduced background gradients and adjusted layout for a more visually appealing design.
- Refactored the TopBar component to utilize the new Logo component, improving code maintainability.
2025-05-03 12:28:38 -07:00
Bill Yang
b34aff1153 Update environment variables for cloud integration in Docker configurations
- Added GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET to both docker-compose files for cloud support.
- Included GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET in the environment variables.
- Updated the auth.ts file to enable social login providers for cloud deployments.
2025-05-03 11:43:09 -07:00
Bill Yang
60867a2a7b
Fix cloud (#106) 2025-05-03 09:53:02 -07:00
Bill Yang
8e342f7fde Update messaging in subscription and documentation pages for clarity
- Removed "Cancel anytime" from the subscription checkout message for a more straightforward communication.
- Updated the main heading and introductory text on the documentation page to better reflect the service's value proposition.
- Changed button text to "Track your site now" to enhance user engagement.
- Simplified credit card requirement messaging across various components for improved user understanding.
2025-05-02 18:25:15 -07:00
Bill Yang
8b039aa351 Refactor subscription status handling and update pricing display
- Simplified the SubscriptionData interface by reducing the number of subscription statuses to "expired", "active", and "trialing".
- Updated the pricing display in the Subscribe page and PricingSection component to show monthly pricing instead of annual, enhancing clarity for users.
- Removed redundant comments in globals.css to clean up the stylesheet.
2025-05-02 18:13:08 -07:00
Bill Yang
ddcb5704d1 Refactor ProPlan component and enhance subscription management features
- Renamed handleManageSubscription to createPortalSession for clarity and added flowType parameter to support different subscription actions.
- Introduced new handlers for changing, viewing, and canceling subscriptions, improving user interaction with the subscription management process.
- Updated UI to include separate buttons for changing plans, viewing subscription details, and canceling subscriptions, enhancing user experience and accessibility.
- Modified createPortalSession API to handle different flow types for subscription updates and cancellations, ensuring proper session management with Stripe.
2025-05-02 17:31:40 -07:00
Bill Yang
00c76644f5 Remove subscription API and update related components for improved clarity
- Deleted the subscription.ts file to streamline the codebase as it was no longer in use.
- Updated the useStripeSubscription hook to include additional subscription statuses for better handling of subscription states.
- Enhanced the Subscribe page to redirect users to the settings page if their subscription status is active.
- Cleaned up messaging in the pricing page to simplify user communication regarding event limits.
2025-05-02 17:14:03 -07:00
Bill Yang
6b93d81bee Remove PlanFeaturesCard component and related logic from subscription plans
- Deleted the PlanFeaturesCard component to streamline the subscription page.
- Updated ProPlan and TrialPlan components to remove references to PlanFeaturesCard.
- Refactored plan details handling in ProPlan to directly utilize STRIPE_PRICES for pricing information.
- Cleaned up unused imports and constants in planUtils and constants files for better maintainability.
2025-05-02 16:07:16 -07:00
Bill Yang
ad2c08e9a2 Refactor subscription page and enhance pricing features
- Removed unused plan templates and related functions to streamline the subscription logic.
- Introduced a new feature list for the Pro plan, emphasizing key benefits for users.
- Updated the pricing display to improve clarity and user experience, including a more intuitive billing toggle.
- Added a FAQ section to address common user inquiries regarding event limits and plan changes.
- Enhanced the layout and styling for better responsiveness and visual appeal.
2025-05-02 15:48:05 -07:00
Bill Yang
b220d01a70
events (#103)
* events

* wip

* Remove standardsection

* Enhance EventList and EventProperties components with loading skeletons and size prop

- Added a loading skeleton to EventList and EventProperties components for improved user experience during data fetching.
- Introduced a size prop to both components to allow for flexible rendering of elements based on size (small or large).
- Updated EventsPage to pass the size prop to EventList for consistent styling.

* Implement pagination and filtering for event retrieval

- Enhanced the analytics API to support pagination and filtering for event data retrieval.
- Introduced a new endpoint for fetching events with pagination and filtering capabilities.
- Updated the `useGetEvents` hook to support infinite scrolling and real-time updates.
- Added a new `EventLog` component to the EventsPage for better event tracking.
- Refactored existing event fetching logic to accommodate new query parameters and maintain backward compatibility.
2025-05-02 13:24:30 -07:00
Bill Yang
46fdce73dd Enhance user information and analytics components
- Added 'city' field to UserInfo type and updated related API to include city data.
- Introduced getLanguageName utility function for improved language display in user and session details.
- Updated UserPage and SessionDetails components to display city and formatted language information.
- Refactored Countries component to remove redundant language name logic, utilizing the new utility function instead.
2025-05-01 16:48:00 -07:00
Bill Yang
deab0c0381 Enhance BaseStandardSection and BaseStandardSectionDialog components
- Added a "No Data" message with an info icon in BaseStandardSection when no data is available.
- Improved layout in BaseStandardSectionDialog by adjusting alignment and overflow properties for better responsiveness.
- Updated the getLabel function in Pages component to truncate strings to 30 characters for improved display.
2025-05-01 15:28:50 -07:00
Bill Yang
41c4f63742 Enhance analytics and filters with UTM parameters
- Updated the analytics API and data models to include UTM parameters: utm_source, utm_medium, utm_campaign, utm_term, and utm_content.
- Refactored the useGetGoals and useGetSessions functions to utilize filtered UTM parameters for improved data retrieval.
- Enhanced the Filters component to support UTM parameters, adding new filter options and updating the UI accordingly.
- Updated the Referrers section to include tabs for UTM parameters, allowing users to filter and analyze data based on UTM attributes.
- Improved documentation and type definitions to reflect the addition of UTM parameters across the application.
2025-04-30 21:51:52 -07:00
Bill Yang
87d6916852 Refactor Card component styles and update documentation headings
- Removed animation classes from Card component for a cleaner design.
- Deleted the Showcase page as it was no longer needed.
- Added new sections and reorganized headings in documentation for clarity, including updates to 'Adding Users', 'Self Hosting', 'Track Events', and 'Tracker' pages.
2025-04-30 20:07:42 -07:00
Bill Yang
9b38ed2e23 Refactor analytics API to support funnel management
- Replaced the deleteReport functionality with deleteFunnel, allowing for the deletion of funnels instead of reports.
- Updated the createFunnel API to reference the new funnels table and adjusted error handling for funnel existence and ownership checks.
- Modified the getFunnels API to fetch data from the funnels table, ensuring consistency in data retrieval.
- Removed the obsolete deleteReport file and updated schema to reflect the new funnels structure.
2025-04-30 17:09:02 -07:00
Bill Yang
bd5e19e0e6 Enhance Funnel component with improved metrics display and layout
- Updated the Funnel component to include additional visual indicators for overall conversion and conversion from the previous step.
- Adjusted layout for better spacing and alignment of elements, enhancing readability.
- Simplified the rendering of funnel steps and drop-off metrics for improved user feedback.
- Incorporated percentage-based width for conversion bars to provide a clearer representation of user flow.
2025-04-29 23:47:18 -07:00
Bill Yang
20ed14e293 Refactor Funnel component for improved layout and metrics display
- Updated Funnel component to enhance the layout and spacing of elements for better visual clarity.
- Replaced bar height calculation with percentage-based width for a more responsive design.
- Added total conversion rate summary and improved user feedback on step metrics.
- Simplified the rendering of funnel steps and drop-off indicators for better readability.
2025-04-28 23:04:51 -07:00
Bill Yang
f8b579511b Enhance funnel step functionality with event property filtering
- Added support for event property key and value in FunnelStep type to allow filtering based on event properties.
- Updated FunnelForm component to manage property filtering state and toggle functionality for event steps.
- Enhanced FunnelRow component to display event property information when applicable.
- Modified getFunnel API to include property matching in event queries, improving analytics capabilities.
2025-04-28 22:56:31 -07:00