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

[WEB] PR #101 Data for Researchers #281

Closed
wants to merge 10 commits into from
Closed

[WEB] PR #101 Data for Researchers #281

wants to merge 10 commits into from

Conversation

jahn18
Copy link
Member

@jahn18 jahn18 commented Mar 9, 2024

Description

Verification

  • [ ]

Resources

@jahn18 jahn18 changed the title PR WEB #101 dropdown [WEB] PR #101 Dropdown Mar 9, 2024
@jahn18 jahn18 changed the title [WEB] PR #101 Dropdown [WEB] PR #101 Data for Researchers Mar 9, 2024
@patrick-5546 patrick-5546 added the web Website team label Mar 9, 2024
@fyang151
Copy link
Contributor

fyang151 commented Mar 9, 2024

hi

@JordanChen123 JordanChen123 self-assigned this Mar 10, 2024
Copy link
Member Author

@jahn18 jahn18 left a comment

Choose a reason for hiding this comment

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

Thanks Jordan! Most of the comments I left deal with stylistic concerns.

I do have one reimplementation detail I'm considering (we can have this before TWDR):

Instead of having the article below the dashboard, I'm thinking to resort back to the original idea. We would have some button on the dashboard (an "info" icon on the header), and once the user clicks it, it would open a modal with the information we have below.

image

Notice the info icon on the top right. Once the user clicks on the info icon, a modal will pop up as shown below:

image

There would be a vertical scroll bar on the modal so the user can also access the datasets below. IMO this design is cleaner and more intuitive (it keeps the dashboard as a dashboard and ensures the information is supplementary). Having the information below the dashboard gives the website "the feel" of an article, which I'm not sure we want.

What do you think? Let me know if you think otherwise, I'm open to a discussion!

FYI: Material MUI also has a modal component available: https://mui.com/material-ui/react-modal/

src/website/pages/Raye/index.tsx Outdated Show resolved Hide resolved
src/website/tests/package-lock.json Outdated Show resolved Hide resolved
src/website/tests/package.json Outdated Show resolved Hide resolved
src/website/views/RayeContainer.tsx Outdated Show resolved Hide resolved
src/website/views/RayeContainer.tsx Outdated Show resolved Hide resolved
src/website/views/RayeContainer.tsx Outdated Show resolved Hide resolved
@UBCSailbot UBCSailbot deleted a comment from jahn18 Mar 26, 2024
@UBCSailbot UBCSailbot deleted a comment from jahn18 Mar 26, 2024
@UBCSailbot UBCSailbot deleted a comment from jahn18 Mar 26, 2024
@UBCSailbot UBCSailbot deleted a comment from jahn18 Mar 26, 2024
@UBCSailbot UBCSailbot deleted a comment from jahn18 Mar 26, 2024
@UBCSailbot UBCSailbot deleted a comment from jahn18 Mar 26, 2024
@@ -0,0 +1,28 @@
const downloadSensorData = async (sensorType) => {
try {
const response = await fetch(`http://localhost:3005/api/${sensorType}`);
Copy link
Member Author

Choose a reason for hiding this comment

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

Please use the env vars when calling an API using our host url. Example can be found here: https://github.com/UBCSailbot/sailbot_workspace/blob/main/src/website/stores/GPS/GPSService.ts#L9

display: flex;
flex-direction: column;
align-items: center;
font-family: 'Switzer, sans-serif';
Copy link
Member Author

Choose a reason for hiding this comment

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

To use this specific font, we need to import it (as it's external). Take a look at this link: https://www.cdnfonts.com/switzer.font

Copy and paste the @import url(...) at the top of this file and ensure the font-family declaration is same as listed in the website: 'Switzer', sans-serif;

flex: 1;
display: flex;
justify-content: center;
font-family: 'Switzer, sans-serif';
Copy link
Member Author

Choose a reason for hiding this comment

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

Same issue - take a look at this link: cdnfonts.com/switzer.font to use this font.

@UBCSailbot UBCSailbot deleted a comment from jahn18 Mar 28, 2024
@UBCSailbot UBCSailbot deleted a comment from jahn18 Mar 28, 2024
@jahn18 jahn18 closed this Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web Website team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data for Researchers Implementation
4 participants