Group2_Fubangbang_Alpha Sprint 3
Fubangbang Alpha Sprint 3 Product Cover Refactoring and Regression Verification
| Item | Details |
|---|---|
| Course | EE308FZ Software Engineering |
| Assignment requirements | Fifth Assignment Alpha Sprint |
| Team | Group 2 — Fubangbang |
| Sprint period | November 25–26, 2026 |
| Sprint objective | Extract product-cover handling from the publishing view and verify publication, draft restoration, editing and error recovery. |
| Project repository | RederChen/fubangbang-alpha |
| References | Alpha task register, Sprint 2 title-validation baseline, publishing-page source, cover composable, automated results and runtime screenshots. |
1 Sprint Objective and Starting Point
Sprint 2 established a consistent product-title rule for creation and editing. Sprint 3 builds on that version and addresses the publishing view's maintenance problem: file selection, image validation, uploading and cover removal were implemented alongside form fields, draft storage and product submission in Publish.vue.
We selected cover handling for a focused extraction. These operations share their own state and lifecycle, making them a suitable boundary for a Vue composable. The view can then coordinate the form while the composable manages cover operations.
The sprint contains two engineering tasks: A08, extract the responsibility; and A09, verify the affected workflows. Both are complete. This brings the Alpha engineering plan to 9/12 tasks. Chart preparation, blog writing and repository submission are reporting activities and do not increase that engineering count.
Chen Jiayuan led implementation, verification and material integration, with Chen Haoyang providing a smaller supporting contribution.
2 Work Completed During the Sprint
| Task | Work completed | Acceptance evidence |
|---|---|---|
| A08 | Extract cover state, file validation, upload lifecycle, picker and removal operations into useProductCover.ts. | The publishing view uses the composable; frontend types/build and 10 isolated module checks passed. |
| A09 | Check upload rejection, failure/retry, busy states, drafts, publication, editing and persistence. | Focused browser checks, title regression, the existing full browser suite and backend tests passed within the recorded test scope. |
2.1 Responsibility Boundary
| Component | Responsibilities after the extraction |
|---|---|
src/composables/useProductCover.ts | Cover list, upload state, MIME/size checks, upload requests, error feedback, picker operations and cover removal. |
src/views/Publish.vue | Page markup/styles, file-input reference, other form fields/errors, draft policy, existing-product loading, ownership checks and submission. |
| Existing API and backend | Authentication, image validation and storage, upload responses and persisted product data. |
The page passes three references to the composable: the file input, the product-submission state and the photo-error field. The shared error reference lets the composable display an upload error without taking ownership of title, price or category validation.
const {
photoList,
uploading,
triggerFileInput,
onFilesSelected,
removePhoto,
setCover,
} = useProductCover({
fileInputRef,
isSubmitting,
error: toRef(errors, 'photos'),
});
setCover() supports both draft restoration and existing-product loading. The page still decides which URLs those operations may restore. Drafts retain the existing /api/uploads/ restriction, while existing products can retain bundled asset covers.
2.2 Cover Behavior and Concurrency Guard
The interface continues to support one cover per product. JPEG, PNG and WebP are accepted, with a client limit of 5 * 1024 * 1024 bytes. Unsupported or oversized files are rejected before an upload request and leave the current cover intact.
The file input is reset after selection so the same file can be selected again after rejection or failure. An unsuccessful upload keeps the previous cover, displays the error and clears the busy state in finally.
We also added a busy-state check inside the file-change handler. During an upload or product submission, conflicting cover actions are blocked. This closes a gap where another change event could otherwise start an overlapping upload.
The application changes are limited to the publishing view and the new composable. The existing API routes, backend implementation, title rules and page styles are preserved.
3 Verification and Running Images
Verification used Windows, Node.js 24.19.0, npm 11.17.0, Python 3.13.12, Microsoft Edge and isolated SQLite databases. Browser automation exercised the running Vue interface and live FastAPI endpoints with disposable accounts and upload storage.
3.1 Automated Results
| Check | Recorded result |
|---|---|
| Frontend type check | Passed |
| Frontend production build | Passed |
| Isolated cover composable checks | 10 passed |
| Focused cover browser checks | 14 passed, including a zero-uncaught-page-error assertion |
| Existing title API/browser checks | 15 passed |
| Existing full browser suite | 16 reported scenario groups passed |
| Backend regression suite | 158 passed, 3 skipped, 0 failed |
The isolated checks use real Vue refs and stubbed upload responses. They verify state transitions, error sharing, picker/removal guards and client size boundaries. Exactly 5 MiB passes client screening; one byte above it is rejected. The exact-boundary check does not claim that arbitrary bytes of that size form a valid backend image.
The live browser checks use genuine JPEG, PNG and WebP fixtures. Corrupt and empty image selections reach the real upload endpoint and receive HTTP 422. Delayed or interrupted requests test busy-state protection and failure recovery.
The three skipped backend tests require PostgreSQL concurrency or migration behavior. One existing Starlette/httpx deprecation warning was recorded. Database results in this report apply to SQLite.
3.2 Affected Workflow Acceptance
| Scenario | Observed outcome |
|---|---|
| Select a valid JPEG, PNG or WebP | Each selection sends one upload request and displays the returned cover. |
| Select an unsupported or oversized file | A validation message appears; no upload is sent and the old cover remains. |
| Select a corrupt or empty image | The backend rejection is displayed and the upload returns to idle. |
| Retry the same rejected or failed file | The selection is processed again; a valid retry succeeds. |
| Hold an upload in progress | A second upload, cover removal, draft save and product submission are blocked. |
| Remove the cover and submit | Missing-cover feedback appears without a product request. |
| Save and reload a draft | Title, price and the uploaded cover are restored. |
| Publish the restored draft | The product persists and the local draft is cleared. |
| Restore a draft with a bundled asset image | That image is ignored while supported form fields restore. |
| Edit a product with an existing asset cover | The cover loads without another upload and survives an owner edit. |
| Replace a product cover and save | The replacement URL persists after refresh; another account's update is rejected with HTTP 403. |
The 14 focused checks consist of 13 cover scenarios and one browser-error check. The broader acceptance matrix also references the separate title and regression suites. These are distinct counts rather than additional product features.
Seven original running images were captured at 440 × 956 CSS pixels with 2× scaling, producing 880 × 1912 PNGs.

