Skip to content
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

Urls, Filter, Labels #56

Merged
merged 1 commit into from
Mar 9, 2023
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
6 changes: 4 additions & 2 deletions datastore-backend/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ async function postBigItem(newData, kind) {
}
const dataLink = {
name: 'link',
value: newData.link
value: newData.link,
excludeFromIndexes: true
}
const dataUser = {
name: 'user',
Expand Down Expand Up @@ -445,7 +446,8 @@ async function updateBigItem(newData, kind) {
}
const dataLink = {
name: 'link',
value: newData.link
value: newData.link,
excludeFromIndexes: true
}
const dataUser = {
name: 'user',
Expand Down
6 changes: 3 additions & 3 deletions react-frontend/src/pages/AddApplicationPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ useEffect(() => {
<div className="container">
<form onSubmit={addApplication}>
<h1>Add Application</h1>
<label>Title:</label>
<label>Title (max chars: 100):</label>
<br />
<input
className='add-app'
Expand All @@ -154,7 +154,7 @@ useEffect(() => {
value={title}
onChange={e => setTitle(e.target.value)} />
<br />
<label>Description:</label>
<label>Description (max chars: 5000):</label>
<br />
<textarea
required
Expand Down Expand Up @@ -201,7 +201,7 @@ useEffect(() => {
<option>Not Applied</option>
</select>
<br />
<label>External Link:</label>
<label>External Link (max chars: 2048):</label>
<br />
<input
className='add-app'
Expand Down
2 changes: 1 addition & 1 deletion react-frontend/src/pages/ApplicationPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function ApplicationPage() {
return applications.filter(apps => apps["status"] === "Applied")
}
if (filteredSelect === 2){
applications.filter(apps => apps["status"] === "Not Applied")
return applications.filter(apps => apps["status"] === "Not Applied")
}
return applications
}
Expand Down
6 changes: 3 additions & 3 deletions react-frontend/src/pages/EditApplicationPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ export const EditApplicationPage = ({ typeToEdit }) => {
<h1>Edit Application</h1>

<div className="container">
<label className="">Title:</label>
<label className="">Title (max chars: 100):</label>
<input
className="edit-app"
required
type="text"
placeholder="Enter Title (required)"
value={title}
onChange={e => setTitle(e.target.value)} />
<label className="">Description:</label>
<label className="">Description (max chars: 5000):</label>
<textarea
className='edit-description'
required
Expand All @@ -285,7 +285,7 @@ export const EditApplicationPage = ({ typeToEdit }) => {
<option>Applied</option>
<option>Not Applied</option>
</select>
<label className="">Link:</label>
<label className="">Link (max chars: 2048):</label>
<input
className="edit-app"
type="url"
Expand Down