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

General Refactor #39

Merged
merged 10 commits into from
Dec 31, 2023
Merged

General Refactor #39

merged 10 commits into from
Dec 31, 2023

Conversation

JohnScolaro
Copy link
Owner

Not a great PR name, but I did some of the following things:

  • Generalise cumulative plots and add an elevation and kudos cumulative plot.
  • Add more tests to ensure data is being serialised correctly into s3.
  • Fix a local tidbit bug.
  • Fix github icon alignment in firefox/safari
  • Move all tab logic into tabs and out of the task queue. Basically the creation and implementation of the backend_hook and frontend_hook tab logic.
  • Route creation also centralised.
  • Tab error screen improvements.

Now the route creation is centralised in Tab, and just inheritted by
all subtabs, so all subtabs just need to focus on creating their JSON
responses, and not the intricacies of Flask route creation. Less copied
code.
Remove some duplication by providing an easy way to get a flattened
version of the gui_tree
Max page height is now 100% and not 100% + 1/3*100% margin.
Big refactor move the logic around 'what should we do for each tab re-
processing, and viewing. Now instead of an expanding list of if/else
statements in the task queue, there is one if/else in each tab! Yay!
This allows us to check that plot, table, and image data is serialised
correctly allowing it to be placed into S3.
I generalised cumulative plots. So instead of having two plot files for
cumulative time and cumulative distance, now I have 1 file for
cumulative time, distance, elevation, and kudos.
@JohnScolaro JohnScolaro merged commit 92f41fa into main Dec 31, 2023
2 checks passed
@JohnScolaro JohnScolaro deleted the feature/general-refactor branch December 31, 2023 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant