feat: Add Umami tracking for 'Surprise Me' and 'Create Sheet' button clicks, and include generated Eclipse project configuration files for Capacitor Android.

This commit is contained in:
francy 2026-02-09 17:38:14 +01:00
parent 2acd0e3ccb
commit 0b823c32bd
4 changed files with 59 additions and 0 deletions

6
node_modules/@capacitor/android/capacitor/.classpath generated vendored Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>

34
node_modules/@capacitor/android/capacitor/.project generated vendored Normal file
View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>capacitor-android</name>
<comment>Project capacitor-android created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1770649924853</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@ -0,0 +1,2 @@
connection.project.dir=../../../../android
eclipse.preferences.version=1

View File

@ -87,6 +87,15 @@ export const Hero = ({ onGenerate, generatedSheet, isGenerating }) => {
setAge(idea.age);
setSelectedSection(validSection);
// Track Surprise Me button click with Umami
if (typeof umami !== 'undefined') {
umami.track('surprise_me_click', {
theme: idea.theme,
age: idea.age,
activity_type: validSection
});
}
// Auto-generate for surprise - use validSection directly, not state
if (onGenerate) {
onGenerate({
@ -116,6 +125,14 @@ export const Hero = ({ onGenerate, generatedSheet, isGenerating }) => {
const handleCreate = () => {
if (onGenerate && !isGenerating) {
// Track Create Sheet button click with Umami
if (typeof umami !== 'undefined') {
umami.track('create_sheet_click', {
theme: theme || 'empty',
age: age,
activity_type: selectedSection
});
}
onGenerate({ theme, age, sections: [selectedSection] });
}
};