from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("mobileapp", "0004_alter_mobileapp_icon"),
    ]

    operations = [
        migrations.AlterModelOptions(
            name="mobileapp",
            options={"verbose_name": "Mobile app settings"},
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="app_id",
            field=models.CharField(
                blank=True,
                default="",
                help_text="Reverse-DNS identifier such as com.mandelblog.client.",
                max_length=255,
                verbose_name="App ID / bundle identifier",
            ),
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="display_mode",
            field=models.CharField(
                choices=[
                    ("standalone", "Standalone"),
                    ("fullscreen", "Fullscreen"),
                    ("minimal-ui", "Minimal UI"),
                    ("browser", "Browser"),
                ],
                default="standalone",
                max_length=32,
                verbose_name="Display mode",
            ),
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="enable_android",
            field=models.BooleanField(
                default=False, verbose_name="Enable Android packaging"
            ),
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="enable_ios",
            field=models.BooleanField(default=False, verbose_name="Enable iOS packaging"),
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="enable_pwa",
            field=models.BooleanField(default=True, verbose_name="Enable PWA"),
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="offline_url",
            field=models.CharField(
                blank=True,
                default="",
                help_text="Optional relative path or absolute URL. Leave blank to use the built-in offline page.",
                max_length=255,
                verbose_name="Offline fallback URL",
            ),
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="orientation",
            field=models.CharField(
                choices=[
                    ("any", "Any"),
                    ("portrait", "Portrait"),
                    ("landscape", "Landscape"),
                    ("portrait-primary", "Portrait primary"),
                    ("portrait-secondary", "Portrait secondary"),
                    ("landscape-primary", "Landscape primary"),
                    ("landscape-secondary", "Landscape secondary"),
                ],
                default="any",
                max_length=32,
                verbose_name="Orientation",
            ),
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="push_notifications_enabled",
            field=models.BooleanField(
                default=False,
                help_text="Reserved for later push-notification integrations.",
                verbose_name="Push notifications enabled",
            ),
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="scope",
            field=models.CharField(
                default="/",
                help_text="Relative path or absolute URL defining the app navigation scope.",
                max_length=255,
                verbose_name="Scope",
            ),
        ),
        migrations.AddField(
            model_name="mobileapp",
            name="splash_image",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=models.deletion.SET_NULL,
                related_name="+",
                to="wagtailimages.image",
                verbose_name="Splash image",
                help_text="Optional splash/source image used for generated native app assets.",
            ),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="background_color",
            field=models.CharField(
                default="#ffffff", max_length=7, verbose_name="Background color"
            ),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="description",
            field=models.TextField(
                blank=True,
                default="",
                help_text="Public app description used in the manifest.",
                verbose_name="Description",
            ),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="icon",
            field=models.ForeignKey(
                blank=True,
                help_text="Square PNG image used for favicon, Apple touch icon, and Android icons.",
                null=True,
                on_delete=models.deletion.SET_NULL,
                related_name="+",
                to="wagtailimages.image",
                verbose_name="App icon",
            ),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="mobile_screenshot",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=models.deletion.SET_NULL,
                related_name="+",
                to="wagtailimages.image",
                verbose_name="Mobile screenshot",
            ),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="mobile_screenshot_size",
            field=models.CharField(blank=True, default="", max_length=32),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="name",
            field=models.CharField(
                default="Website App",
                help_text="Full app name shown in manifest and install prompts.",
                max_length=255,
                verbose_name="App name",
            ),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="short_name",
            field=models.CharField(
                default="Website",
                help_text="Shorter label used on home screens.",
                max_length=64,
                verbose_name="Short name",
            ),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="start_url",
            field=models.CharField(
                default="/",
                help_text="Relative path or absolute URL opened when the app launches.",
                max_length=255,
                verbose_name="Start URL",
            ),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="tablet_screenshot",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=models.deletion.SET_NULL,
                related_name="+",
                to="wagtailimages.image",
                verbose_name="Tablet screenshot",
            ),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="tablet_screenshot_size",
            field=models.CharField(blank=True, default="", max_length=32),
        ),
        migrations.AlterField(
            model_name="mobileapp",
            name="theme_color",
            field=models.CharField(
                default="#0d6efd", max_length=7, verbose_name="Theme color"
            ),
        ),
    ]
