Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ REACT_APP_DEPLOYMENT_NAME=Source Academy
REACT_APP_BACKEND_URL=http://localhost:4000
REACT_APP_USE_BACKEND=TRUE
REACT_APP_PLAYGROUND_ONLY=FALSE
REACT_APP_ENABLE_GITHUB_ASSESSMENTS=TRUE
REACT_APP_SHOW_RESEARCH_PROMPT=FALSE

REACT_APP_URL_SHORTENER_SIGNATURE=
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
REACT_APP_GOOGLE_API_KEY: ${{ secrets.REACT_APP_GOOGLE_API_KEY }}
REACT_APP_GOOGLE_APP_ID: ${{ secrets.REACT_APP_GOOGLE_APP_ID }}
REACT_APP_PLAYGROUND_ONLY: 'TRUE'
REACT_APP_ENABLE_GITHUB_ASSESSMENTS: 'TRUE'
REACT_APP_VERSION: ${{ format('{0}-{1}', github.sha, steps.get-time.outputs.time) }}
REACT_APP_ENVIRONMENT: 'pages'
REACT_APP_MODULE_BACKEND_URL: https://source-academy.github.io/modules
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ See [here](https://github.com/source-academy/frontend/wiki/Google-Drive-Persiste

1. `REACT_APP_DEPLOYMENT_NAME`: The name of the Source Academy deployment. This will be shown in the `/welcome` route. Defaults to 'Source Academy'.
1. `REACT_APP_PLAYGROUND_ONLY`: Whether to build the "playground-only" version, which disables the Academy components, so only the Playground is available. This is what we deploy onto [GitHub Pages](https://source-academy.github.io).
1. `REACT_APP_ENABLE_GITHUB_ASSESSMENTS`: Whether to enable the GitHub Assessments feature. Off by default.
1. `REACT_APP_SHOW_RESEARCH_PROMPT`: Whether to show the educational research consent prompt to users. This is mainly for instructors using their own deployment of Source Academy @ NUS to disable this prompt.

## Projects
Expand Down
9 changes: 1 addition & 8 deletions src/commons/application/ApplicationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,7 @@ export const createDefaultWorkspace = (workspaceLocation: WorkspaceLocation): Wo
filePath: ['playground', 'sicp'].includes(workspaceLocation)
? getDefaultFilePath(workspaceLocation)
: undefined,
value: ['playground', 'sourcecast', 'githubAssessments'].includes(workspaceLocation)
? defaultEditorValue
: '',
value: ['playground', 'sourcecast'].includes(workspaceLocation) ? defaultEditorValue : '',
highlightedLines: [],
breakpoints: []
}
Expand Down Expand Up @@ -485,10 +483,6 @@ export const defaultWorkspaceManager: WorkspaceManagerState = {
}
]
},
githubAssessment: {
...createDefaultWorkspace('githubAssessment'),
hasUnsavedChanges: false
},
stories: {
...createDefaultWorkspace('stories')
// TODO: Perhaps we can add default values?
Expand Down Expand Up @@ -556,7 +550,6 @@ export const defaultSideContentManager: SideContentManagerState = {
assessment: defaultSideContent,
grading: defaultSideContent,
playground: defaultSideContent,
githubAssessment: defaultSideContent,
sicp: defaultSideContent,
sourcecast: defaultSideContent,
sourcereel: defaultSideContent,
Expand Down
2 changes: 0 additions & 2 deletions src/commons/application/types/SessionTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
AssessmentConfiguration,
AssessmentOverview
} from '../../assessment/AssessmentTypes';
import { MissionRepoData } from '../../githubAssessments/GitHubMissionTypes';
import { Notification } from '../../notificationBadge/NotificationBadgeTypes';
import { GameState, Role, Story } from '../ApplicationTypes';

Expand Down Expand Up @@ -118,7 +117,6 @@ export type SessionState = {
readonly gradings: Map<number, GradingQuery>;
readonly notifications: Notification[];
readonly googleUser?: string;
readonly githubAssessment?: MissionRepoData;
readonly githubOctokitObject: { octokit: Octokit | undefined };
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm leaving this object here just in case the folders team would require it (to minimise conflicts); but if it turns out to not be needed then it can be removed in the future.

readonly githubAccessToken?: string;
readonly remoteExecutionDevices?: Device[];
Expand Down
22 changes: 0 additions & 22 deletions src/commons/controlBar/github/ControlBarDisplayMCQButton.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions src/commons/controlBar/github/ControlBarGitHubLoginButton.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions src/commons/controlBar/github/ControlBarTaskAddButton.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions src/commons/controlBar/github/ControlBarTaskDeleteButton.tsx

This file was deleted.

77 changes: 0 additions & 77 deletions src/commons/githubAssessments/GitHubMissionCreateDialog.tsx

This file was deleted.

Loading