feat: implement Contact Us page with dynamic database seeding and dedicated view controller logic

This commit is contained in:
2026-07-20 19:29:47 +07:00
parent 27fd9e109d
commit a8220ec02d
147 changed files with 12277 additions and 39 deletions
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet id="20260720181500-1" author="antigravity" context="dev, faker">
<!-- Delete if exists to avoid unique constraint on slug -->
<delete tableName="sis_page">
<where>slug = 'contact-us'</where>
</delete>
<insert tableName="sis_page">
<column name="id" valueSequenceNext="sequenceGenerator"/>
<column name="title" value="Contact Us"/>
<column name="slug" value="contact-us"/>
<column name="content" value='{"time": 1721470000000,"blocks":[{"type":"header","data":{"text":"General Information","level":2}},{"type":"paragraph","data":{"text":"For General Campus Inquiries, please call the main switchboard at 413-545-0111. Operators are available from 8:00 a.m. to 5:00 p.m., Monday through Friday."}},{"type":"header","data":{"text":"Directories","level":2}},{"type":"paragraph","data":{"text":"Find contact information for academic departments, campus services, and other resources."}}],"version":"2.29.1"}'/>
<column name="status" value="PUBLISHED"/>
<column name="page_type" value="CONTACT_US"/>
<column name="layout" value="STANDARD"/>
<column name="created_by" value="system"/>
<column name="created_date" valueDate="2026-07-20T00:00:00"/>
</insert>
</changeSet>
</databaseChangeLog>
@@ -41,4 +41,5 @@
<include file="config/liquibase/changelog/20260714113000_update_events_list.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20260718100000_add_doctor_and_specialty.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20260718110000_seed_sample_doctors.xml" relativeToChangelogFile="false"/>
<include file="config/liquibase/changelog/20260720181500_seed_contact_us_page.xml" relativeToChangelogFile="false"/>
</databaseChangeLog>