Figure 1. The selected cover is returned by the real upload endpoint and displayed in the single-cover slot.

Figure 2. Unsupported files are rejected before an upload request.

Figure 3. A deliberately interrupted request displays a network error while keeping the old cover available.

Figure 4. A successful retry replaces the cover and clears the upload error.

Figure 5. The restored draft retains its title, CNY 25.50 price and uploaded cover.

Figure 6. The saved product displays the selected cover and persisted price.

Figure 7. The owner's saved cover replacement and CNY 29.80 price remain visible after refresh.
4 Problems Resolved and Implementation Decisions
| Finding | Treatment | Result |
|---|---|---|
| Cover handling shared the publishing view with several other responsibilities. | Extract cover state and behavior into useProductCover.ts. | The page and cover module now have explicit ownership boundaries. |
| Another file-change event could arrive during an upload. | Check upload/submission state inside the handler. | The delayed-request check confirms that only one upload proceeds. |
| Resetting cover state could affect draft or edit initialization. | Keep URL policy in the page and provide setCover() for initialization. | Uploaded draft covers and existing asset covers retain their respective behavior. |
| A failed upload could leave the page difficult to retry. | Preserve the previous cover, reset the input and always release upload state. | The same file can be retried successfully. |
The main decision was where to place the boundary. Moving all publishing state into one new file would have left the same responsibilities bundled together. Extracting the cover lifecycle gives the module a specific purpose while leaving draft rules and product submission with the page that coordinates them.
The regression results also matter more than a reduction in page length. The extraction is accepted because the affected workflows still save and retrieve the correct data, including error and retry paths.
5 Burn Up Charts and Scope
The two charts use the November 25–26 sprint reporting window. The first point represents the opening task balance and the second the accepted closing balance. Both count equal-weight engineering tasks; they do not measure hours worked or the percentage of all application features implemented. The original execution timestamps remain in the verification records.
5.1 Sprint 3 Two of Two Complete

Figure 8. A08, cover extraction, and A09, affected-flow verification, are complete: 2/2, or 100%.
5.2 Alpha Engineering Plan Nine of Twelve Complete

