feat(viewer): hide like feature — action bar like slot, photo like badges, hot sort tab, others' like bubbles (user request 2026-09-23)
- PhotoFeed: cell like badge not rendered - AlbumHeader: sort tabs row removed (hot depends on likes; latest-only has no toggle value) - PhotoActionBar: like slot v-if=false (share/download remain, auto re-center) - ActivityPage: LikeBubbles hidden - specs updated to hidden assertions; 244 green Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -233,21 +233,11 @@ describe('activity page (Task 6)', () => {
|
||||
|
||||
// —— UI-02 V02:排序/分类经 AlbumHeader 上抛,沿用本页序列重置机制 ——
|
||||
|
||||
it('selecting the Popular tab refetches the sequence with sort=hot (active state moves)', async () => {
|
||||
it('sort tabs removed per user request (2026-09-23): no popular tab, sequence stays latest', async () => {
|
||||
const wrapper = mountPage();
|
||||
await flushPromises();
|
||||
mockedGetPublicPhotos.mockClear();
|
||||
|
||||
const tabs = wrapper.findAll('.sort-tab');
|
||||
expect(tabs.map((tab) => tab.text())).toEqual(['最新', '热门']);
|
||||
expect(tabs[0].classes()).toContain('active');
|
||||
expect(tabs[0].attributes('aria-pressed')).toBe('true');
|
||||
|
||||
await tabs[1].trigger('click');
|
||||
await flushPromises();
|
||||
|
||||
expect(mockedGetPublicPhotos).toHaveBeenLastCalledWith('tok-activity', expect.objectContaining({ sort: 'hot' }));
|
||||
expect(wrapper.findAll('.sort-tab')[1].classes()).toContain('active');
|
||||
expect(wrapper.findAll('.sort-tab')).toHaveLength(0);
|
||||
expect(wrapper.find('.sort-tabs').exists()).toBe(false);
|
||||
});
|
||||
|
||||
it('category chips filter the sequence and the selection survives a locale switch', async () => {
|
||||
|
||||
Reference in New Issue
Block a user