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

Move all TODOs and FIXMEs to GitHub issues #124

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

paulo-ferraz-oliveira
Copy link
Member

@paulo-ferraz-oliveira paulo-ferraz-oliveira commented Jun 29, 2024

Description

Closes #63.

Further considerations

Self-review will show references from each change to a created issue.

@@ -34,11 +34,9 @@ globalThis["arizona"] = (() => {
const subscribers = new Map()
const unsubscribers = new Map()

// @todo Subscribe to global events.
Copy link
Member Author

Choose a reason for hiding this comment

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

function subscribe(eventName, callback, opts = {}) {
let eventSubs = subscribers.get(eventName)
if (!eventSubs) eventSubs = new Map()
// @todo Improve id.
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -31,7 +31,6 @@ HTML support.
%% API funtions.
%% --------------------------------------------------------------------

% TODO: Do this really safe for HTML.
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -42,7 +42,6 @@ send(Event, Payload) ->
%% Internal funtions.
%% --------------------------------------------------------------------

% TODO: Real safe JS.
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -96,7 +96,6 @@ handle_info({_Pid, {fs, file_event}, {File, Events}},
[modified, closed] ->
{noreply, State#state{files = Files#{File => {erl, modified}}}};
_ ->
% TODO: Act on created, renamed, deleted.
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines -77 to -81
% TODO: Rename 'arz-id' to 'arz-sid' (statefull id),
% and provide a 'arz-tid' (tag id) to each tag.
% I think this can improve changes patch,
% because just the most close tag could be rendered
% instead of the entirely block/tree.
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -285,7 +274,6 @@ block_struct(Block, P, I, State) ->
vars => vars_group(vars(ExprVars, Id))
}.

% TODO: Change to binary_to_existing_atom.
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -311,7 +299,6 @@ find_first_tag(_) ->
is_tag(Name) ->
not lists:member(Name, [<<"!DOCTYPE">>, <<"!doctype">>, <<"?xml">>]).

% TODO: Use binary_to_existing_atom.
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines -600 to -602
{% FIXME: This implementation wont work, because it }
{% needs to be compiled in tokens. }
{% The 'merl:tsubst' should be used to fix this. }
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -94,7 +94,6 @@ do_parse_tag([tag_close | T0], Props0, Macros) ->
true ->
Props = case OpenName =:= <<"head">> of
true ->
% TODO: Do not reverse.
Copy link
Member Author

Choose a reason for hiding this comment

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

#123 / 1

@@ -163,12 +162,10 @@ parse_attr(K, {expr, ExprStr}, Macros) ->
parse_attr(K, {text, Text}, _Macros) ->
do_parse_attr(K, {text, Text}).

% TODO: Directive keys to atom using binary_to_existing_atom.
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines -33 to -48
% TODO: Implement the :case directive:
% """
% {% The directive should be a valid Erlang syntax, like: }
% {:case _@foo of
% foo ->
% """
% {% Expressions will be compiled into a tree... }
% <div>foo</div>
% """;
% Bar ->
% """
% {% and should be able to eval variables. }
% <div>{Bar}</div>
% """
% end}
% """.
Copy link
Member Author

Choose a reason for hiding this comment

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

#17

string(Str) when is_binary(Str) ->
% TODO: Location.
Copy link
Member Author

Choose a reason for hiding this comment

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

#123 / 2

Comment on lines -123 to -124
% FIXME: If closing_tag we should go to 'scan'
% instead of 'scan_attr_key'.
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -71,7 +71,6 @@ websocket_handle({text, Msg}, #{sockets := Sockets} = State) ->
{Target, Event, Payload} = decode_msg(Msg),
Socket0 = maps:get(Target, Sockets),
View = maps:get(view, Socket0),
% TODO: {reply, Msg, Socket}
Copy link
Member Author

Choose a reason for hiding this comment

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

williamthome
williamthome previously approved these changes Jun 29, 2024
@paulo-ferraz-oliveira paulo-ferraz-oliveira added this pull request to the merge queue Jun 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jun 29, 2024
@paulo-ferraz-oliveira paulo-ferraz-oliveira added this pull request to the merge queue Jun 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jun 29, 2024
@@ -35,11 +35,9 @@ globalThis["arizona"] = (() => {
const subscribers = new Map();
const unsubscribers = new Map();

// @todo Subscribe to global events.
Copy link
Member Author

Choose a reason for hiding this comment

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

function subscribe(eventName, callback, opts = {}) {
let eventSubs = subscribers.get(eventName);
if (!eventSubs) eventSubs = new Map();
// @todo Improve id.
Copy link
Member Author

Choose a reason for hiding this comment

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

@paulo-ferraz-oliveira paulo-ferraz-oliveira added this pull request to the merge queue Jun 29, 2024
Merged via the queue into main with commit bb71c43 Jun 29, 2024
4 checks passed
@paulo-ferraz-oliveira paulo-ferraz-oliveira deleted the fix/todos-and-fixmes branch June 29, 2024 19:18
@paulo-ferraz-oliveira
Copy link
Member Author

paulo-ferraz-oliveira commented Jul 13, 2024

I'm gonna un-resolve all comments since this is now merge. It'll make it easier to come back here for backtracking what originated an issue. Edit: ... and then we can resolve them as we go along, though that's not a strict requirement.

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.

Move TODO + FIXME from code to here (Issues)
2 participants