Figure 9. Sprint 3 adds two accepted tasks to the opening balance of seven, reaching 9/12, or 75%.
| Task range | Work | Status |
|---|---|---|
| A01–A04 | Environment reproduction, existing checks, core-flow acceptance and issue investigation | Complete |
| A05–A07 | Title contract, implementation and regression verification | Complete |
| A08–A09 | Cover responsibility extraction and affected-flow acceptance | Complete |
| A10–A12 | Final regression, delivery checks and evidence consolidation | Sprint 4 |
Chart preparation and this article are outside the two-task engineering scope. They therefore do not change the completion count.
6 Code Archive and Group Contributions
The project repository keeps the application under source/CampusLink/. The Sprint 3 material set follows the previous sprint's layout:
source/CampusLink/src/
views/Publish.vue
composables/useProductCover.ts
docs/sprints/sprint-3/
README.md
01-implementation.md
02-automated-checks.md
03-browser-acceptance.md
04-issue-review.md
SCREENSHOTS.md
screenshots/
evidence/
The code changes extract cover handling and add the file-change busy guard. The final records contain test logs, structured browser results, source fingerprints and running images. S3-01 is the local work-item identifier for the extraction.
The following team-reported allocation retains the same group proportions as Sprint 2.
| Group | Members | Main contributions | Share |
|---|---|---|---|
| Frontend and Backend | Chen Jiayuan, Chen Haoyang, Chen Junjie, Zhu Chaoyang, Zhou Qican, Zhu Mingqian | Cover-module extraction, publishing-page integration, busy-state protection, regression coordination and code/archive organization. Chen Jiayuan led the work; Chen Haoyang provided a smaller supporting contribution. | 60% |
| UI and Presentation | Ye Jiahui, Zhang Sufang, Chen Zhijun, Wu Sifan | Burn-up chart presentation, progress-label checks, screenshot captions and blog layout. | 25% |
| Testing and Execution Support | Chen Mohan, Chen Wei, Zeng Wenhan, Zheng Bowei | Organization and review of cover scenarios, test results, draft/edit evidence, runtime screenshots and regression references. | 15% |
| Total | 14 members | 100% |
Chen Jiayuan and Chen Haoyang take lead of the whole sprint. The table retains group-level percentages rather than assigning individual percentages. Test execution and browser capture used automated tool assistance; the testing entries concern result organization and review.
7 Sprint Review and Next Iteration
Sprint 3 gives cover handling a clear owner and preserves its integration with the publishing form. The change is deliberately focused: the page still controls draft policy, editing and submission, while the composable owns the cover lifecycle.
Normal upload and publication checks alone would not have established this result. Invalid images, interrupted requests, repeated selection, concurrent events and restored drafts exposed the points most likely to break during extraction. Checking those paths alongside the existing title suite provides a stronger basis for the next iteration.
Sprint 4, November 27–28, will complete A10–A12:
- Run the final core-flow regression and address delivery blockers.
- Build the selected delivery version and verify its startup instructions.
- Consolidate test cases, results, screenshots and version references for the testing essay, sprint summary and presentation.
相关推荐
复现基于量化状态反馈+非线性自适应神经控制的反馈系统(不确定MIMO)仿真(Matlab代码实现)
内容概要:本文介绍了一种结合量化状态反馈与非线性自适应神经控制的先进控制策略,用于解决不确定多输入多输出(MIMO)反馈系统的建模与控制问题,并基于Matlab平台实现了完整仿真。该方法利用神经网络逼近系统内部不确定性,融合量化反馈机制以增强系统鲁棒性与自适应能力,有效应对模型不精确、外部扰动等复杂工况,适用于高精度控制场景。文章强调科研需兼具严谨逻辑与创新思维,提供从理论推导到代码实现的完整学习路径,并配套丰富的仿真资源与技术文档,帮助读者系统掌握先进控制算法的设计与应用。; 适合人群:具备自动控制理论基础、神经网络初步知识及Matlab编程能力,从事控制工程、系统科学、机器人、自动化或相关领域的研究生、科研人员及工程技术人员。; 使用场景及目标:①研究不确定MIMO系统的稳定性与控制性能优化;②掌握自适应神经控制与量化反馈的集成设计方法;③应用于机器人控制、飞行器导航、工业过程控制等高精度动态系统控制场景; 阅读建议:建议结合提供的网盘资料(含代码与文档)与公众号“荔枝科研社”资源,按照目录顺序系统学习,注重理论分析与仿真实践相结合,通过动手复现算法深入理解其动态响应特性、收敛机制与鲁棒性能表现。
西周BC996年世界历史地图矢量文件SHP格式.zip
本资源为《西周BC996年世界历史地图矢量文件SHP格式》压缩包,文件大小约 28.70 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。
智慧工业园区AI大模型数字化平台建设方案.docx
智慧工业园区AI大模型数字化平台建设方案.docx
基于 SpringBoot、Vue、Mybatis、RabbitMq、Mysql、Redis 等开发的轻量级的物联网综合业务支撑平台 支持物联网卡、物联网模组、卡+模组融合管理
基于 SpringBoot、Vue、Mybatis、RabbitMq、Mysql、Redis 等开发的轻量级的物联网综合业务支撑平台。支持物联网卡、物联网模组、卡+模组融合管理。提供状态、资费、客户、进销存、合同、订单、续费、充值、诊断、账单等功能。平台可同时接入中国移动、中国电信、中国联通、第三方物联网卡进行统一管理。逐步完善平台,助您快速接入物联网,让万物互联更简单。
西周BC845年世界历史地图矢量文件SHP格式.zip
本资源为《西周BC845年世界历史地图矢量文件SHP格式》压缩包,文件大小约 24.44 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。


