Commit 6307759
authored
feat: add Astro support to PostHog Wizard (#67)
* Adds initial Astro test application setup
Implements a basic structure for an Astro test application.
Includes essential files like configuration, package.json, and a README for guidance. Also introduces a PostHog component for analytics tracking and basic layout integration.
Updates the .gitignore to exclude unnecessary files and folders specific to build processes and local configurations.
Prepares for project expansion by setting up TypeScript support.
This foundational setup ensures a clean start for future development and testing.
* add PostHog integration AI guidelines for Astro project
* Adds PostHog Astro wizard for seamless integration
Implements an interactive wizard for integrating PostHog with Astro applications.
The wizard guides users through installation steps, including setting up environment variables, confirming use of TypeScript, and handling package installations. It ensures users have the necessary packages and provides documentation for further configuration.
This addition enhances user experience by automating setup tasks and providing clear installation instructions. It further sets up analytics to track Astro version and SDK installation status.
No related issues or tickets are referenced.
* Adds Astro integration support to analytics setup
Implements support for the Astro integration, enhancing the application’s analytics setup capabilities.
- Introduces the Astro configuration including detection and file filtering patterns.
- Adds Astro to the integration order and allows for running the associated setup wizard.
- Updates integration descriptions for better clarity in user prompts.
This addition streamlines the setup process for Astro projects and improves overall analytics functionality.
* Adds end-to-end tests for Astro application
Implements a suite of end-to-end tests for the Astro application, ensuring its functionality in various environments.
Tests include verification of `package.json` updates, successful runs in development and production modes, and build correctness.
This facilitates automated testing and quality assurance in the deployment process.
* Updates README to include Astro integration
Adds Astro to the list of supported frameworks for the wizard.
Updates the CLI integration options to reflect this new addition.
Encourages users to suggest further integrations via GitHub issues.
* Enhances Astro Wizard for improved PostHog integration
Refactors the Astro wizard to streamline PostHog integration steps.
Removes unnecessary TypeScript checks and redundant package installations, simplifying the user flow.
Introduces a new documentation structure and code snippets for easier implementation guidance.
Aims to improve user experience and integration efficiency for analytics in Astro projects.
* Removes environment variable steps from wizard
Eliminates the steps for adding or updating environment variables in the Astro wizard process.
Updates the default changes in the integration configuration to reflect these removals while maintaining the functionality of the PostHog component.
This streamlining aims to simplify the wizard experience and reduce complexity in managing environment variables.
* Removes outdated PostHog documentation sections
Cleans up the documentation by removing irrelevant Next Steps
related to PostHog instrumentation. This improves clarity
for users by eliminating confusion over previously suggested
steps no longer applicable.
Updates content to streamline the user experience in the
Astro and Next.js documentation sources.
* Updates posthog initialization with default date
Incorporates a default value for the date in the posthog initialization.
This change enhances the analytics integration by setting a specific defaults parameter, allowing for more consistent data handling.
* Removes posthog components from Astro test app for more integral test
Upgrades the Astro framework version to 5.10.1 and removes the PostHog integration components to have bare minimum for more accurate E2E tests1 parent 703ac26 commit 6307759
File tree
20 files changed
+4982
-4
lines changed- e2e-tests
- test-applications/astro-test-app
- .vscode
- public
- src/pages
- tests
- src
- astro
- lib
- nextjs
- utils/rules
20 files changed
+4982
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments