-
Notifications
You must be signed in to change notification settings - Fork 79
Multiple Reference Timelines: Timeline Designer, Manage Users extensions #5631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ekowidianto
merged 22 commits into
phillmont/multiple-reference-timelines
from
phillmont/timelines-designer
Jan 18, 2023
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
cc6555e
style(coursesettingform): fix course start time label typo
purfectliterature 53a4521
feat(formdatetimepickerfield): supports `required` prop
purfectliterature 2710845
feat(formdatetimepickerfield): can not always check format errors
purfectliterature 0fcd72b
feat(prompt): `onClick` now forwards native event
purfectliterature 14cb77c
feat(prompt): add event handler when prompt has fully closed
purfectliterature e2b0a30
feat(textfield): add event handlers when press enter and esc keys
purfectliterature e13ca56
feat(preload): support `void` promises
purfectliterature b1a45d0
feat(preload): support direct reactnode as `children`
purfectliterature 6e4400e
feat(checkbox): support custom typography variant for description
purfectliterature f14cd03
feat(form): support custom `className`s
purfectliterature 8cc575f
chore: remove redundant reselect
purfectliterature dea50d0
feat(reference-timelines): add react timeline designer
purfectliterature 8233429
fix(timelinedesigner): calendar scrolls to epoch when no timelines
purfectliterature a95ac78
feat(manageuserstable): add filter by group, bulk assign to timeline
purfectliterature 96bf16d
chore(eslint): disable `no-restricted-exports`
purfectliterature 5578812
style(operation): generic type defaults to `void`
purfectliterature 0dcb7b4
style(timelinedesigner): use global store conventions
purfectliterature eb7ccd2
refactor(store): add typed useappdispatch, useappselector
purfectliterature d734429
feat(components): searchbar -> searchfield
purfectliterature 60ee844
fix(timelinedesigner): remove unnecessary scrollbars
purfectliterature 4b41858
feat(timelinedesigner): remove space between items
purfectliterature f30d740
feat(reference_times_controller): disallow update `:lesson_plan_item`
purfectliterature File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// TODO: Remove once sidebar is fixed, and set Timeline Designer height | ||
// to fill viewport until bottom of viewport. | ||
// 126px is the height of the topbar + breadcrumb + margins in between. | ||
#course-timeline-designer { | ||
height: calc(100vh - 126px); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { AxiosResponse } from 'axios'; | ||
import { | ||
TimeData, | ||
TimelineData, | ||
TimelinePostData, | ||
TimelinesData, | ||
TimePostData, | ||
} from 'types/course/referenceTimelines'; | ||
|
||
import BaseCourseAPI from './Base'; | ||
|
||
type Response<Result = void> = Promise<AxiosResponse<Result>>; | ||
ekowidianto marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
export default class ReferenceTimelinesAPI extends BaseCourseAPI { | ||
_getUrlPrefix(id?: TimelineData['id']): string { | ||
return `/courses/${this.getCourseId()}/timelines${id ? `/${id}` : ''}`; | ||
} | ||
|
||
index(): Response<TimelinesData> { | ||
return this.getClient().get(this._getUrlPrefix()); | ||
} | ||
|
||
create(data: TimelinePostData): Response<TimelineData> { | ||
return this.getClient().post(this._getUrlPrefix(), data); | ||
} | ||
|
||
delete( | ||
id: TimelineData['id'], | ||
alternativeTimelineId?: TimelineData['id'], | ||
): Response { | ||
return this.getClient().delete(`${this._getUrlPrefix(id)}`, { | ||
params: { revert_to: alternativeTimelineId }, | ||
}); | ||
} | ||
|
||
update(id: TimelineData['id'], data: TimelinePostData): Response { | ||
return this.getClient().patch(`${this._getUrlPrefix(id)}`, data); | ||
} | ||
|
||
createTime( | ||
id: TimelineData['id'], | ||
data: TimePostData, | ||
): Response<{ id: TimeData['id'] }> { | ||
return this.getClient().post(`${this._getUrlPrefix(id)}/times`, data); | ||
} | ||
|
||
deleteTime(id: TimelineData['id'], timeId: TimeData['id']): Response { | ||
return this.getClient().delete(`${this._getUrlPrefix(id)}/times/${timeId}`); | ||
} | ||
|
||
updateTime( | ||
id: TimelineData['id'], | ||
timeId: TimeData['id'], | ||
data: TimePostData, | ||
): Response { | ||
return this.getClient().patch( | ||
`${this._getUrlPrefix(id)}/times/${timeId}`, | ||
data, | ||
); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.