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:
parent
2acd0e3ccb
commit
0b823c32bd
6
node_modules/@capacitor/android/capacitor/.classpath
generated
vendored
Normal file
6
node_modules/@capacitor/android/capacitor/.classpath
generated
vendored
Normal 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
34
node_modules/@capacitor/android/capacitor/.project
generated
vendored
Normal 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>
|
||||||
2
node_modules/@capacitor/android/capacitor/.settings/org.eclipse.buildship.core.prefs
generated
vendored
Normal file
2
node_modules/@capacitor/android/capacitor/.settings/org.eclipse.buildship.core.prefs
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
connection.project.dir=../../../../android
|
||||||
|
eclipse.preferences.version=1
|
||||||
@ -87,6 +87,15 @@ export const Hero = ({ onGenerate, generatedSheet, isGenerating }) => {
|
|||||||
setAge(idea.age);
|
setAge(idea.age);
|
||||||
setSelectedSection(validSection);
|
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
|
// Auto-generate for surprise - use validSection directly, not state
|
||||||
if (onGenerate) {
|
if (onGenerate) {
|
||||||
onGenerate({
|
onGenerate({
|
||||||
@ -116,6 +125,14 @@ export const Hero = ({ onGenerate, generatedSheet, isGenerating }) => {
|
|||||||
|
|
||||||
const handleCreate = () => {
|
const handleCreate = () => {
|
||||||
if (onGenerate && !isGenerating) {
|
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] });
|
onGenerate({ theme, age, sections: [selectedSection] });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user