Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5b38f17
Fix: added useRef import and defined boxStyle to fix rendering errors
linh2020 May 22, 2025
10b5d79
Final commit before schedule_post feature
linh2020 Jun 13, 2025
0817520
Fix: added useRef import and defined boxStyle to fix rendering errors
linh2020 May 22, 2025
fef6bdb
Final commit before schedule_post feature
linh2020 Jun 13, 2025
5f4a200
Merge branch 'origin/Linh_Bluesky_autoposter_frontend' into Linh_Blue…
linh2020 Mar 17, 2026
3ef0e44
Fix import path for styles in Announcements component
linh2020 Mar 17, 2026
396ee37
Fix linting errors: convert to CSS modules and remove styled-jsx
linh2020 Mar 17, 2026
26cad55
Remove disallowed Announcements.css to comply with CSS Module policy
linh2020 Mar 17, 2026
eceeb9c
Remove Announcements.css import to fix test errors
linh2020 Mar 17, 2026
2f51ffd
Fix all errors and finalize Announcements components
linh2020 Mar 17, 2026
151abea
Fix Sonar issues in Bluesky announcements
linh2020 Mar 17, 2026
ac03cd5
Fix remaining Sonar issues in Bluesky post details
linh2020 Mar 17, 2026
914d6a1
Fix Bluesky upload accessibility hotspot
linh2020 Mar 17, 2026
6ea108a
Fix Sonar email validation hotspot
linh2020 Mar 17, 2026
ef459db
feat: improve Bluesky Manager UI/UX
linh2020 Mar 31, 2026
309ca98
merge: resolve conflicts with development - adopt tab architecture, u…
linh2020 Mar 31, 2026
bc2fcc0
merge: resolve conflicts with development - keep BlueskyPostDetails t…
linh2020 Mar 31, 2026
2958097
fix: address SonarCloud warnings in Bluesky and related CSS modules
linh2020 Apr 1, 2026
cf21736
fix: resolve remaining Sonar reliability issues on new code
linh2020 Apr 1, 2026
0fcb2cf
fix: address remaining Sonar contrast and duplicate CSS declarations
linh2020 Apr 1, 2026
8936d08
fix: resolve latest Sonar contrast and duplicate CSS warnings
linh2020 Apr 1, 2026
8a4b98a
fix: resolve remaining Sonar contrast and duplicate-style warnings
linh2020 Apr 1, 2026
5ed6d50
Fix: added useRef import and defined boxStyle to fix rendering errors
linh2020 May 22, 2025
e8060fd
Final commit before schedule_post feature
linh2020 Jun 13, 2025
4411a9b
Fix linting errors: convert to CSS modules and remove styled-jsx
linh2020 Mar 17, 2026
444ab07
Remove disallowed Announcements.css to comply with CSS Module policy
linh2020 Mar 17, 2026
ec79f18
Fix all errors and finalize Announcements components
linh2020 Mar 17, 2026
c01b7e8
Fix Sonar issues in Bluesky announcements
linh2020 Mar 17, 2026
1f90c9b
Fix remaining Sonar issues in Bluesky post details
linh2020 Mar 17, 2026
a4ceb56
Fix Bluesky upload accessibility hotspot
linh2020 Mar 17, 2026
292f67b
feat: improve Bluesky Manager UI/UX
linh2020 Mar 31, 2026
c10b60b
fix: resolve rebase conflicts for Bluesky announcements and keep tab-…
linh2020 Apr 17, 2026
beb3aa7
fix: resolve rebase conflicts for Bluesky announcements and keep tab-…
linh2020 Apr 17, 2026
3d53774
chore: remove yarn.lock - use npm as primary package manager
linh2020 Apr 17, 2026
eb1da3a
fix: update GitHub Actions workflow to use npm instead of yarn
linh2020 Apr 17, 2026
5a38834
fix: update all GitHub Actions workflows to use npm instead of yarn
linh2020 Apr 17, 2026
90e5ab8
fix(announcements): fix dark mode gaps and clear upload filename state
linh2020 Apr 21, 2026
920dc03
Merge origin/development into Linh_Bluesky_autoposter_frontend
linh2020 Apr 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache: 'npm'
- name: Install Dependencies
run: yarn install --frozen-lockfile
run: npm ci
# We don't run tests here since we assume it's already done during PR process.
# - name: Update Browser List
# run: npx browserslist@latest --update-db
- name: Build React App
run: yarn run build && cp build/index.html build/200.html
run: npm run build && cp build/index.html build/200.html
env:
NODE_ENV: ${{ github.ref_name == 'main' && 'production' || 'development' }}
REACT_APP_APIENDPOINT: ${{ vars.REACT_APP_API_ENDPOINT }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull_request_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache: 'npm'
- name: Install Dependencies
run: yarn install --frozen-lockfile
run: npm ci
- name: Run Unit Tests for Changed Files Only
run: yarn run test:changed
run: npm run test:changed
- name: Run Lint
run: yarn run lint
run: npm run lint
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js & cache Yarn
- name: Set up Node.js & cache npm
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache: npm

- name: Install dependencies
run: yarn install
run: npm ci

- name: Run tests
run: yarn test
run: npm test

- name: Upload test results
if: failure()
Expand Down
70 changes: 70 additions & 0 deletions fix-conflicts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
const fs = require('fs');

Check warning on line 1 in fix-conflicts.js

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefer `node:fs` over `fs`.

See more on https://sonarcloud.io/project/issues?id=OneCommunityGlobal_HighestGoodNetworkApp&issues=AZ2a2gpG90_AQmPOfB9j&open=AZ2a2gpG90_AQmPOfB9j&pullRequest=3645

const files = [
'src/components/Announcements/SocialMediaComposer.module.css',
'src/components/ApplicationAnalytics/jobAnalytics.module.css',
'src/components/BMDashboard/AddMaterial/AddMaterial.module.css',
'src/components/BMDashboard/Equipment/Update/UpdateEquipment.module.css',
'src/components/BMDashboard/Issues/issueChart.module.css',
'src/components/BMDashboard/Issues/issueCharts.module.css',
'src/components/BMDashboard/ItemList/ItemListView.module.css',
'src/components/BMDashboard/Lesson/LessonForm.module.css',
'src/components/BMDashboard/LessonList/LessonCard.module.css',
'src/components/BMDashboard/Projects/ProjectDetails/ProjectDetails.module.css',
'src/components/BMDashboard/UtilizationChart/UtilizationChart.module.css',
'src/components/BMDashboard/WeeklyProjectSummary/GroupedBarGraphInjurySeverity/InjuryCategoryBarChart.module.css',
'src/components/BMDashboard/WeeklyProjectSummary/IssueBreakdownChart.module.css',
'src/components/Collaboration/Collaboration.module.css',
'src/components/CommunityPortal/Activities/ActivityAttendance.module.css',
'src/components/CommunityPortal/Activities/activityId/ActivityComments.module.css',
'src/components/EductionPortal/EvaluationResults/EvaluationResults.module.css',
'src/components/EductionPortal/EvaluationResults/OverallPerformance.module.css',
'src/components/EductionPortal/EvaluationResults/TeacherFeedback.module.css',
'src/components/EductionPortal/StudentTasks/StudentTasks.module.css',
'src/components/EductionPortal/StudentTasks/TaskDetails.module.css',
'src/components/ExperienceDonutChart/ExperienceDonutChart.module.css',
'src/components/Header/Header.module.css',
'src/components/HGNForm/TopCommunityMembers/TopCommunityMembers.module.css',
'src/components/HGNPRDashboard/ReviewersStackedBarChart/ReviewersStackedBarChart.module.css',
'src/components/HGNSkillsDashboard/SkillsProfilePage/styles/ProfileDetails.module.css',
'src/components/LandingPage/HelpModal.module.css',
'src/components/LBDashboard/SentimentBreakdownDonutChart/SentimentBreakdownDonutChart.module.css',
'src/components/MaterialSummary/MaterialSummary.module.css',
'src/components/Projects/projects.module.css',
];

function resolveKeepHead(content) {
const lines = content.split('\n');
const result = [];
let state = 'normal';
for (const line of lines) {
if (line.startsWith('<<<<<<< ')) {
state = 'head';
} else if (line === '=======' && state === 'head') {
state = 'other';
} else if (line.startsWith('>>>>>>> ') && state === 'other') {
state = 'normal';
} else if (state !== 'other') {
result.push(line);
}
}
return result.join('\n');
}

let count = 0;
for (const f of files) {
if (!fs.existsSync(f)) {
console.log('NOT FOUND: ' + f);

Check warning on line 57 in fix-conflicts.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
continue;
}
const content = fs.readFileSync(f, 'utf8');
if (!content.includes('<<<<<<<')) {
console.log('No conflict: ' + f);

Check warning on line 62 in fix-conflicts.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
continue;
}
const resolved = resolveKeepHead(content);
fs.writeFileSync(f, resolved, 'utf8');
console.log('Fixed: ' + f);

Check warning on line 67 in fix-conflicts.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
count++;
}
console.log('Total: ' + count);

Check warning on line 70 in fix-conflicts.js

View workflow job for this annotation

GitHub Actions / test

Unexpected console statement
1 change: 0 additions & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
},
"include": ["src"]
}

Loading
Loading