Skip to content

Commit ada2628

Browse files
feat/activity-feed: changes for activity feed frontend (#723)
* feat/activity-feed: changes for activity feed frontend * feat/activity-feed: activity feed ui * feat/activity-feed: css cleanup * feat/activity-feed: code refactor * feat/activity-feed: changes for activity feed frontend * feat/activity-feed: changes for activity feed frontend * feat/activity-feed: code refactor * feat/activity-feed: code refactor * feat/activity-feed: code cleanup * feat/activity-feed: prettier fix * feat/activity-feed: add feature flag to activity feed * feat/activity-feed: add feature flag to activity feed * feat/activity-feed: prettier fix --------- Co-authored-by: Achintya Chatterjee <[email protected]>
1 parent 84d8f30 commit ada2628

File tree

12 files changed

+692
-0
lines changed

12 files changed

+692
-0
lines changed

__tests__/home/home.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,16 @@ describe('Home Page', () => {
315315
expect(createGoalsButton).toBeTruthy();
316316
});
317317

318+
it('should display the Activity Feed anchor button', async () => {
319+
const createActivityFeedButton = await page.$('#create-activity-feed');
320+
expect(createActivityFeedButton).toBeTruthy();
321+
const createActivityFeedButtonHref = await page.evaluate(
322+
(el) => el.getAttribute('href'),
323+
createActivityFeedButton,
324+
);
325+
expect(createActivityFeedButtonHref).toBe('/feed/index.html');
326+
});
327+
318328
it('should display the Discord Users anchor button', async () => {
319329
const discordUsersButton = await page.$('#discord-user-link');
320330
expect(discordUsersButton).toBeTruthy();

feed/assets/extensionReq.webp

548 Bytes
Loading

feed/assets/leave.webp

522 Bytes
Loading

feed/assets/task.webp

568 Bytes
Loading

feed/assets/taskRequests.webp

434 Bytes
Loading

feed/constants.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
const ACITIVITY_FEED_CONTAINER = 'activity_feed_container';
2+
3+
const logType = {
4+
PROFILE_DIFF_APPROVED: 'PROFILE_DIFF_APPROVED',
5+
PROFILE_DIFF_REJECTED: 'PROFILE_DIFF_REJECTED',
6+
REQUEST_CREATED: 'REQUEST_CREATED',
7+
REQUEST_APPROVED: 'REQUEST_APPROVED',
8+
REQUEST_REJECTED: 'REQUEST_REJECTED',
9+
REQUEST_BLOCKED: 'REQUEST_BLOCKED',
10+
REQUEST_CANCELLED: 'REQUEST_CANCELLED',
11+
TASK: 'task',
12+
TASK_REQUESTS: 'taskRequests',
13+
EXTENSION_REQUESTS: 'extensionRequests',
14+
};
15+
16+
const CATEGORY = {
17+
ALL: 'all',
18+
OOO: 'ooo',
19+
TASK: 'task',
20+
TASK_REQUESTS: 'taskRequests',
21+
EXTENSION_REQUESTS: 'extensionRequests',
22+
};
23+
24+
const LAST_ELEMENT_CONTAINER = '.virtual';
25+
26+
const ERROR_MESSAGE = {
27+
UNAUTHENTICATED:
28+
'You are unauthenticated to view this section, please login!',
29+
UNAUTHORIZED: 'You are unauthorized to view this section',
30+
LOGS_NOT_FOUND: 'No logs found',
31+
SERVER_ERROR: 'Unexpected error occurred',
32+
};

feed/index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link rel="stylesheet" href="/feed/style.css" />
8+
<link rel="stylesheet" href="/style.css" />
9+
<title>Activity Feed | Real Dev Squad</title>
10+
<script src="/helpers/loadENV.js"></script>
11+
<script src="/feed/constants.js"></script>
12+
<script src="/constants.js"></script>
13+
<script src="/feed/utils.js"></script>
14+
<script src="/utils.js"></script>
15+
<script src="/feed/script.js" defer></script>
16+
</head>
17+
<body>
18+
<header class="header">
19+
<h1>Activity Feed</h1>
20+
</header>
21+
<nav class="tabs-container">
22+
<ul class="tabs"></ul>
23+
<div class="container">
24+
<div id="activity_feed_container">
25+
<ul class="activity-list"></ul>
26+
</div>
27+
<div class="virtual"></div>
28+
</div>
29+
</nav>
30+
</body>
31+
</html>

0 commit comments

Comments
 (0)